瀏覽代碼

qcacmn: Disable intersected AFC channels while switching to LPI

When SWITCH_TO_LPI event subtype or WMI_AFC_EVENT_ID is received,
disable the intersected channels in the AFC channel list.

Change-Id: Iee79b26953299d332c6f8925c8f21651fbd1f00c
CRs-Fixed: 3034456
Hariharan Basuthkar 3 年之前
父節點
當前提交
b98c3e9250
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      umac/regulatory/core/src/reg_build_chan_list.c

+ 3 - 0
umac/regulatory/core/src/reg_build_chan_list.c

@@ -2477,6 +2477,9 @@ static void reg_disable_afc_mas_chan_list_channels(
 			afc_mas_chan_list[chan_idx].tx_power = 0;
 		}
 	}
+
+	qdf_mem_zero(pdev_priv_obj->afc_chan_list,
+		     NUM_6GHZ_CHANNELS * sizeof(struct regulatory_channel));
 }
 
 static void reg_free_expiry_afc_info(struct afc_regulatory_info *afc_info)