Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184449
b: refs/heads/master
c: 64b8401
h: refs/heads/master
i:
  184447: 74163b7
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Feb 16, 2010
1 parent 3c05e13 commit 03f117e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bef5d1c70d132145c0fc75b3586a19841a9a82e4
refs/heads/master: 64b84010f9f85996a219fcc697396e7e11be3459
10 changes: 5 additions & 5 deletions trunk/drivers/net/wireless/ath/ath9k/beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int ath_beaconq_config(struct ath_softc *sc)
* Beacons are always sent out at the lowest rate, and are not retried.
*/
static void ath_beacon_setup(struct ath_softc *sc, struct ath_vif *avp,
struct ath_buf *bf)
struct ath_buf *bf, int rateidx)
{
struct sk_buff *skb = bf->bf_mpdu;
struct ath_hw *ah = sc->sc_ah;
Expand Down Expand Up @@ -96,9 +96,9 @@ static void ath_beacon_setup(struct ath_softc *sc, struct ath_vif *avp,
ds->ds_data = bf->bf_buf_addr;

sband = &sc->sbands[common->hw->conf.channel->band];
rate = sband->bitrates[0].hw_value;
rate = sband->bitrates[rateidx].hw_value;
if (sc->sc_flags & SC_OP_PREAMBLE_SHORT)
rate |= sband->bitrates[0].hw_value_short;
rate |= sband->bitrates[rateidx].hw_value_short;

ath9k_hw_set11n_txdesc(ah, ds, skb->len + FCS_LEN,
ATH9K_PKT_TYPE_BEACON,
Expand Down Expand Up @@ -206,7 +206,7 @@ static struct ath_buf *ath_beacon_generate(struct ieee80211_hw *hw,
}
}

ath_beacon_setup(sc, avp, bf);
ath_beacon_setup(sc, avp, bf, info->control.rates[0].idx);

while (skb) {
ath_tx_cabq(hw, skb);
Expand Down Expand Up @@ -237,7 +237,7 @@ static void ath_beacon_start_adhoc(struct ath_softc *sc,
bf = avp->av_bcbuf;
skb = bf->bf_mpdu;

ath_beacon_setup(sc, avp, bf);
ath_beacon_setup(sc, avp, bf, 0);

/* NB: caller is known to have already stopped tx dma */
ath9k_hw_puttxbuf(ah, sc->beacon.beaconq, bf->bf_daddr);
Expand Down

0 comments on commit 03f117e

Please sign in to comment.