nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | diff -ur madwifi-ng/ath/if_ath.c madwifi-ng-patched/ath/if_ath.c |
2 | --- madwifi-ng/ath/if_ath.c 2007-04-14 15:42:02.000000000 +0200 |
||
3 | +++ madwifi-ng-patched/ath/if_ath.c 2007-04-14 15:43:18.000000000 +0200 |
||
4 | @@ -2285,6 +2285,7 @@ |
||
5 | ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb) |
||
6 | { |
||
7 | struct ath_softc *sc = dev->priv; |
||
8 | + struct ieee80211com *ic = &sc->sc_ic; |
||
9 | struct ath_hal *ah = sc->sc_ah; |
||
10 | struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb)); |
||
11 | const HAL_RATE_TABLE *rt; |
||
12 | @@ -2298,7 +2299,11 @@ |
||
13 | struct ieee80211_frame *wh; |
||
14 | |||
15 | wh = (struct ieee80211_frame *) skb->data; |
||
16 | - try0 = ph->try0; |
||
17 | + try0 = (ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : ph->try0; |
||
18 | + /* |
||
19 | + * The retry value has to be patched to 1 when injecting, |
||
20 | + * otherwise the sequence number will be overwritten |
||
21 | + */ |
||
22 | rt = sc->sc_currates; |
||
23 | txrate = dot11_to_ratecode(sc, rt, ph->rate0); |
||
24 | power = ph->power > 60 ? 60 : ph->power; |
||
25 | Only in madwifi-ng-patched/ath: if_ath.c~ |