diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-04 19:54:16 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-12-04 19:54:16 +0000 |
commit | 87aacb3b5bb8d4da4280d421b498237032459e82 (patch) | |
tree | 1efeea9c8aab274469ef31028a0847578b77619f /package/madwifi/patches/390-frame_type.patch | |
parent | f0af663597172b339ce2529a6344eb95d525ae64 (diff) |
madwifi: fix the autochannel patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13520 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/390-frame_type.patch')
-rw-r--r-- | package/madwifi/patches/390-frame_type.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch index 179ee7cfa..130f3b6d6 100644 --- a/package/madwifi/patches/390-frame_type.patch +++ b/package/madwifi/patches/390-frame_type.patch @@ -1,13 +1,13 @@ --- a/net80211/ieee80211_input.c +++ b/net80211/ieee80211_input.c -@@ -4421,7 +4421,9 @@ +@@ -4440,7 +4440,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 (ntohs(eth->h_proto) >= 1536) + return eth->h_proto; + return htons(ETH_P_802_2); } #endif - + |