|
@@ -2076,7 +2076,6 @@ static bool ath9k_hw_set_power_awake(struct ath_hw *ah, int setChip)
|
|
|
bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode)
|
|
|
{
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
- struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
|
|
|
int status = true, setChip = true;
|
|
|
static const char *modes[] = {
|
|
|
"AWAKE",
|
|
@@ -2100,20 +2099,8 @@ bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode)
|
|
|
|
|
|
break;
|
|
|
case ATH9K_PM_FULL_SLEEP:
|
|
|
-
|
|
|
- if (ah->caps.hw_caps & ATH9K_HW_CAP_MCI) {
|
|
|
- if (ar9003_mci_state(ah, MCI_STATE_ENABLE, NULL) &&
|
|
|
- (mci->bt_state != MCI_BT_SLEEP) &&
|
|
|
- !mci->halted_bt_gpm) {
|
|
|
- ath_dbg(common, MCI,
|
|
|
- "MCI halt BT GPM (full_sleep)\n");
|
|
|
- ar9003_mci_send_coex_halt_bt_gpm(ah,
|
|
|
- true, true);
|
|
|
- }
|
|
|
-
|
|
|
- mci->ready = false;
|
|
|
- REG_WRITE(ah, AR_RTC_KEEP_AWAKE, 0x2);
|
|
|
- }
|
|
|
+ if (ah->caps.hw_caps & ATH9K_HW_CAP_MCI)
|
|
|
+ ar9003_mci_set_full_sleep(ah);
|
|
|
|
|
|
ath9k_set_power_sleep(ah, setChip);
|
|
|
ah->chip_fullsleep = true;
|