nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | diff -ur madwifi-ng-r1486/ath/if_ath.c patched_madwifi-ng-r1486/ath/if_ath.c |
2 | --- madwifi-ng-r1486/ath/if_ath.c 2006-03-23 22:09:04.000000000 +0100 |
||
3 | +++ patched_madwifi-ng-r1486/ath/if_ath.c 2006-03-28 20:59:14.000000000 +0200 |
||
4 | @@ -2240,6 +2240,7 @@ |
||
5 | struct ath_softc *sc = dev->priv; |
||
6 | struct ath_hal *ah = sc->sc_ah; |
||
7 | struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb)); |
||
8 | + struct ieee80211com *ic = &sc->sc_ic; |
||
9 | const HAL_RATE_TABLE *rt; |
||
10 | int pktlen; |
||
11 | int hdrlen; |
||
12 | @@ -2254,7 +2255,11 @@ |
||
13 | struct ieee80211_frame *wh; |
||
14 | |||
15 | wh = (struct ieee80211_frame *) skb->data; |
||
16 | - try0 = ATH_TXMAXTRY; |
||
17 | + try0 = (ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : ATH_TXMAXTRY; |
||
18 | + /* |
||
19 | + * The retry value has to be patched to 1 when injecting, |
||
20 | + * otherwise the card waits for acknowledges... |
||
21 | + */ |
||
22 | rt = sc->sc_currates; |
||
23 | txrate = dot11_to_ratecode(sc, rt, ph->rate0); |
||
24 | power = ph->power > 60 ? 60 : ph->power; |