aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-04-10 14:09:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-04-10 14:09:54 -0400
commit655d8e2328a6ef6b6b514609a4c1e33508d3a1da (patch)
tree144b686bf3fd6512a55987da2d911f739646ce02 /drivers/net/wireless/b43
parent6fe5468f452c0c40348ebd4e737758a842286ca8 (diff)
parentddc4db2e3d5393ede7a9222bb3b7522a603a4678 (diff)
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Conflicts: drivers/net/wireless/ath/carl9170/debug.c drivers/net/wireless/ath/carl9170/main.c net/mac80211/ieee80211_i.h
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r--drivers/net/wireless/b43/b43.h2
-rw-r--r--drivers/net/wireless/b43/main.c8
-rw-r--r--drivers/net/wireless/b43/phy_ht.c5
-rw-r--r--drivers/net/wireless/b43/phy_lcn.c5
-rw-r--r--drivers/net/wireless/b43/phy_n.c5
5 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index f5e840104f4b..7f3d461f7e8d 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -980,7 +980,7 @@ static inline int b43_is_mode(struct b43_wl *wl, int type)
980 */ 980 */
981static inline enum ieee80211_band b43_current_band(struct b43_wl *wl) 981static inline enum ieee80211_band b43_current_band(struct b43_wl *wl)
982{ 982{
983 return wl->hw->conf.channel->band; 983 return wl->hw->conf.chandef.chan->band;
984} 984}
985 985
986static inline int b43_bus_may_powerdown(struct b43_wldev *wldev) 986static 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 4ac73d2f8605..d377f77d30b5 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -3852,7 +3852,7 @@ static int b43_op_config(struct ieee80211_hw *hw, u32 changed)
3852 dev = wl->current_dev; 3852 dev = wl->current_dev;
3853 3853
3854 /* Switch the band (if necessary). This might change the active core. */ 3854 /* Switch the band (if necessary). This might change the active core. */
3855 err = b43_switch_band(wl, conf->channel); 3855 err = b43_switch_band(wl, conf->chandef.chan);
3856 if (err) 3856 if (err)
3857 goto out_unlock_mutex; 3857 goto out_unlock_mutex;
3858 3858
@@ -3882,8 +3882,8 @@ static int b43_op_config(struct ieee80211_hw *hw, u32 changed)
3882 3882
3883 /* Switch to the requested channel. 3883 /* Switch to the requested channel.
3884 * The firmware takes care of races with the TX handler. */ 3884 * The firmware takes care of races with the TX handler. */
3885 if (conf->channel->hw_value != phy->channel) 3885 if (conf->chandef.chan->hw_value != phy->channel)
3886 b43_switch_channel(dev, conf->channel->hw_value); 3886 b43_switch_channel(dev, conf->chandef.chan->hw_value);
3887 3887
3888 dev->wl->radiotap_enabled = !!(conf->flags & IEEE80211_CONF_MONITOR); 3888 dev->wl->radiotap_enabled = !!(conf->flags & IEEE80211_CONF_MONITOR);
3889 3889
@@ -5006,7 +5006,7 @@ static int b43_op_get_survey(struct ieee80211_hw *hw, int idx,
5006 if (idx != 0) 5006 if (idx != 0)
5007 return -ENOENT; 5007 return -ENOENT;
5008 5008
5009 survey->channel = conf->channel; 5009 survey->channel = conf->chandef.chan;
5010 survey->filled = SURVEY_INFO_NOISE_DBM; 5010 survey->filled = SURVEY_INFO_NOISE_DBM;
5011 survey->noise = dev->stats.link_noise; 5011 survey->noise = dev->stats.link_noise;
5012 5012
diff --git a/drivers/net/wireless/b43/phy_ht.c b/drivers/net/wireless/b43/phy_ht.c
index b8667706fc27..83239fd87040 100644
--- a/drivers/net/wireless/b43/phy_ht.c
+++ b/drivers/net/wireless/b43/phy_ht.c
@@ -1011,8 +1011,9 @@ static void b43_phy_ht_op_switch_analog(struct b43_wldev *dev, bool on)
1011static int b43_phy_ht_op_switch_channel(struct b43_wldev *dev, 1011static int b43_phy_ht_op_switch_channel(struct b43_wldev *dev,
1012 unsigned int new_channel) 1012 unsigned int new_channel)
1013{ 1013{
1014 struct ieee80211_channel *channel = dev->wl->hw->conf.channel; 1014 struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan;
1015 enum nl80211_channel_type channel_type = dev->wl->hw->conf.channel_type; 1015 enum nl80211_channel_type channel_type =
1016 cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef);
1016 1017
1017 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { 1018 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) {
1018 if ((new_channel < 1) || (new_channel > 14)) 1019 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)
808static int b43_phy_lcn_op_switch_channel(struct b43_wldev *dev, 808static 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 f9339e7ea6af..45d63d70a66b 100644
--- a/drivers/net/wireless/b43/phy_n.c
+++ b/drivers/net/wireless/b43/phy_n.c
@@ -5526,8 +5526,9 @@ static void b43_nphy_op_switch_analog(struct b43_wldev *dev, bool on)
5526static int b43_nphy_op_switch_channel(struct b43_wldev *dev, 5526static int b43_nphy_op_switch_channel(struct b43_wldev *dev,
5527 unsigned int new_channel) 5527 unsigned int new_channel)
5528{ 5528{
5529 struct ieee80211_channel *channel = dev->wl->hw->conf.channel; 5529 struct ieee80211_channel *channel = dev->wl->hw->conf.chandef.chan;
5530 enum nl80211_channel_type channel_type = dev->wl->hw->conf.channel_type; 5530 enum nl80211_channel_type channel_type =
5531 cfg80211_get_chandef_type(&dev->wl->hw->conf.chandef);
5531 5532
5532 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) { 5533 if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) {
5533 if ((new_channel < 1) || (new_channel > 14)) 5534 if ((new_channel < 1) || (new_channel > 14))