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:
Bapiraju Alla 2020-05-06 20:47:37 +05:30 • committed by nshrivas
commit 8a14dd91ed

View file

@ -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);