summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Kondabattini <ganeshk@qti.qualcomm.com>2016-04-22 20:29:52 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-04-26 18:52:36 +0530
commit87b2bb74dffc92e9156965005bec1fd43ca3d7ac (patch)
tree4d3d79a622844cfd22f4d7092d0a34245affa2b3
parentbd2c62d81abe9c82f129ff0cf8622c804ffd7d35 (diff)
qcacld-2.0: Update the unsafe channel list to the platform driver
Before sending the unsafe channel list to the application, first update the platform driver so that other driver who is reading the channel list from platform driver will get the correct channel list. Change-Id: I72421f80e1e354039eee2fc87b5f988592e33c9c CRs-Fixed: 998048
-rw-r--r--CORE/HDD/src/wlan_hdd_main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index bbb6c126f149..1733c0ce581d 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -16529,7 +16529,6 @@ void hdd_ch_avoid_cb
}
hdd_avoid_freq_list.avoidFreqRangeCount = ch_avoid_indi->avoid_range_count;
- wlan_hdd_send_avoid_freq_event(hdd_ctxt, &hdd_avoid_freq_list);
/* clear existing unsafe channel cache */
hdd_ctxt->unsafe_channel_count = 0;
@@ -16624,10 +16623,16 @@ void hdd_ch_avoid_cb
}
#endif
- if (0 == hdd_ctxt->unsafe_channel_count)
+ /*
+ * first update the unsafe channel list to the platform driver and
+ * send the avoid freq event to the application
+ */
+ wlan_hdd_send_avoid_freq_event(hdd_ctxt, &hdd_avoid_freq_list);
+
+ if (0 == hdd_ctxt->unsafe_channel_count)
return;
- hdd_unsafe_channel_restart_sap(hdd_ctxt);
- return;
+ hdd_unsafe_channel_restart_sap(hdd_ctxt);
+ return;
}
#endif /* FEATURE_WLAN_CH_AVOID */