Skip to content

Commit

Permalink
iwl4965: fix rxon flags set to wrong value for A mode in .erp_ie_changed
Browse files Browse the repository at this point in the history
The patch fixes a bug that enables RXON_FLG_TGG_PROTECT_MSK erroneously
for A mode in the erp_ie_changed mac80211 callback.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Zhu Yi authored and David S. Miller committed Jan 28, 2008
1 parent 7223e8d commit 797a54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -7674,7 +7674,7 @@ static void iwl4965_mac_erp_ie_changed(struct ieee80211_hw *hw,
}

if (changes & IEEE80211_ERP_CHANGE_PROTECTION) {
if (cts_protection)
if (cts_protection && (priv->phymode != MODE_IEEE80211A))
priv->staging_rxon.flags |= RXON_FLG_TGG_PROTECT_MSK;
else
priv->staging_rxon.flags &= ~RXON_FLG_TGG_PROTECT_MSK;
Expand Down

0 comments on commit 797a54c

Please sign in to comment.