Re: Re: [lwlan-user] Occasional panics with 0.2.2 and DWL-122

[email protected] Wed, 26 Oct 2005 09:56:44 -0400
Newsgroups gmane.linux.linux-wlan.devel,gmane.linux.linux-wlan.user
Message-ID <[email protected]>
On Wed, Oct 26, 2005 at 01:23:22PM +0100, [email protected] wrote:
> 		memmove(skb_push(skb, hdrlen),
> 		        &usbin->rxfrm.desc.frame_control,
> 		        hdrlen);

It's probably a control frame coming down that we don't recognise.

p80211_headerlen() calls ctl_framelen(), which can return a 0.  we then 
subtract the FCS length, returning a '-4' which we then try to push onto 
the skb.  Hilarity ensues.

I've fixed this.  Good catch, folks!

 - Solomon
-- 
Solomon Peachy                        [email protected]
AbsoluteValue Systems                 http://www.linux-wlan.com
721-D North Drive                     +1 (321) 259-0737  (office)
Melbourne, FL 32934                   +1 (321) 259-0286  (fax)

_______________________________________________
Linux-wlan-devel mailing list
[email protected]
http://lists.linux-wlan.com/mailman/listinfo/linux-wlan-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFDX4schinxHf95MjYRAqdhAJsHeprqYsDi2HopEUq1VsRHGkKLuQCeIkN1
+tDqnVWdbFigXxesCK9Z1zk=
=6QXg
-----END PGP SIGNATURE-----