aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c5
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
1765static int ieee80211_scan(struct wiphy *wiphy, 1765static 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: