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:
Kondabattini, Ganesh 2016-08-10 16:31:55 +05:30 • committed by qcabuildsw
commit cf7b60f9b1

View file

@ -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;