diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2010-05-06 22:41:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-07 14:57:16 -0400 |
commit | 6f256de70b90aecbb550a2df387684ed2136b792 (patch) | |
tree | 0db9127c6a892739b1d68b61587083a8a7d9c990 /drivers/net | |
parent | 8e1559949928d4d8bfe044bfcf57879faff82e19 (diff) | |
download | linux-stable-6f256de70b90aecbb550a2df387684ed2136b792.tar.gz linux-stable-6f256de70b90aecbb550a2df387684ed2136b792.tar.bz2 linux-stable-6f256de70b90aecbb550a2df387684ed2136b792.zip |
ath9k_common: drop incomming frames with an invalid hardware rate
ath9k_common (used by ath9k and ath9k_htc) trusts the frames
blessed by hardware as OK are infact correct even if the rate
seen by the driver is unrecognized. ath9k_common just treats
these frames in mac80211 as frames as frames under 1 mbps rate.
It seems this might not be the best thing to do as other parts of
the frame might not be valid so just drop these frames for now.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.c b/drivers/net/wireless/ath/ath9k/common.c index 254dcbdbc061..7707341cd0d3 100644 --- a/drivers/net/wireless/ath/ath9k/common.c +++ b/drivers/net/wireless/ath/ath9k/common.c @@ -153,8 +153,7 @@ static int ath9k_process_rate(struct ath_common *common, if ((common->debug_mask & ATH_DBG_XMIT)) print_hex_dump_bytes("", DUMP_PREFIX_NONE, skb->data, skb->len); - rxs->rate_idx = 0; - return 0; + return -EINVAL; } static void ath9k_process_rssi(struct ath_common *common, |