ath9k: Wakeup the chip in an appropriate place in ath_paprd_calibrate()
Move ath9k_ps_wakeup() down just before accessing hw registers. Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
78a1817251
commit
47399f1a7d
@@ -268,7 +268,6 @@ void ath_paprd_calibrate(struct work_struct *work)
|
|||||||
int time_left;
|
int time_left;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ath9k_ps_wakeup(sc);
|
|
||||||
skb = alloc_skb(len, GFP_KERNEL);
|
skb = alloc_skb(len, GFP_KERNEL);
|
||||||
if (!skb)
|
if (!skb)
|
||||||
return;
|
return;
|
||||||
@@ -289,6 +288,7 @@ void ath_paprd_calibrate(struct work_struct *work)
|
|||||||
qnum = sc->tx.hwq_map[WME_AC_BE];
|
qnum = sc->tx.hwq_map[WME_AC_BE];
|
||||||
txctl.txq = &sc->tx.txq[qnum];
|
txctl.txq = &sc->tx.txq[qnum];
|
||||||
|
|
||||||
|
ath9k_ps_wakeup(sc);
|
||||||
ar9003_paprd_init_table(ah);
|
ar9003_paprd_init_table(ah);
|
||||||
for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) {
|
for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) {
|
||||||
if (!(ah->caps.tx_chainmask & BIT(chain)))
|
if (!(ah->caps.tx_chainmask & BIT(chain)))
|
||||||
|
Reference in New Issue
Block a user