Lines 2341-2346
Link Here
|
2341 |
ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb) |
2341 |
ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb) |
2342 |
{ |
2342 |
{ |
2343 |
struct ath_softc *sc = netdev_priv(dev); |
2343 |
struct ath_softc *sc = netdev_priv(dev); |
|
|
2344 |
struct ieee80211com *ic = &sc->sc_ic; |
2344 |
struct ath_hal *ah = sc->sc_ah; |
2345 |
struct ath_hal *ah = sc->sc_ah; |
2345 |
struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb)); |
2346 |
struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb)); |
2346 |
const HAL_RATE_TABLE *rt; |
2347 |
const HAL_RATE_TABLE *rt; |
Lines 2357-2363
Link Here
|
2357 |
struct ieee80211_frame *wh; |
2358 |
struct ieee80211_frame *wh; |
2358 |
|
2359 |
|
2359 |
wh = (struct ieee80211_frame *) skb->data; |
2360 |
wh = (struct ieee80211_frame *) skb->data; |
2360 |
try0 = ph->try0; |
2361 |
// try0 = ph->try0; |
|
|
2362 |
try0 = (ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : ph->try0; |
2361 |
rt = sc->sc_currates; |
2363 |
rt = sc->sc_currates; |
2362 |
txrate = dot11_to_ratecode(sc, rt, ph->rate0); |
2364 |
txrate = dot11_to_ratecode(sc, rt, ph->rate0); |
2363 |
power = ph->power > 60 ? 60 : ph->power; |
2365 |
power = ph->power > 60 ? 60 : ph->power; |
Lines 2386-2392
Link Here
|
2386 |
KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); |
2388 |
KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); |
2387 |
|
2389 |
|
2388 |
|
2390 |
|
2389 |
if (IEEE80211_IS_MULTICAST(wh->i_addr1)) { |
2391 |
if (IEEE80211_IS_MULTICAST(wh->i_addr1) || ((ic->ic_opmode == |
|
|
2392 |
IEEE80211_M_MONITOR) && (skb->data[1]&3) != 0x01) ) { |
2390 |
flags |= HAL_TXDESC_NOACK; /* no ack on broad/multicast */ |
2393 |
flags |= HAL_TXDESC_NOACK; /* no ack on broad/multicast */ |
2391 |
sc->sc_stats.ast_tx_noack++; |
2394 |
sc->sc_stats.ast_tx_noack++; |
2392 |
try0 = 1; |
2395 |
try0 = 1; |