wireless/bcm43xxx: enter power saving only if IEEE80211_BROADCOM_LOWPOWER enabled

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-03-22 20:19:06 +08:00 committed by Alan Carvalho de Assis
parent 266774939f
commit cdcdce16f7
1 changed files with 2 additions and 0 deletions

View File

@ -992,7 +992,9 @@ int bcmf_sdio_thread(int argc, char **argv)
/* Turn off clock request. */
timeout = UINT_MAX;
#ifdef CONFIG_IEEE80211_BROADCOM_LOWPOWER
bcmf_sdio_bus_lowpower(sbus, true);
#endif
continue;
}
else if (ret < 0)