diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-06-18 13:17:03 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-12 06:10:41 -0400 |
commit | fd0142844efa85d89017c89227a0f03de1eee327 (patch) | |
tree | 2b9977f712df0caa3ecda6dd59fe5b34932e2ab6 /net/mac80211 | |
parent | 1c90f9d404a45a1677c1e5791f5a2a8aaee0370a (diff) |
nl80211: move scan API to wdev
The new P2P Device will have to be able to scan for
P2P search, so move scanning to use struct wireless_dev
instead of struct net_device.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/cfg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index a752c7341d62..cfdc03f59e27 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1763,10 +1763,11 @@ static int ieee80211_resume(struct wiphy *wiphy) | |||
1763 | #endif | 1763 | #endif |
1764 | 1764 | ||
1765 | static int ieee80211_scan(struct wiphy *wiphy, | 1765 | static int ieee80211_scan(struct wiphy *wiphy, |
1766 | struct net_device *dev, | ||
1767 | struct cfg80211_scan_request *req) | 1766 | struct cfg80211_scan_request *req) |
1768 | { | 1767 | { |
1769 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 1768 | struct ieee80211_sub_if_data *sdata; |
1769 | |||
1770 | sdata = IEEE80211_WDEV_TO_SUB_IF(req->wdev); | ||
1770 | 1771 | ||
1771 | switch (ieee80211_vif_type_p2p(&sdata->vif)) { | 1772 | switch (ieee80211_vif_type_p2p(&sdata->vif)) { |
1772 | case NL80211_IFTYPE_STATION: | 1773 | case NL80211_IFTYPE_STATION: |