From cf7b60f9b10285cdb66e7019687f0e9043ff299b Mon Sep 17 00:00:00 2001 From: "Kondabattini, Ganesh" Date: Wed, 10 Aug 2016 16:31:55 +0530 Subject: qcacld-3.0: Update the unsafe channel list to the platform driver qcacld-2.0 to qcacld-3.0 propagation 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 --- core/hdd/src/wlan_hdd_main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 37ba53ae5ccd..c5bfe0ff7ee7 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -5582,8 +5582,6 @@ static void hdd_ch_avoid_cb(void *hdd_context, void *indi_param) 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; qdf_mem_zero(hdd_ctxt->unsafe_channel_list, @@ -5674,6 +5672,12 @@ static void hdd_ch_avoid_cb(void *hdd_context, void *indi_param) hdd_ctxt->unsafe_channel_list[channel_loop]); } + /* + * 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 (!hdd_ctxt->unsafe_channel_count) { hdd_info("no unsafe channels - not restarting SAP"); return; -- cgit v1.2.3