From: Johannes Berg <[EMAIL PROTECTED]>

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 <[EMAIL PROTECTED]>
Signed-off-by: Michael Buesch <[EMAIL PROTECTED]>

---
 drivers/net/wireless/b43/main.c |    3 ++-
 drivers/net/wireless/b43/xmit.c |    1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

--- everything.orig/drivers/net/wireless/b43/main.c     2007-11-22 
23:35:41.208716199 +0100
+++ everything/drivers/net/wireless/b43/main.c  2007-11-22 23:36:03.138677951 
+0100
@@ -4158,7 +4158,8 @@ static int b43_wireless_init(struct ssb_
        }
 
        /* fill hw info */
-       hw->flags = IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE;
+       hw->flags = IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE |
+                   IEEE80211_HW_RX_INCLUDES_FCS;
        hw->max_signal = 100;
        hw->max_rssi = -110;
        hw->max_noise = -110;
--- everything.orig/drivers/net/wireless/b43/xmit.c     2007-11-22 
23:36:05.668676810 +0100
+++ everything/drivers/net/wireless/b43/xmit.c  2007-11-22 23:36:22.668677190 
+0100
@@ -489,7 +489,6 @@ void b43_rx(struct b43_wldev *dev, struc
        }
        wlhdr = (struct ieee80211_hdr *)(skb->data);
        fctl = le16_to_cpu(wlhdr->frame_control);
-       skb_trim(skb, skb->len - FCS_LEN);
 
        if (macstat & B43_RX_MAC_DEC) {
                unsigned int keyidx;




-------------------------------------------------------

-- 
Greetings Michael.
_______________________________________________
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev

Reply via email to