This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit cdcdce16f73cdd95990c1abc20b060d99765890a
Author: chao an <anc...@xiaomi.com>
AuthorDate: Wed Mar 22 20:19:06 2023 +0800

    wireless/bcm43xxx: enter power saving only if IEEE80211_BROADCOM_LOWPOWER 
enabled
    
    Signed-off-by: chao an <anc...@xiaomi.com>
---
 drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c 
b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c
index 240f569f8d..56e35134f2 100644
--- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c
+++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c
@@ -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)

Reply via email to