Lines 2289-2294
Link Here
|
2289 |
ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb) |
2289 |
ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb) |
2290 |
{ |
2290 |
{ |
2291 |
struct ath_softc *sc = dev->priv; |
2291 |
struct ath_softc *sc = dev->priv; |
|
|
2292 |
struct ieee80211com *ic = &sc->sc_ic; |
2292 |
struct ath_hal *ah = sc->sc_ah; |
2293 |
struct ath_hal *ah = sc->sc_ah; |
2293 |
struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb)); |
2294 |
struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *) (skb->cb + sizeof(struct ieee80211_cb)); |
2294 |
const HAL_RATE_TABLE *rt; |
2295 |
const HAL_RATE_TABLE *rt; |
Lines 2305-2311
Link Here
|
2305 |
struct ieee80211_frame *wh; |
2306 |
struct ieee80211_frame *wh; |
2306 |
|
2307 |
|
2307 |
wh = (struct ieee80211_frame *) skb->data; |
2308 |
wh = (struct ieee80211_frame *) skb->data; |
2308 |
try0 = ph->try0; |
2309 |
try0 = (ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : ph->try0; |
|
|
2310 |
/* |
2311 |
* The retry value has to be patched to 1 when injecting, |
2312 |
* otherwise the sequence number will be overwritten |
2313 |
*/ |
2309 |
rt = sc->sc_currates; |
2314 |
rt = sc->sc_currates; |
2310 |
txrate = dot11_to_ratecode(sc, rt, ph->rate0); |
2315 |
txrate = dot11_to_ratecode(sc, rt, ph->rate0); |
2311 |
power = ph->power > 60 ? 60 : ph->power; |
2316 |
power = ph->power > 60 ? 60 : ph->power; |