Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322775
b: refs/heads/master
c: 51dea9b
h: refs/heads/master
i:
  322773: 8522651
  322771: 9041cde
  322767: afef4bc
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Sep 5, 2012
1 parent 21cc128 commit a8281c5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 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: 1630d25fd00f195f0923d4b895e0529fdbba83c3
refs/heads/master: 51dea9be7e01d7e825ed1882246693f09c21374c
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1775,6 +1775,8 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
/* Operating channel changed, reset channel calibration data */
memset(caldata, 0, sizeof(*caldata));
ath9k_init_nfcal_hist_buffer(ah, chan);
} else if (caldata) {
caldata->paprd_packet_sent = false;
}
ah->noise = ath9k_hw_getchan_noise(ah, chan);

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/ath/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ struct ath9k_hw_cal_data {
int8_t iCoff;
int8_t qCoff;
bool rtt_done;
bool paprd_packet_sent;
bool paprd_done;
bool nfcal_pending;
bool nfcal_interference;
Expand Down
9 changes: 1 addition & 8 deletions trunk/drivers/net/wireless/ath/ath9k/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void ath_paprd_calibrate(struct work_struct *work)
int len = 1800;
int ret;

if (!caldata)
if (!caldata || !caldata->paprd_packet_sent || caldata->paprd_done)
return;

ath9k_ps_wakeup(sc);
Expand All @@ -283,13 +283,6 @@ void ath_paprd_calibrate(struct work_struct *work)
continue;

chain_ok = 0;

ath_dbg(common, CALIBRATE,
"Sending PAPRD frame for thermal measurement on chain %d\n",
chain);
if (!ath_paprd_send_frame(sc, skb, chain))
goto fail_paprd;

ar9003_paprd_setup_gain_table(ah, chain);

ath_dbg(common, CALIBRATE,
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2018,6 +2018,9 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,

ath_dbg(common, XMIT, "TX complete: skb: %p\n", skb);

if (sc->sc_ah->caldata)
sc->sc_ah->caldata->paprd_packet_sent = true;

if (!(tx_flags & ATH_TX_ERROR))
/* Frame was ACKed */
tx_info->flags |= IEEE80211_TX_STAT_ACK;
Expand Down

0 comments on commit a8281c5

Please sign in to comment.