Skip to content

Commit

Permalink
ath9k_common: drop incomming frames with an invalid hardware rate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed May 7, 2010
1 parent 8e15599 commit 6f256de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/ath/ath9k/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6f256de

Please sign in to comment.