Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0437600a authored by Ahmad Masri's avatar Ahmad Masri Committed by Maya Erez
Browse files

wil6210: allow scan on AP interface



Scan is allowed only on client interfaces (STA/P2P).
Allow scan on AP interface so that the AP can discover rouge
or unauthorized neighbor APs.

Change-Id: I8a473ff8f30d8c4745e2fc6477c4b8015c1663f7
Signed-off-by: default avatarAhmad Masri <amasri@codeaurora.org>
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Git-commit: af2cd85e8dbd4241c21c0136d13e36b0043604ba
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent 3255290e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -943,11 +943,12 @@ static int wil_cfg80211_scan(struct wiphy *wiphy,

	wil_dbg_misc(wil, "scan: wdev=0x%p iftype=%d\n", wdev, wdev->iftype);

	/* check we are client side */
	/* scan is supported on client interfaces and on AP interface */
	switch (wdev->iftype) {
	case NL80211_IFTYPE_STATION:
	case NL80211_IFTYPE_P2P_CLIENT:
	case NL80211_IFTYPE_P2P_DEVICE:
	case NL80211_IFTYPE_AP:
		break;
	default:
		return -EOPNOTSUPP;