|
@@ -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);
|
|
@@ -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,
|