Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 193549 | Differences between
and this patch

Collapse All | Expand All

(-)ath/if_ath.c (-1 / +6 lines)
Lines 3024-3029 Link Here
3024
ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb)
3024
ath_tx_startraw(struct net_device *dev, struct ath_buf *bf, struct sk_buff *skb)
3025
{
3025
{
3026
	struct ath_softc *sc = netdev_priv(dev);
3026
	struct ath_softc *sc = netdev_priv(dev);
3027
	struct ieee80211com *ic = &sc->sc_ic;
3027
	struct ath_hal *ah = sc->sc_ah;
3028
	struct ath_hal *ah = sc->sc_ah;
3028
	struct ieee80211_phy_params *ph = &(SKB_CB(skb)->phy); 
3029
	struct ieee80211_phy_params *ph = &(SKB_CB(skb)->phy); 
3029
	const HAL_RATE_TABLE *rt;
3030
	const HAL_RATE_TABLE *rt;
Lines 3036-3042 Link Here
3036
	struct ieee80211_frame *wh;
3037
	struct ieee80211_frame *wh;
3037
3038
3038
	wh = (struct ieee80211_frame *)skb->data;
3039
	wh = (struct ieee80211_frame *)skb->data;
3039
	try0 = ph->try[0];
3040
	try0 = (ic->ic_opmode == IEEE80211_M_MONITOR) ? 1 : ph->try[0];
3041
	/*
3042
	 * The retry value has to be patched to 1 when injecting,
3043
	 * otherwise the sequence number will be overwritten
3044
	 */
3040
	rt = sc->sc_currates;
3045
	rt = sc->sc_currates;
3041
	txrate = dot11_to_ratecode(sc, rt, ph->rate[0]);
3046
	txrate = dot11_to_ratecode(sc, rt, ph->rate[0]);
3042
	power = ph->power > 60 ? 60 : ph->power;
3047
	power = ph->power > 60 ? 60 : ph->power;

Return to bug 193549