diff options
author | Bruno Randolf <br1@einfach.org> | 2008-08-05 13:32:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:59 -0400 |
commit | 06303352d3de02a371ccaec1366a92db5e1d7c30 (patch) | |
tree | 2155ac5402df198f732d44466924a3837614dba9 /drivers/net/wireless/ath5k | |
parent | edcc25b22f7c328f56e8c129afa1e10c8bacb2ef (diff) |
ath5k: set short preamble flag for rx
set the short preamble flag in ieee80211_rx_status for frames received with a
short preamble.
drivers/net/wireless/ath5k/base.c: Changes-licensed-under: 3-Clause-BSD
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index c1de1ef09e59..cd598c0d8d6d 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -1763,12 +1763,10 @@ accept: | |||
1763 | rxs.rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate); | 1763 | rxs.rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate); |
1764 | rxs.flag |= ath5k_rx_decrypted(sc, ds, skb, &rs); | 1764 | rxs.flag |= ath5k_rx_decrypted(sc, ds, skb, &rs); |
1765 | 1765 | ||
1766 | #if 0 /* add rxs.flag SHORTPRE once it is in mac80211 */ | 1766 | if (rxs.rate_idx >= 0 && rs.rs_rate == |
1767 | if (rs.rs_rate >= ATH5K_RATE_CODE_2M && | 1767 | sc->curband->bitrates[rxs.rate_idx].hw_value_short) |
1768 | rs.rs_rate <= ATH5K_RATE_CODE_11M && | ||
1769 | rs.rs_rate & AR5K_SET_SHORT_PREAMBLE) | ||
1770 | rxs.flag |= RX_FLAG_SHORTPRE; | 1768 | rxs.flag |= RX_FLAG_SHORTPRE; |
1771 | #endif | 1769 | |
1772 | ath5k_debug_dump_skb(sc, skb, "RX ", 0); | 1770 | ath5k_debug_dump_skb(sc, skb, "RX ", 0); |
1773 | 1771 | ||
1774 | /* check beacons in IBSS mode */ | 1772 | /* check beacons in IBSS mode */ |