Selaa lähdekoodia

qcacld-3.0: Avoid scan on interface of monitor mode

STA+Monitor mode concurrency is supported,  but scan is not permitted
on interface of monitor mode.

Change-Id: I2e15006e40f1fbab96bfa0a6af8e605b5736f761
CRs-Fixed: 2831828
Jianmin Zhu 4 vuotta sitten
vanhempi
sitoutus
08c29ebcd3
1 muutettua tiedostoa jossa 4 lisäystä ja 3 poistoa
  1. 4 3
      core/hdd/src/wlan_hdd_scan.c

+ 4 - 3
core/hdd/src/wlan_hdd_scan.c

@@ -514,10 +514,11 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy,
 	}
 
 	/*
-	 * NDI does not need scan from userspace to establish connection
-	 * and it does not support scan request either.
+	 * NDI and monitor mode don't need scan from userspace to establish
+	 * connection and it does not support scan request either.
 	 */
-	if (QDF_NDI_MODE == adapter->device_mode) {
+	if (QDF_NDI_MODE == adapter->device_mode ||
+	    QDF_MONITOR_MODE == adapter->device_mode) {
 		hdd_err("Scan not supported for %s",
 			qdf_opmode_str(adapter->device_mode));
 		return -EINVAL;