diff options
author | Karl Beldan <karl.beldan@rivierawaves.com> | 2013-03-25 11:26:57 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-25 14:19:35 -0400 |
commit | 675a0b049abf6edf30f8dd84c5610b6edc2296c8 (patch) | |
tree | 164178c576642dc1ec8ae70d9e26a5ec33472d26 /drivers/net/wireless/b43 | |
parent | 219c38674c262378ec411dd8318ebfd199fbce8d (diff) |
mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan
Drivers that don't use chanctxes cannot perform VHT association because
they still use a "backward compatibility" pair of {ieee80211_channel,
nl80211_channel_type} in ieee80211_conf and ieee80211_local.
Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
[fix kernel-doc]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/b43/main.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/b43/phy_ht.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/b43/phy_lcn.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 5 |
5 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 10e288d470e7..6a4bd8c433b4 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -972,7 +972,7 @@ static inline int b43_is_mode(struct b43_wl *wl, int type) | |||
972 | */ | 972 | */ |
973 | static inline enum ieee80211_band b43_current_band(struct b43_wl *wl) | 973 | static inline enum ieee80211_band b43_current_band(struct b43_wl *wl) |
974 | { | 974 | { |
975 | return wl->hw->conf.channel->band; | 975 | return wl->hw->conf.chandef.chan->band; |
976 | } | 976 | } |
977 | 977 | ||
978 | static inline int b43_bus_may_powerdown(struct b43_wldev *wldev) | 978 | static inline int b43_bus_may_powerdown(struct b43_wldev *wldev) |
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 05682736e466..d135e8975f52 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -3848,7 +3848,7 @@ static int b43_op_config(struct ieee80211_hw *hw, u32 changed) | |||
3848 | dev = wl->current_dev; | 3848 | dev = wl->current_dev; |
3849 | 3849 | ||
3850 | /* Switch the band (if necessary). This might change the active core. */ | 3850 | /* Switch the band (if necessary). This might change the active core. */ |
3851 | err = b43_switch_band(wl, conf->channel); | 3851 | err = b43_switch_band(wl, conf->chandef.chan); |
3852 | if (err) | 3852 | if (err) |
3853 | goto out_unlock_mutex; | 3853 | goto out_unlock_mutex; |
3854 | 3854 | ||
@@ -3878,8 +3878,8 @@ static int b43_op_config(struct ieee80211_hw *hw, u32 changed) | |||
3878 | 3878 | ||
3879 | /* Switch to the requested channel. | 3879 | /* Switch to the requested channel. |
3880 | * The firmware takes care of races with the TX handler. */ | 3880 | * The firmware takes care of races with the TX handler. */ |
3881 | if (conf->channel->hw_value != phy->channel) | 3881 | if (conf->chandef.chan->hw_value != phy->channel) |
3882 | b43_switch_channel(dev, conf->channel->hw_value); | 3882 | b43_switch_channel(dev, conf->chandef.chan->hw_value); |
3883 | 3883 | ||
3884 | dev->wl->radiotap_enabled = !!(conf->flags & IEEE80211_CONF_MONITOR); | 3884 | dev->wl->radiotap_enabled = !!(conf->flags & IEEE80211_CONF_MONITOR); |
3885 | 3885 | ||
@@ -5002,7 +5002,7 @@ static int b43_op_get_survey(struct ieee80211_hw *hw, int idx, | |||
5002 | if (idx != 0) | 5002 | if (idx != 0) |
5003 | return -ENOENT; | 5003 | return -ENOENT; |
5004 | 5004 | ||
5005 | survey->channel = conf->channel; | 5005 | survey->channel = conf->chandef.chan; |
5006 | survey->filled = SURVEY_INFO_NOISE_DBM; | 5006 | survey->filled = SURVEY_INFO_NOISE_DBM; |
5007 | survey->noise = dev->stats.link_noise; | 5007 | survey->noise = dev->stats.link_noise; |
5008 | 5008 | ||
diff --git a/drivers/net/wireless/b43/phy_ht.c b/drivers/net/wireless/b43/phy_ht.c index 7416c5e9154d..016682ea7445 100644 --- a/drivers/net/wireless/b43/phy_ht.c +++ b/drivers/net/wireless/b43/phy_ht.c | |||
@@ -525,8 +525,9 @@ static void b43_phy_ht_op_switch_analog(struct b43_wldev *dev, bool on) | |||
525 | static int b43_phy_ht_op_switch_channel(struct b43_wldev *dev, | 525 | static int b43_phy_ht_op_switch_channel(struct b43_wldev *dev, |
526 | unsigned int new_channel) | 526 | unsigned int new_channel) |
527 | { | 527 | { |
528 | struct ieee80211_channel *channel = dev->wl->hw->conf.channel; | 528 | struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; |
529 | enum nl80211_channel_type channel_type = dev->wl->hw->conf.channel_type; | 529 | enum nl80211_channel_type channel_type = |
530 | cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef); | ||
530 | 531 | ||
531 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { | 532 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { |
532 | if ((new_channel < 1) || (new_channel > 14)) | 533 | if ((new_channel < 1) || (new_channel > 14)) |
diff --git a/drivers/net/wireless/b43/phy_lcn.c b/drivers/net/wireless/b43/phy_lcn.c index a13e28ef6246..0bafa3b17035 100644 --- a/drivers/net/wireless/b43/phy_lcn.c +++ b/drivers/net/wireless/b43/phy_lcn.c | |||
@@ -808,8 +808,9 @@ static void b43_phy_lcn_op_switch_analog(struct b43_wldev *dev, bool on) | |||
808 | static int b43_phy_lcn_op_switch_channel(struct b43_wldev *dev, | 808 | static int b43_phy_lcn_op_switch_channel(struct b43_wldev *dev, |
809 | unsigned int new_channel) | 809 | unsigned int new_channel) |
810 | { | 810 | { |
811 | struct ieee80211_channel *channel = dev->wl->hw->conf.channel; | 811 | struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; |
812 | enum nl80211_channel_type channel_type = dev->wl->hw->conf.channel_type; | 812 | enum nl80211_channel_type channel_type = |
813 | cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef); | ||
813 | 814 | ||
814 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { | 815 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { |
815 | if ((new_channel < 1) || (new_channel > 14)) | 816 | if ((new_channel < 1) || (new_channel > 14)) |
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 3c35382ee6c2..949a3bdeede9 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -5530,8 +5530,9 @@ static void b43_nphy_op_switch_analog(struct b43_wldev *dev, bool on) | |||
5530 | static int b43_nphy_op_switch_channel(struct b43_wldev *dev, | 5530 | static int b43_nphy_op_switch_channel(struct b43_wldev *dev, |
5531 | unsigned int new_channel) | 5531 | unsigned int new_channel) |
5532 | { | 5532 | { |
5533 | struct ieee80211_channel *channel = dev->wl->hw->conf.channel; | 5533 | struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan; |
5534 | enum nl80211_channel_type channel_type = dev->wl->hw->conf.channel_type; | 5534 | enum nl80211_channel_type channel_type = |
5535 | cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef); | ||
5535 | 5536 | ||
5536 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { | 5537 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { |
5537 | if ((new_channel < 1) || (new_channel > 14)) | 5538 | if ((new_channel < 1) || (new_channel > 14)) |