SOURCES: madwifi-ng-r1816.patch (NEW) - http://patches.aircrack-ng...
mguevara
mguevara at pld-linux.org
Sat Dec 9 01:42:43 CET 2006
Author: mguevara Date: Sat Dec 9 00:42:43 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- http://patches.aircrack-ng.org/madwifi-ng-r1816.patch
---- Files affected:
SOURCES:
madwifi-ng-r1816.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/madwifi-ng-r1816.patch
diff -u /dev/null SOURCES/madwifi-ng-r1816.patch:1.1
--- /dev/null Sat Dec 9 01:42:43 2006
+++ SOURCES/madwifi-ng-r1816.patch Sat Dec 9 01:42:38 2006
@@ -0,0 +1,25 @@
+--- madwifi-ng-r1816-20061118/ath/if_ath.c 2006-11-09 08:28:11.000000000 +0100
++++ madwifi-ng-r1816-20061118/ath/if_ath.c.patched 2006-11-20 23:02:36.000000000 +0100
+@@ -2287,6 +2287,7 @@
+ ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb)
+ {
+ struct ath_softc *sc = dev->priv;
++ struct ieee80211com *ic = &sc->sc_ic;
+ struct ath_hal *ah = sc->sc_ah;
+ struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb));
+ const HAL_RATE_TABLE *rt;
+@@ -2303,8 +2304,12 @@
+ struct ieee80211_frame *wh;
+
+ wh = (struct ieee80211_frame *) skb->data;
+- try0 = ph->try0;
+- rt = sc->sc_currates;
++ try0 = (ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : ph->try0;
++ /*
++ * The retry value has to be patched to 1 when injecting,
++ * otherwise the sequence number will be overwritten
++ */
++ rt = sc->sc_currates;
+ txrate = dot11_to_ratecode(sc, rt, ph->rate0);
+ power = ph->power > 60 ? 60 : ph->power;
+ hdrlen = ieee80211_anyhdrsize(wh);
================================================================
More information about the pld-cvs-commit
mailing list