Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
此提交包含在:
@@ -347,7 +347,7 @@ il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id)
|
||||
|
||||
psta = (struct il3945_sta_priv *)sta->drv_priv;
|
||||
rs_sta = &psta->rs_sta;
|
||||
sband = hw->wiphy->bands[conf->channel->band];
|
||||
sband = hw->wiphy->bands[conf->chandef.chan->band];
|
||||
|
||||
rs_sta->il = il;
|
||||
|
||||
|
@@ -6057,7 +6057,7 @@ il4965_mac_channel_switch(struct ieee80211_hw *hw,
|
||||
struct il_priv *il = hw->priv;
|
||||
const struct il_channel_info *ch_info;
|
||||
struct ieee80211_conf *conf = &hw->conf;
|
||||
struct ieee80211_channel *channel = ch_switch->channel;
|
||||
struct ieee80211_channel *channel = ch_switch->chandef.chan;
|
||||
struct il_ht_config *ht_conf = &il->current_ht_config;
|
||||
u16 ch;
|
||||
|
||||
@@ -6094,23 +6094,21 @@ il4965_mac_channel_switch(struct ieee80211_hw *hw,
|
||||
il->current_ht_config.smps = conf->smps_mode;
|
||||
|
||||
/* Configure HT40 channels */
|
||||
il->ht.enabled = conf_is_ht(conf);
|
||||
if (il->ht.enabled) {
|
||||
if (conf_is_ht40_minus(conf)) {
|
||||
il->ht.extension_chan_offset =
|
||||
IEEE80211_HT_PARAM_CHA_SEC_BELOW;
|
||||
il->ht.is_40mhz = true;
|
||||
} else if (conf_is_ht40_plus(conf)) {
|
||||
il->ht.extension_chan_offset =
|
||||
IEEE80211_HT_PARAM_CHA_SEC_ABOVE;
|
||||
il->ht.is_40mhz = true;
|
||||
} else {
|
||||
il->ht.extension_chan_offset =
|
||||
IEEE80211_HT_PARAM_CHA_SEC_NONE;
|
||||
il->ht.is_40mhz = false;
|
||||
}
|
||||
} else
|
||||
switch (cfg80211_get_chandef_type(&ch_switch->chandef)) {
|
||||
case NL80211_CHAN_NO_HT:
|
||||
case NL80211_CHAN_HT20:
|
||||
il->ht.is_40mhz = false;
|
||||
il->ht.extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_NONE;
|
||||
break;
|
||||
case NL80211_CHAN_HT40MINUS:
|
||||
il->ht.extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_BELOW;
|
||||
il->ht.is_40mhz = true;
|
||||
break;
|
||||
case NL80211_CHAN_HT40PLUS:
|
||||
il->ht.extension_chan_offset = IEEE80211_HT_PARAM_CHA_SEC_ABOVE;
|
||||
il->ht.is_40mhz = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if ((le16_to_cpu(il->staging.channel) != ch))
|
||||
il->staging.flags = 0;
|
||||
|
@@ -2300,7 +2300,7 @@ il4965_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id)
|
||||
|
||||
sta_priv = (struct il_station_priv *)sta->drv_priv;
|
||||
lq_sta = &sta_priv->lq_sta;
|
||||
sband = hw->wiphy->bands[conf->channel->band];
|
||||
sband = hw->wiphy->bands[conf->chandef.chan->band];
|
||||
|
||||
lq_sta->lq.sta_id = sta_id;
|
||||
|
||||
|
@@ -1493,7 +1493,7 @@ il4965_hw_channel_switch(struct il_priv *il,
|
||||
|
||||
cmd.band = band;
|
||||
cmd.expect_beacon = 0;
|
||||
ch = ch_switch->channel->hw_value;
|
||||
ch = ch_switch->chandef.chan->hw_value;
|
||||
cmd.channel = cpu_to_le16(ch);
|
||||
cmd.rxon_flags = il->staging.flags;
|
||||
cmd.rxon_filter_flags = il->staging.filter_flags;
|
||||
|
@@ -4971,7 +4971,7 @@ il_mac_config(struct ieee80211_hw *hw, u32 changed)
|
||||
struct il_priv *il = hw->priv;
|
||||
const struct il_channel_info *ch_info;
|
||||
struct ieee80211_conf *conf = &hw->conf;
|
||||
struct ieee80211_channel *channel = conf->channel;
|
||||
struct ieee80211_channel *channel = conf->chandef.chan;
|
||||
struct il_ht_config *ht_conf = &il->current_ht_config;
|
||||
unsigned long flags = 0;
|
||||
int ret = 0;
|
||||
|
新增問題並參考
封鎖使用者