summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXun Luo <xunl@qca.qualcomm.com>2014-03-19 11:42:35 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-03-20 22:15:15 -0700
commite93a94d69431b7ae051d90bfc769261d47933738 (patch)
tree3ac31444d171d2ebd610c392337cdb683207e296
parent8df0892f588e72319a4fb82f409ffccdf7072f77 (diff)
clear unsafe channel cache at every fw reporting
change the behavior of host cacheing unsafe channels to as log as it receives a valid fw reporting, clears the current unsafe channel list cached in driver. Change-Id: I7b7df88472b57cd12918465d70d1818212d1eaf2 CRs-Fixed: 626151
-rw-r--r--CORE/HDD/src/wlan_hdd_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 286a82f01a0a..501dca00ed5c 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -11104,6 +11104,10 @@ void hdd_ch_avoid_cb
wlan_hdd_send_avoid_freq_event(hdd_ctxt, &hdd_avoid_freq_list);
+ /* clear existing unsafe channel cache */
+ hdd_ctxt->unsafe_channel_count = 0;
+ vos_mem_zero(hdd_ctxt->unsafe_channel_list, sizeof(v_U16_t) * NUM_20MHZ_RF_CHANNELS);
+
if (0 == ch_avoid_indi->avoid_range_count) {
hdd_ctxt->unsafe_channel_count = 0;
} else {