mac80211: allow GO to scan like AP
authorJohannes Berg <johannes.berg@intel.com>
Tue, 1 Feb 2011 14:35:36 +0000 (15:35 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Feb 2011 21:44:44 +0000 (16:44 -0500)
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>
net/mac80211/cfg.c

index 88b0884..845c76d 100644 (file)
@@ -1287,8 +1287,11 @@ static int ieee80211_scan(struct wiphy *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;