diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-04-10 14:09:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-10 14:09:54 -0400 |
commit | 655d8e2328a6ef6b6b514609a4c1e33508d3a1da (patch) | |
tree | 144b686bf3fd6512a55987da2d911f739646ce02 /drivers/net/wireless/iwlwifi/dvm/rxon.c | |
parent | 6fe5468f452c0c40348ebd4e737758a842286ca8 (diff) | |
parent | ddc4db2e3d5393ede7a9222bb3b7522a603a4678 (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/iwlwifi/dvm/rxon.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/dvm/rxon.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/rxon.c b/drivers/net/wireless/iwlwifi/dvm/rxon.c index a82b6b39d4ff..2a349004f18d 100644 --- a/drivers/net/wireless/iwlwifi/dvm/rxon.c +++ b/drivers/net/wireless/iwlwifi/dvm/rxon.c | |||
@@ -78,8 +78,9 @@ void iwl_connection_init_rx_config(struct iwl_priv *priv, | |||
78 | ctx->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK; | 78 | ctx->staging.flags |= RXON_FLG_SHORT_PREAMBLE_MSK; |
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | ctx->staging.channel = cpu_to_le16(priv->hw->conf.channel->hw_value); | 81 | ctx->staging.channel = |
82 | priv->band = priv->hw->conf.channel->band; | 82 | cpu_to_le16(priv->hw->conf.chandef.chan->hw_value); |
83 | priv->band = priv->hw->conf.chandef.chan->band; | ||
83 | 84 | ||
84 | iwl_set_flags_for_band(priv, ctx, priv->band, ctx->vif); | 85 | iwl_set_flags_for_band(priv, ctx, priv->band, ctx->vif); |
85 | 86 | ||
@@ -951,7 +952,7 @@ static void iwl_calc_basic_rates(struct iwl_priv *priv, | |||
951 | unsigned long basic = ctx->vif->bss_conf.basic_rates; | 952 | unsigned long basic = ctx->vif->bss_conf.basic_rates; |
952 | int i; | 953 | int i; |
953 | 954 | ||
954 | sband = priv->hw->wiphy->bands[priv->hw->conf.channel->band]; | 955 | sband = priv->hw->wiphy->bands[priv->hw->conf.chandef.chan->band]; |
955 | 956 | ||
956 | for_each_set_bit(i, &basic, BITS_PER_LONG) { | 957 | for_each_set_bit(i, &basic, BITS_PER_LONG) { |
957 | int hw = sband->bitrates[i].hw_value; | 958 | int hw = sband->bitrates[i].hw_value; |
@@ -1181,7 +1182,7 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed) | |||
1181 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); | 1182 | struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); |
1182 | struct iwl_rxon_context *ctx; | 1183 | struct iwl_rxon_context *ctx; |
1183 | struct ieee80211_conf *conf = &hw->conf; | 1184 | struct ieee80211_conf *conf = &hw->conf; |
1184 | struct ieee80211_channel *channel = conf->channel; | 1185 | struct ieee80211_channel *channel = conf->chandef.chan; |
1185 | int ret = 0; | 1186 | int ret = 0; |
1186 | 1187 | ||
1187 | IWL_DEBUG_MAC80211(priv, "enter: changed %#x\n", changed); | 1188 | IWL_DEBUG_MAC80211(priv, "enter: changed %#x\n", changed); |