Commit a30199f1 authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by John W. Linville

iwlwifi: "is_fat" bit in rate scale match RXON flag

This patch change the "is_fat" checking in rate scale to use
iwl_is_fat_tx_allowed() to match the sta and RX_ON command setting.
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Tested-by: default avatarConrad Kostecki <ConiKost@gmx.de>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 286d9490
...@@ -1207,8 +1207,7 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv, ...@@ -1207,8 +1207,7 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv,
tbl->action = 0; tbl->action = 0;
rate_mask = lq_sta->active_mimo2_rate; rate_mask = lq_sta->active_mimo2_rate;
if (priv->current_ht_config.supported_chan_width if (iwl_is_fat_tx_allowed(priv, &sta->ht_cap))
== IWL_CHANNEL_WIDTH_40MHZ)
tbl->is_fat = 1; tbl->is_fat = 1;
else else
tbl->is_fat = 0; tbl->is_fat = 0;
...@@ -1273,8 +1272,7 @@ static int rs_switch_to_mimo3(struct iwl_priv *priv, ...@@ -1273,8 +1272,7 @@ static int rs_switch_to_mimo3(struct iwl_priv *priv,
tbl->action = 0; tbl->action = 0;
rate_mask = lq_sta->active_mimo3_rate; rate_mask = lq_sta->active_mimo3_rate;
if (priv->current_ht_config.supported_chan_width if (iwl_is_fat_tx_allowed(priv, &sta->ht_cap))
== IWL_CHANNEL_WIDTH_40MHZ)
tbl->is_fat = 1; tbl->is_fat = 1;
else else
tbl->is_fat = 0; tbl->is_fat = 0;
...@@ -1332,8 +1330,7 @@ static int rs_switch_to_siso(struct iwl_priv *priv, ...@@ -1332,8 +1330,7 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
tbl->action = 0; tbl->action = 0;
rate_mask = lq_sta->active_siso_rate; rate_mask = lq_sta->active_siso_rate;
if (priv->current_ht_config.supported_chan_width if (iwl_is_fat_tx_allowed(priv, &sta->ht_cap))
== IWL_CHANNEL_WIDTH_40MHZ)
tbl->is_fat = 1; tbl->is_fat = 1;
else else
tbl->is_fat = 0; tbl->is_fat = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment