* [PATCH] mac80211: allow GO to scan like AP
@ 2011-02-01 14:35 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2011-02-01 14:35 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless@vger.kernel.org
From: Johannes Berg <johannes.berg@intel.com>
There's no point in disallowing scanning for a
GO interface when it's not beaconing yet.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
net/mac80211/cfg.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- wireless-testing.orig/net/mac80211/cfg.c 2011-02-01 15:33:04.000000000 +0100
+++ wireless-testing/net/mac80211/cfg.c 2011-02-01 15:33:43.000000000 +0100
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-01 14:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-01 14:35 [PATCH] mac80211: allow GO to scan like AP Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).