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>
This commit is contained in:
@@ -1763,10 +1763,11 @@ static int ieee80211_resume(struct wiphy *wiphy)
|
||||
#endif
|
||||
|
||||
static int ieee80211_scan(struct wiphy *wiphy,
|
||||
struct net_device *dev,
|
||||
struct cfg80211_scan_request *req)
|
||||
{
|
||||
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
|
||||
struct ieee80211_sub_if_data *sdata;
|
||||
|
||||
sdata = IEEE80211_WDEV_TO_SUB_IF(req->wdev);
|
||||
|
||||
switch (ieee80211_vif_type_p2p(&sdata->vif)) {
|
||||
case NL80211_IFTYPE_STATION:
|
||||
|
Reference in New Issue
Block a user