]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
iwlwifi: clear rate control flags on non-HT packet
authorDaniel C Halperin <daniel.c.halperin@intel.com>
Fri, 21 Aug 2009 20:34:20 +0000 (13:34 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:38 +0000 (14:40 -0400)
Clear the flags (most importantly, the IEEE80211_TX_RC_MCS flag)
when sending a non-HT packet so that the rate index can be properly treated.
This fixes the reporting of legacy rates in wireless-extensions for packets
sent after an HT packet.

Signed-off-by: Daniel C Halperin <daniel.c.halperin@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c

index fee110de5c6a80c5fb901d611b6a6c02743a1d75..26ec969e265d7e760737254ba2f7e02af65e4ce8 100644 (file)
@@ -2546,6 +2546,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta,
                        rate_idx = rate_lowest_index(sband, sta);
                else if (sband->band == IEEE80211_BAND_5GHZ)
                        rate_idx -= IWL_FIRST_OFDM_RATE;
+               info->control.rates[0].flags = 0;
        }
        info->control.rates[0].idx = rate_idx;