Commit e9d7732e authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 771bbd09
...@@ -1287,8 +1287,11 @@ static int ieee80211_scan(struct wiphy *wiphy, ...@@ -1287,8 +1287,11 @@ static int ieee80211_scan(struct wiphy *wiphy,
case NL80211_IFTYPE_P2P_GO: case NL80211_IFTYPE_P2P_GO:
if (sdata->local->ops->hw_scan) if (sdata->local->ops->hw_scan)
break; 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: case NL80211_IFTYPE_AP:
if (sdata->u.ap.beacon) if (sdata->u.ap.beacon)
return -EOPNOTSUPP; return -EOPNOTSUPP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment