aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-11-24 09:06:33 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:05:00 -0500
commitd8be11ee95be9ec9eabfec9f635e0feac972369b (patch)
tree5534ec175baa099abef639e1df980203b949f1a1 /drivers
parentd42ce84a05d7a427df22894de268c1b4473f6004 (diff)
b43: include FCS in frames handed to mac80211
Sometimes it can be useful to see the FCS, especially when bad-FCS frames are shown. Pass the FCS to mac80211 and let it worry about snipping it off when required. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/b43/main.c3
-rw-r--r--drivers/net/wireless/b43/xmit.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 58847222cf0b..69c68c29dd93 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -3904,7 +3904,8 @@ static int b43_wireless_init(struct ssb_device *dev)
3904 } 3904 }
3905 3905
3906 /* fill hw info */ 3906 /* fill hw info */
3907 hw->flags = IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE; 3907 hw->flags = IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE |
3908 IEEE80211_HW_RX_INCLUDES_FCS;
3908 hw->max_signal = 100; 3909 hw->max_signal = 100;
3909 hw->max_rssi = -110; 3910 hw->max_rssi = -110;
3910 hw->max_noise = -110; 3911 hw->max_noise = -110;
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index 557abe1f1a05..a455a6beac4a 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -489,7 +489,6 @@ void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr)
489 } 489 }
490 wlhdr = (struct ieee80211_hdr *)(skb->data); 490 wlhdr = (struct ieee80211_hdr *)(skb->data);
491 fctl = le16_to_cpu(wlhdr->frame_control); 491 fctl = le16_to_cpu(wlhdr->frame_control);
492 skb_trim(skb, skb->len - FCS_LEN);
493 492
494 if (macstat & B43_RX_MAC_DEC) { 493 if (macstat & B43_RX_MAC_DEC) {
495 unsigned int keyidx; 494 unsigned int keyidx;