diff options
| author | Kondabattini, Ganesh <ganeshk@codeaurora.org> | 2016-08-10 16:31:55 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-09-02 17:24:01 -0700 |
| commit | cf7b60f9b10285cdb66e7019687f0e9043ff299b (patch) | |
| tree | 8c40e42fa55f13c4a493f90680218abdc050db52 | |
| parent | f3dca9611dd496fce87eff50ce9462f5360b2f48 (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 8 |
1 files 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; |
