1
0

qcacld-3.0: Replace channel with frequency in unsafe_ch_list

Replace channel ID with frequency in struct unsafe_ch_list.

Change-Id: I4db260127b39d8a30d61d4348f70b1a77ddb9d95
CRs-Fixed: 2540581
Este cometimento está contido em:
Tushnim Bhattacharyya
2019-10-04 15:20:22 -07:00
cometido por nshrivas
ascendente 6e3f16f865
cometimento acb23ee6f0
2 ficheiros modificados com 9 adições e 7 eliminações

Ver ficheiro

@@ -198,14 +198,13 @@ policy_mgr_reg_chan_change_callback(struct wlan_objmgr_psoc *psoc,
* NUM_CHANNELS and hence the ch_cnt should also not
* exceed NUM_CHANNELS.
*/
pm_ctx->unsafe_channel_count = avoid_freq_ind->chan_list.ch_cnt >=
pm_ctx->unsafe_channel_count = avoid_freq_ind->chan_list.chan_cnt >=
NUM_CHANNELS ?
NUM_CHANNELS : avoid_freq_ind->chan_list.ch_cnt;
NUM_CHANNELS : avoid_freq_ind->chan_list.chan_cnt;
for (i = 0; i < pm_ctx->unsafe_channel_count; i++)
pm_ctx->unsafe_channel_list[i] =
wlan_reg_chan_to_freq(
pm_ctx->pdev, avoid_freq_ind->chan_list.ch_list[i]);
avoid_freq_ind->chan_list.chan_freq_list[i];
policy_mgr_debug("Channel list update, received %d avoided channels",
pm_ctx->unsafe_channel_count);