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 /drivers/net | |
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 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/cfg80211.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco/cfg.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 5 |
7 files changed, 13 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 88bed02f7521..86aeef4b9d7e 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -966,11 +966,11 @@ static int ath6kl_set_probed_ssids(struct ath6kl *ar, | |||
966 | return 0; | 966 | return 0; |
967 | } | 967 | } |
968 | 968 | ||
969 | static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, | 969 | static int ath6kl_cfg80211_scan(struct wiphy *wiphy, |
970 | struct cfg80211_scan_request *request) | 970 | struct cfg80211_scan_request *request) |
971 | { | 971 | { |
972 | struct ath6kl *ar = ath6kl_priv(ndev); | 972 | struct ath6kl_vif *vif = ath6kl_vif_from_wdev(request->wdev); |
973 | struct ath6kl_vif *vif = netdev_priv(ndev); | 973 | struct ath6kl *ar = ath6kl_priv(vif->ndev); |
974 | s8 n_channels = 0; | 974 | s8 n_channels = 0; |
975 | u16 *channels = NULL; | 975 | u16 *channels = NULL; |
976 | int ret = 0; | 976 | int ret = 0; |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c index d13ae9c299f2..c6a10caec79f 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c | |||
@@ -691,9 +691,10 @@ scan_out: | |||
691 | } | 691 | } |
692 | 692 | ||
693 | static s32 | 693 | static s32 |
694 | brcmf_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, | 694 | brcmf_cfg80211_scan(struct wiphy *wiphy, |
695 | struct cfg80211_scan_request *request) | 695 | struct cfg80211_scan_request *request) |
696 | { | 696 | { |
697 | struct net_device *ndev = request->wdev->netdev; | ||
697 | s32 err = 0; | 698 | s32 err = 0; |
698 | 699 | ||
699 | WL_TRACE("Enter\n"); | 700 | WL_TRACE("Enter\n"); |
diff --git a/drivers/net/wireless/iwmc3200wifi/cfg80211.c b/drivers/net/wireless/iwmc3200wifi/cfg80211.c index 48e8218fd23b..523dd646f052 100644 --- a/drivers/net/wireless/iwmc3200wifi/cfg80211.c +++ b/drivers/net/wireless/iwmc3200wifi/cfg80211.c | |||
@@ -353,9 +353,10 @@ static int iwm_cfg80211_change_iface(struct wiphy *wiphy, | |||
353 | return 0; | 353 | return 0; |
354 | } | 354 | } |
355 | 355 | ||
356 | static int iwm_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, | 356 | static int iwm_cfg80211_scan(struct wiphy *wiphy, |
357 | struct cfg80211_scan_request *request) | 357 | struct cfg80211_scan_request *request) |
358 | { | 358 | { |
359 | struct net_device *ndev = request->wdev->netdev; | ||
359 | struct iwm_priv *iwm = ndev_to_iwm(ndev); | 360 | struct iwm_priv *iwm = ndev_to_iwm(ndev); |
360 | int ret; | 361 | int ret; |
361 | 362 | ||
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index f4a203049fb4..706781316195 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c | |||
@@ -805,7 +805,6 @@ void lbs_scan_done(struct lbs_private *priv) | |||
805 | } | 805 | } |
806 | 806 | ||
807 | static int lbs_cfg_scan(struct wiphy *wiphy, | 807 | static int lbs_cfg_scan(struct wiphy *wiphy, |
808 | struct net_device *dev, | ||
809 | struct cfg80211_scan_request *request) | 808 | struct cfg80211_scan_request *request) |
810 | { | 809 | { |
811 | struct lbs_private *priv = wiphy_priv(wiphy); | 810 | struct lbs_private *priv = wiphy_priv(wiphy); |
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 1e8024ea6910..6ca571a1b8e2 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -1376,9 +1376,10 @@ mwifiex_cfg80211_leave_ibss(struct wiphy *wiphy, struct net_device *dev) | |||
1376 | * it also informs the results. | 1376 | * it also informs the results. |
1377 | */ | 1377 | */ |
1378 | static int | 1378 | static int |
1379 | mwifiex_cfg80211_scan(struct wiphy *wiphy, struct net_device *dev, | 1379 | mwifiex_cfg80211_scan(struct wiphy *wiphy, |
1380 | struct cfg80211_scan_request *request) | 1380 | struct cfg80211_scan_request *request) |
1381 | { | 1381 | { |
1382 | struct net_device *dev = request->wdev->netdev; | ||
1382 | struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); | 1383 | struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); |
1383 | int i; | 1384 | int i; |
1384 | struct ieee80211_channel *chan; | 1385 | struct ieee80211_channel *chan; |
diff --git a/drivers/net/wireless/orinoco/cfg.c b/drivers/net/wireless/orinoco/cfg.c index e15675585fb1..7b751fba7e1f 100644 --- a/drivers/net/wireless/orinoco/cfg.c +++ b/drivers/net/wireless/orinoco/cfg.c | |||
@@ -138,7 +138,7 @@ static int orinoco_change_vif(struct wiphy *wiphy, struct net_device *dev, | |||
138 | return err; | 138 | return err; |
139 | } | 139 | } |
140 | 140 | ||
141 | static int orinoco_scan(struct wiphy *wiphy, struct net_device *dev, | 141 | static int orinoco_scan(struct wiphy *wiphy, |
142 | struct cfg80211_scan_request *request) | 142 | struct cfg80211_scan_request *request) |
143 | { | 143 | { |
144 | struct orinoco_private *priv = wiphy_priv(wiphy); | 144 | struct orinoco_private *priv = wiphy_priv(wiphy); |
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index dfcd02ab6cae..241162e8111d 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -484,7 +484,7 @@ static int rndis_change_virtual_intf(struct wiphy *wiphy, | |||
484 | enum nl80211_iftype type, u32 *flags, | 484 | enum nl80211_iftype type, u32 *flags, |
485 | struct vif_params *params); | 485 | struct vif_params *params); |
486 | 486 | ||
487 | static int rndis_scan(struct wiphy *wiphy, struct net_device *dev, | 487 | static int rndis_scan(struct wiphy *wiphy, |
488 | struct cfg80211_scan_request *request); | 488 | struct cfg80211_scan_request *request); |
489 | 489 | ||
490 | static int rndis_set_wiphy_params(struct wiphy *wiphy, u32 changed); | 490 | static int rndis_set_wiphy_params(struct wiphy *wiphy, u32 changed); |
@@ -1941,9 +1941,10 @@ static int rndis_get_tx_power(struct wiphy *wiphy, int *dbm) | |||
1941 | } | 1941 | } |
1942 | 1942 | ||
1943 | #define SCAN_DELAY_JIFFIES (6 * HZ) | 1943 | #define SCAN_DELAY_JIFFIES (6 * HZ) |
1944 | static int rndis_scan(struct wiphy *wiphy, struct net_device *dev, | 1944 | static int rndis_scan(struct wiphy *wiphy, |
1945 | struct cfg80211_scan_request *request) | 1945 | struct cfg80211_scan_request *request) |
1946 | { | 1946 | { |
1947 | struct net_device *dev = request->wdev->netdev; | ||
1947 | struct usbnet *usbdev = netdev_priv(dev); | 1948 | struct usbnet *usbdev = netdev_priv(dev); |
1948 | struct rndis_wlan_private *priv = get_rndis_wlan_priv(usbdev); | 1949 | struct rndis_wlan_private *priv = get_rndis_wlan_priv(usbdev); |
1949 | int ret; | 1950 | int ret; |