aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-31 17:37:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-31 17:37:09 +0000
commitd6d5c715b937690586b3618a8365a10d81c867cc (patch)
tree55aa5266d4ab31bc3971babf9e97d12fbd4c6ae1 /package
parentc688bb1d11d8d1aa0fe3d1d8d41b81859af4be05 (diff)
downloadupstream-d6d5c715b937690586b3618a8365a10d81c867cc.tar.gz
upstream-d6d5c715b937690586b3618a8365a10d81c867cc.tar.bz2
upstream-d6d5c715b937690586b3618a8365a10d81c867cc.zip
fix madwifi packet injection
This patch from madwifi commit 3337 makes packet injection work. Signed-off-by: Petr Liebmann <petrliebman@googlemail.com> SVN-Revision: 12048
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/408-changeset_r3337.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/madwifi/patches/408-changeset_r3337.patch b/package/madwifi/patches/408-changeset_r3337.patch
new file mode 100644
index 0000000000..de2eda2730
--- /dev/null
+++ b/package/madwifi/patches/408-changeset_r3337.patch
@@ -0,0 +1,34 @@
+--- a/THANKS
++++ b/THANKS
+@@ -129,6 +129,7 @@
+ jhansen
+ Benoit Papillault
+ Russell Harmon
++Alessandro Erta
+
+ Apologies to anyone whose name was unintentionally left off.
+ Please let us know if you think your name should be mentioned here!
+--- a/ath/if_ath.c
++++ b/ath/if_ath.c
+@@ -2964,7 +2964,7 @@
+ struct ath_softc *sc = dev->priv;
+ struct ath_hal *ah = sc->sc_ah;
+ struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *)
+- (SKB_CB(skb) + sizeof(struct ieee80211_cb));
++ (SKB_CB(skb) + 1); /* NB: SKB_CB casts to CB struct*. */
+ const HAL_RATE_TABLE *rt;
+ unsigned int pktlen, hdrlen, try0, power;
+ HAL_PKT_TYPE atype;
+--- a/net80211/ieee80211_monitor.c
++++ b/net80211/ieee80211_monitor.c
+@@ -128,8 +128,8 @@
+ void
+ ieee80211_monitor_encap(struct ieee80211vap *vap, struct sk_buff *skb)
+ {
+- struct ieee80211_phy_params *ph =
+- (struct ieee80211_phy_params *) (SKB_CB(skb) + sizeof(struct ieee80211_cb));
++ struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *)
++ (SKB_CB(skb) + 1); /* NB: SKB_CB casts to CB struct*. */
+ SKB_CB(skb)->flags = M_RAW;
+ SKB_CB(skb)->ni = NULL;
+ SKB_CB(skb)->next = NULL;