diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-03-05 21:28:57 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-16 18:09:35 -0400 |
commit | 346de732cbd11bdc364ae80def2380a5002d7e6b (patch) | |
tree | aaeef8e486fee8f1d746ddfb754501cf6bee834f /drivers | |
parent | 05c9a4cfe41f44abd5e73964fc734f01e2981442 (diff) | |
download | kernel_samsung_smdk4412-346de732cbd11bdc364ae80def2380a5002d7e6b.zip kernel_samsung_smdk4412-346de732cbd11bdc364ae80def2380a5002d7e6b.tar.gz kernel_samsung_smdk4412-346de732cbd11bdc364ae80def2380a5002d7e6b.tar.bz2 |
p54: completely ignore rx'd frames with bad FCS
Passing frames with a bad FCS to the user is an optional feature.
However it doesn't work reliable and strangely not in the native monitor mode?!
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/p54/p54common.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index b690535..0a98983 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/drivers/net/wireless/p54/p54common.c @@ -738,10 +738,7 @@ static int p54_rx_data(struct ieee80211_hw *dev, struct sk_buff *skb) return 0; if (!(hdr->flags & cpu_to_le16(P54_HDR_FLAG_DATA_IN_FCS_GOOD))) { - if (priv->filter_flags & FIF_FCSFAIL) - rx_status.flag |= RX_FLAG_FAILED_FCS_CRC; - else - return 0; + return 0; } if (hdr->decrypt_status == P54_DECRYPT_OK) @@ -2220,9 +2217,7 @@ static void p54_configure_filter(struct ieee80211_hw *dev, struct p54_common *priv = dev->priv; *total_flags &= FIF_PROMISC_IN_BSS | - FIF_OTHER_BSS | - (*total_flags & FIF_PROMISC_IN_BSS ? - FIF_FCSFAIL : 0); + FIF_OTHER_BSS; priv->filter_flags = *total_flags; |