nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 diff -Naur madwifi/ath/if_ath.c madwifi_rawtx/ath/if_ath.c
2 --- madwifi/ath/if_ath.c 2008-06-24 17:20:58.000000000 -0400
3 +++ madwifi_rawtx/ath/if_ath.c 2008-06-24 17:20:12.000000000 -0400
4 @@ -2950,6 +2950,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 = &(SKB_CB(skb)->phy);
11 const HAL_RATE_TABLE *rt;
12 @@ -2962,7 +2963,8 @@
13 struct ieee80211_frame *wh;
14  
15 wh = (struct ieee80211_frame *)skb->data;
16 - try0 = ph->try[0];
17 +// try0 = ph->try[0];
18 + try0 = (ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : ph->try[0];
19 rt = sc->sc_currates;
20 txrate = dot11_to_ratecode(sc, rt, ph->rate[0]);
21 power = ph->power > 60 ? 60 : ph->power;
22 @@ -2986,7 +2988,8 @@
23 rt = sc->sc_currates;
24 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode));
25  
26 - if (IEEE80211_IS_MULTICAST(wh->i_addr1)) {
27 + if (IEEE80211_IS_MULTICAST(wh->i_addr1) || ((ic->ic_opmode ==
28 +IEEE80211_M_MONITOR) && (skb->data[1]&3) != 0x01) ) {
29 flags |= HAL_TXDESC_NOACK; /* no ack on broad/multicast */
30 sc->sc_stats.ast_tx_noack++;
31 try0 = 1;