mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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
This commit is contained in:
parent
f3dca9611d
commit
cf7b60f9b1
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue