mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Validate channel list count before updting acs channel range
Currently, do_acs may invoke wlan_hdd_set_acs_ch_range with channel list count is 0. In case of SAP+SAP turned on non-dbs hardware, Intersection of supported frequencies may become zero and channel list count will become zero. while handling 0 channel list count in wlan_hdd_handle_zero_acs_list, if sta count is 0 then channel list will not be updated to 1 which may cause OOB issue while updating acs channel range. Fix is to validate channel list count before populating acs channel list. Change-Id: Iffbe139748e76cd692e774e5f9db2c1c3d086332 CRs-Fixed: 2922790
This commit is contained in:
parent
f28d06bb69
commit
7842cc70fb
1 changed files with 4 additions and 0 deletions
|
|
@ -3286,6 +3286,10 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
|
|||
sap_config);
|
||||
ret = 0;
|
||||
goto out;
|
||||
} else if (!sap_config->acs_cfg.ch_list_count) {
|
||||
hdd_err("channel list count 0");
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue