diff options
-rw-r--r-- | net/wireless/chan.c | 3 | ||||
-rw-r--r-- | net/wireless/core.h | 1 | ||||
-rw-r--r-- | net/wireless/nl80211.c | 2 | ||||
-rw-r--r-- | net/wireless/wext-compat.c | 2 | ||||
-rw-r--r-- | net/wireless/wext-sme.c | 2 |
5 files changed, 6 insertions, 4 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index bc00c9a06b3d..a46ac6c9b365 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -42,13 +42,14 @@ rdev_fixed_channel(struct cfg80211_registered_device *rdev, | |||
42 | } | 42 | } |
43 | 43 | ||
44 | int rdev_set_freq(struct cfg80211_registered_device *rdev, | 44 | int rdev_set_freq(struct cfg80211_registered_device *rdev, |
45 | struct wireless_dev *for_wdev, | ||
45 | int freq, enum nl80211_channel_type channel_type) | 46 | int freq, enum nl80211_channel_type channel_type) |
46 | { | 47 | { |
47 | struct ieee80211_channel *chan; | 48 | struct ieee80211_channel *chan; |
48 | struct ieee80211_sta_ht_cap *ht_cap; | 49 | struct ieee80211_sta_ht_cap *ht_cap; |
49 | int result; | 50 | int result; |
50 | 51 | ||
51 | if (rdev_fixed_channel(rdev, NULL)) | 52 | if (rdev_fixed_channel(rdev, for_wdev)) |
52 | return -EBUSY; | 53 | return -EBUSY; |
53 | 54 | ||
54 | if (!rdev->ops->set_channel) | 55 | if (!rdev->ops->set_channel) |
diff --git a/net/wireless/core.h b/net/wireless/core.h index 639db52eeff7..f7be3a9b427e 100644 --- a/net/wireless/core.h +++ b/net/wireless/core.h | |||
@@ -374,6 +374,7 @@ struct ieee80211_channel * | |||
374 | rdev_fixed_channel(struct cfg80211_registered_device *rdev, | 374 | rdev_fixed_channel(struct cfg80211_registered_device *rdev, |
375 | struct wireless_dev *for_wdev); | 375 | struct wireless_dev *for_wdev); |
376 | int rdev_set_freq(struct cfg80211_registered_device *rdev, | 376 | int rdev_set_freq(struct cfg80211_registered_device *rdev, |
377 | struct wireless_dev *for_wdev, | ||
377 | int freq, enum nl80211_channel_type channel_type); | 378 | int freq, enum nl80211_channel_type channel_type); |
378 | 379 | ||
379 | #endif /* __NET_WIRELESS_CORE_H */ | 380 | #endif /* __NET_WIRELESS_CORE_H */ |
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 667a87d307da..a8aaadeb6773 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -721,7 +721,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) | |||
721 | freq = nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ]); | 721 | freq = nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ]); |
722 | 722 | ||
723 | mutex_lock(&rdev->devlist_mtx); | 723 | mutex_lock(&rdev->devlist_mtx); |
724 | result = rdev_set_freq(rdev, freq, channel_type); | 724 | result = rdev_set_freq(rdev, NULL, freq, channel_type); |
725 | mutex_unlock(&rdev->devlist_mtx); | 725 | mutex_unlock(&rdev->devlist_mtx); |
726 | if (result) | 726 | if (result) |
727 | goto bad_res; | 727 | goto bad_res; |
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 17648dc79867..c44917492210 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c | |||
@@ -766,7 +766,7 @@ int cfg80211_wext_siwfreq(struct net_device *dev, | |||
766 | if (freq == 0) | 766 | if (freq == 0) |
767 | return -EINVAL; | 767 | return -EINVAL; |
768 | mutex_lock(&rdev->devlist_mtx); | 768 | mutex_lock(&rdev->devlist_mtx); |
769 | err = rdev_set_freq(rdev, freq, NL80211_CHAN_NO_HT); | 769 | err = rdev_set_freq(rdev, NULL, freq, NL80211_CHAN_NO_HT); |
770 | mutex_unlock(&rdev->devlist_mtx); | 770 | mutex_unlock(&rdev->devlist_mtx); |
771 | return err; | 771 | return err; |
772 | } | 772 | } |
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c index 907470063f22..d16cd9ea4d00 100644 --- a/net/wireless/wext-sme.c +++ b/net/wireless/wext-sme.c | |||
@@ -106,7 +106,7 @@ int cfg80211_mgd_wext_siwfreq(struct net_device *dev, | |||
106 | 106 | ||
107 | /* SSID is not set, we just want to switch channel */ | 107 | /* SSID is not set, we just want to switch channel */ |
108 | if (chan && !wdev->wext.connect.ssid_len) { | 108 | if (chan && !wdev->wext.connect.ssid_len) { |
109 | err = rdev_set_freq(rdev, freq, NL80211_CHAN_NO_HT); | 109 | err = rdev_set_freq(rdev, wdev, freq, NL80211_CHAN_NO_HT); |
110 | goto out; | 110 | goto out; |
111 | } | 111 | } |
112 | 112 | ||