projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
madwifi: fix a wds related race condition
[openwrt-10.03/.git]
/
package
/
madwifi
/
patches
/
390-frame_type.patch
diff --git
a/package/madwifi/patches/390-frame_type.patch
b/package/madwifi/patches/390-frame_type.patch
index 130f3b6d61ea5cff1f87958720f572674ddcba71..caad49c3d3fc8f335bf60083d7de5c58d7e78b51 100644
(file)
--- a/
package/madwifi/patches/390-frame_type.patch
+++ b/
package/madwifi/patches/390-frame_type.patch
@@
-1,11
+1,11
@@
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
-@@ -444
0,7 +4440
,9 @@ ath_eth_type_trans(struct sk_buff *skb,
+@@ -444
1,7 +4441
,9 @@ ath_eth_type_trans(struct sk_buff *skb,
if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN))
skb->pkt_type = PACKET_OTHERHOST;
- return eth->h_proto;
if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN))
skb->pkt_type = PACKET_OTHERHOST;
- return eth->h_proto;
-+ if (
ntohs(eth->h_proto) >= 1536
)
++ if (
(ntohs(eth->h_proto) >= 1536) || (ntohs(eth->h_proto) < 38)
)
+ return eth->h_proto;
+ return htons(ETH_P_802_2);
}
+ return eth->h_proto;
+ return htons(ETH_P_802_2);
}