提交 06303352 编写于 作者: B Bruno Randolf 提交者: John W. Linville

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: NBruno Randolf <br1@einfach.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 edcc25b2
...@@ -1763,12 +1763,10 @@ ath5k_tasklet_rx(unsigned long data) ...@@ -1763,12 +1763,10 @@ ath5k_tasklet_rx(unsigned long data)
rxs.rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate); rxs.rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate);
rxs.flag |= ath5k_rx_decrypted(sc, ds, skb, &rs); rxs.flag |= ath5k_rx_decrypted(sc, ds, skb, &rs);
#if 0 /* add rxs.flag SHORTPRE once it is in mac80211 */ if (rxs.rate_idx >= 0 && rs.rs_rate ==
if (rs.rs_rate >= ATH5K_RATE_CODE_2M && sc->curband->bitrates[rxs.rate_idx].hw_value_short)
rs.rs_rate <= ATH5K_RATE_CODE_11M &&
rs.rs_rate & AR5K_SET_SHORT_PREAMBLE)
rxs.flag |= RX_FLAG_SHORTPRE; rxs.flag |= RX_FLAG_SHORTPRE;
#endif
ath5k_debug_dump_skb(sc, skb, "RX ", 0); ath5k_debug_dump_skb(sc, skb, "RX ", 0);
/* check beacons in IBSS mode */ /* check beacons in IBSS mode */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册