mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
qcacld-3.0: Reject SAP concurrency with monitor mode
Currently, SAP interface is being created when there is an existing monitor mode interface. This concurrency is not allowed. To avoid this, Add check for existing monitor mode interface before creating SAP interface using add virtual interface. Change-Id: Ia2318b880adaff39b7deb9e223140906e80a91ae CRs-Fixed: 2680143
This commit is contained in:
parent
a6dcea22a2
commit
8a14dd91ed
1 changed files with 5 additions and 0 deletions
|
|
@ -644,6 +644,11 @@ struct wireless_dev *__wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
|
|||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
if (cds_get_conparam() == QDF_GLOBAL_MONITOR_MODE) {
|
||||
hdd_err("Concurrency not allowed with standalone monitor mode");
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
ret = wlan_hdd_validate_context(hdd_ctx);
|
||||
if (ret)
|
||||
return ERR_PTR(ret);
|
||||
|
|
|
|||
Loading…
Reference in a new issue