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/brcm80211 | |
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/brcm80211')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/channel.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/main.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/channel.c b/drivers/net/wireless/brcm80211/brcmsmac/channel.c index 10ee314c4229..cc87926f5055 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/channel.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/channel.c | |||
@@ -379,7 +379,7 @@ brcms_c_channel_set_chanspec(struct brcms_cm_info *wlc_cm, u16 chanspec, | |||
379 | u8 local_constraint_qdbm) | 379 | u8 local_constraint_qdbm) |
380 | { | 380 | { |
381 | struct brcms_c_info *wlc = wlc_cm->wlc; | 381 | struct brcms_c_info *wlc = wlc_cm->wlc; |
382 | struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.channel; | 382 | struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; |
383 | struct txpwr_limits txpwr; | 383 | struct txpwr_limits txpwr; |
384 | 384 | ||
385 | brcms_c_channel_reg_limits(wlc_cm, chanspec, &txpwr); | 385 | brcms_c_channel_reg_limits(wlc_cm, chanspec, &txpwr); |
@@ -404,7 +404,7 @@ brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec, | |||
404 | struct txpwr_limits *txpwr) | 404 | struct txpwr_limits *txpwr) |
405 | { | 405 | { |
406 | struct brcms_c_info *wlc = wlc_cm->wlc; | 406 | struct brcms_c_info *wlc = wlc_cm->wlc; |
407 | struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.channel; | 407 | struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; |
408 | uint i; | 408 | uint i; |
409 | uint chan; | 409 | uint chan; |
410 | int maxpwr; | 410 | int maxpwr; |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c index aa5f43fee5ed..70731d23ddb1 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | |||
@@ -414,10 +414,10 @@ static int brcms_ops_config(struct ieee80211_hw *hw, u32 changed) | |||
414 | new_int); | 414 | new_int); |
415 | } | 415 | } |
416 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { | 416 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { |
417 | if (conf->channel_type == NL80211_CHAN_HT20 || | 417 | if (conf->chandef.width == NL80211_CHAN_WIDTH_20 || |
418 | conf->channel_type == NL80211_CHAN_NO_HT) | 418 | conf->chandef.width == NL80211_CHAN_WIDTH_20_NOHT) |
419 | err = brcms_c_set_channel(wl->wlc, | 419 | err = brcms_c_set_channel(wl->wlc, |
420 | conf->channel->hw_value); | 420 | conf->chandef.chan->hw_value); |
421 | else | 421 | else |
422 | err = -ENOTSUPP; | 422 | err = -ENOTSUPP; |
423 | } | 423 | } |
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c index 8ef02dca8f8c..e0dc1838cd19 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/main.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c | |||
@@ -5099,7 +5099,7 @@ int brcms_c_up(struct brcms_c_info *wlc) | |||
5099 | wlc->pub->up = true; | 5099 | wlc->pub->up = true; |
5100 | 5100 | ||
5101 | if (wlc->bandinit_pending) { | 5101 | if (wlc->bandinit_pending) { |
5102 | ch = wlc->pub->ieee_hw->conf.channel; | 5102 | ch = wlc->pub->ieee_hw->conf.chandef.chan; |
5103 | brcms_c_suspend_mac_and_wait(wlc); | 5103 | brcms_c_suspend_mac_and_wait(wlc); |
5104 | brcms_c_set_chanspec(wlc, ch20mhz_chspec(ch->hw_value)); | 5104 | brcms_c_set_chanspec(wlc, ch20mhz_chspec(ch->hw_value)); |
5105 | wlc->bandinit_pending = false; | 5105 | wlc->bandinit_pending = false; |
@@ -7748,7 +7748,7 @@ bool brcms_c_dpc(struct brcms_c_info *wlc, bool bounded) | |||
7748 | void brcms_c_init(struct brcms_c_info *wlc, bool mute_tx) | 7748 | void brcms_c_init(struct brcms_c_info *wlc, bool mute_tx) |
7749 | { | 7749 | { |
7750 | struct bcma_device *core = wlc->hw->d11core; | 7750 | struct bcma_device *core = wlc->hw->d11core; |
7751 | struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.channel; | 7751 | struct ieee80211_channel *ch = wlc->pub->ieee_hw->conf.chandef.chan; |
7752 | u16 chanspec; | 7752 | u16 chanspec; |
7753 | 7753 | ||
7754 | brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); | 7754 | brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); |