diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-12-04 19:54:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-12-04 19:54:16 +0000 |
commit | 130413bb0f1de803e52cd168c59373b3e6473f4e (patch) | |
tree | 2c7f24a769e11d9ef1606fa34ce7e000504db416 /package/madwifi/patches/390-frame_type.patch | |
parent | 05ea87a13ff744ea8a360caead70292f1311d91f (diff) | |
download | upstream-130413bb0f1de803e52cd168c59373b3e6473f4e.tar.gz upstream-130413bb0f1de803e52cd168c59373b3e6473f4e.tar.bz2 upstream-130413bb0f1de803e52cd168c59373b3e6473f4e.zip |
madwifi: fix the autochannel patch
SVN-Revision: 13520
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 179ee7cfa0..130f3b6d61 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 - + |