aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-02-01 09:35:36 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-03 16:44:44 -0500
commite9d7732eafe38a717212648b7615399e68abb551 (patch)
tree172abd98d1272c1e89f8062f4bde41f2af211aff /net/mac80211/cfg.c
parent771bbd09f7febb854dd7c30f983aa57535f9e8c9 (diff)
mac80211: allow GO to scan like AP
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> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 88b0884ebe6a..845c76d58d25 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1287,8 +1287,11 @@ static int ieee80211_scan(struct wiphy *wiphy,
1287 case NL80211_IFTYPE_P2P_GO: 1287 case NL80211_IFTYPE_P2P_GO:
1288 if (sdata->local->ops->hw_scan) 1288 if (sdata->local->ops->hw_scan)
1289 break; 1289 break;
1290 /* FIXME: implement NoA while scanning in software */ 1290 /*
1291 return -EOPNOTSUPP; 1291 * FIXME: implement NoA while scanning in software,
1292 * for now fall through to allow scanning only when
1293 * beaconing hasn't been configured yet
1294 */
1292 case NL80211_IFTYPE_AP: 1295 case NL80211_IFTYPE_AP:
1293 if (sdata->u.ap.beacon) 1296 if (sdata->u.ap.beacon)
1294 return -EOPNOTSUPP; 1297 return -EOPNOTSUPP;