linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] b43: include FCS in frames handed to mac80211
Date: Fri, 23 Nov 2007 14:51:58 +0100	[thread overview]
Message-ID: <200711231451.58564.mb@bu3sch.de> (raw)
In-Reply-To: <1195814776.4149.90.camel@johannes.berg>

On Friday 23 November 2007 11:46:16 Johannes Berg wrote:
> 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>
> ---
>  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;
> 
> 
> 
> 

Does this work with all encryption and non-encryption modes?
There was a crypto related reason why we snipped off the FCS.
Maybe that's gone, though.

-- 
Greetings Michael.

  reply	other threads:[~2007-11-23 13:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-23 10:46 [PATCH] b43: include FCS in frames handed to mac80211 Johannes Berg
2007-11-23 13:51 ` Michael Buesch [this message]
2007-11-23 20:27   ` Johannes Berg
2007-11-23 21:56     ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2007-11-24 14:06 Michael Buesch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200711231451.58564.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).