Re: [Madwifi-devel] possible error when de-capsulating packets?
Status: Beta
Brought to you by:
otaku
From: Holger S. <hs...@ma...> - 2007-08-29 15:17:30
|
On Wednesday 29 August 2007 16:32, Michael Renzmann wrote: > Side note: patches need to be signed off [1] before they can > be considered for committing. Oh, I didn't knew this, since madwifi has nil chance of going into the kernel. But here it goes: ------------------------------------------------ The following patch let's madwifi driver access LLC packets with OID 0x0000f8 pass. This mimicks the behavior of the orinoco driver. Signed-off-by: Holger Schurig <hs...@ma...> --- madwifi.orig/net80211/ieee80211_input.c +++ madwifi/net80211/ieee80211_input.c @@ -1150,8 +1150,8 @@ if (skb->len >= LLC_SNAPFRAMELEN && llc->llc_dsap == LLC_SNAP_LSAP && llc->llc_ssap == LLC_SNAP_LSAP && llc->llc_control == LLC_UI && llc->llc_snap.org_code[0] == 0 && - llc->llc_snap.org_code[1] == 0 && llc->llc_snap.org_code[2] == 0) { - + llc->llc_snap.org_code[1] == 0 && (llc->llc_snap.org_code[2] == 0 || + llc->llc_snap.org_code[2] == 0xf8)) { ether_type = llc->llc_un.type_snap.ether_type; skb_pull(skb, LLC_SNAPFRAMELEN); llc = NULL; |