Skip to contentSkip to conversation

mac80211: allow GO to scan like AP

PATCH New Johannes Berg 1 participant 1 message Feb 1, 2011 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: allow GO to scan like AP

From: Johannes Berg <[email protected]>

There's no point in disallowing scanning for a
GO interface when it's not beaconing yet.

---
 net/mac80211/cfg.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
net/mac80211/cfg.c +5 -2
@@ -1274,8 +1274,11 @@ static int ieee80211_scan(struct wiphy *
 	case NL80211_IFTYPE_P2P_GO:
 		if (sdata->local->ops->hw_scan)
 			break;
-		/* FIXME: implement NoA while scanning in software */
-		return -EOPNOTSUPP;
+		/*
+		 * FIXME: implement NoA while scanning in software,
+		 * for now fall through to allow scanning only when
+		 * beaconing hasn't been configured yet
+		 */
 	case NL80211_IFTYPE_AP:
 		if (sdata->u.ap.beacon)
 			return -EOPNOTSUPP;