mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Check valid freq for non-beaconing entities
Currently, In Reassoc and fast reassoc command host validates freq from secondary channel list that may cause issue for some frequencies which may be valid for sta but invalid for sap. Fix is to validate freq from valid channel list Change-Id: I1ee81212425f7b4f997568b4fd92153231e349e8 CRs-Fixed: 2991541
This commit is contained in:
parent
c8089feb68
commit
3a3d32c5e2
1 changed files with 2 additions and 4 deletions
|
|
@ -616,8 +616,7 @@ int hdd_reassoc(struct hdd_adapter *adapter, const uint8_t *bssid,
|
|||
ch_freq = sta_ctx->conn_info.chan_freq;
|
||||
}
|
||||
|
||||
if (QDF_STATUS_SUCCESS !=
|
||||
wlan_hdd_validate_operation_channel(adapter, ch_freq)) {
|
||||
if (!sme_is_channel_valid(hdd_ctx->mac_handle, ch_freq)) {
|
||||
hdd_err("Invalid Ch freq: %d", ch_freq);
|
||||
ret = -EINVAL;
|
||||
goto exit;
|
||||
|
|
@ -4595,8 +4594,7 @@ static int drv_cmd_fast_reassoc(struct hdd_adapter *adapter,
|
|||
}
|
||||
|
||||
/* Check freq number is a valid freq number */
|
||||
if (freq && QDF_STATUS_SUCCESS !=
|
||||
wlan_hdd_validate_operation_channel(adapter, freq)) {
|
||||
if (freq && !sme_is_channel_valid(mac_handle, freq)) {
|
||||
hdd_err("Invalid freq [%d]", freq);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue