mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Do not send regulatory event for unsafe channel list
Unsafe channel list event does not change the current channel list. Hence there is no reason to set the channel list again in wiphy and inform the kernel. Thus, do not send regulatory event for unsafe channel list. Change-Id: I68d60fb412b4664430a9cdefa354fac4070bba7a CRs-Fixed: 2788194
This commit is contained in:
parent
4c895b25e1
commit
0eb93cecb4
1 changed files with 9 additions and 9 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -1621,6 +1621,12 @@ static void hdd_regulatory_dyn_cbk(struct wlan_objmgr_psoc *psoc,
|
|||
wiphy = pdev_priv->wiphy;
|
||||
hdd_ctx = wiphy_priv(wiphy);
|
||||
|
||||
if (avoid_freq_ind) {
|
||||
hdd_ch_avoid_ind(hdd_ctx, &avoid_freq_ind->chan_list,
|
||||
&avoid_freq_ind->freq_list);
|
||||
return;
|
||||
}
|
||||
|
||||
hdd_debug("process channel list update from regulatory");
|
||||
hdd_regulatory_chanlist_dump(chan_list);
|
||||
|
||||
|
|
@ -1641,14 +1647,8 @@ static void hdd_regulatory_dyn_cbk(struct wlan_objmgr_psoc *psoc,
|
|||
hdd_send_wiphy_regd_sync_event(hdd_ctx);
|
||||
#endif
|
||||
|
||||
if (avoid_freq_ind) {
|
||||
hdd_ch_avoid_ind(hdd_ctx, &avoid_freq_ind->chan_list,
|
||||
&avoid_freq_ind->freq_list);
|
||||
} else {
|
||||
hdd_config_tdls_with_band_switch(hdd_ctx);
|
||||
|
||||
qdf_sched_work(0, &hdd_ctx->country_change_work);
|
||||
}
|
||||
hdd_config_tdls_with_band_switch(hdd_ctx);
|
||||
qdf_sched_work(0, &hdd_ctx->country_change_work);
|
||||
}
|
||||
|
||||
int hdd_update_regulatory_config(struct hdd_context *hdd_ctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue