From 712734d55b7904039ceb10426212ca971f2711ac Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Fri, 22 Sep 2023 16:37:11 +0800 Subject: [PATCH] bcm43xxx: remove unuse function I added a function that I didn't use when I upstream another patch. Delete it https://github.com/apache/nuttx/pull/10709 Signed-off-by: zhanghongyu --- .../wireless/ieee80211/bcm43xxx/bcmf_driver.c | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c index 44ea3d5059..3c58fedf53 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c @@ -419,34 +419,6 @@ int bcmf_driver_download_clm(FAR struct bcmf_dev_s *priv) #endif #endif /* CONFIG_IEEE80211_BROADCOM_HAVE_CLM */ -int bcmf_wl_set_pm(FAR struct bcmf_dev_s *priv, int mode) -{ - int interface = CHIP_STA_INTERFACE; - uint32_t out_len; - uint32_t value; - int ret = OK; - - /* Set default power save mode */ - -#ifdef CONFIG_IEEE80211_BROADCOM_LOWPOWER - if (priv->lp_mode != mode) -#endif - { - out_len = 4; - value = mode; - ret = bcmf_cdc_ioctl(priv, interface, true, WLC_SET_PM, - (uint8_t *)&value, &out_len); -#ifdef CONFIG_IEEE80211_BROADCOM_LOWPOWER - if (ret == OK) - { - priv->lp_mode = mode; - } -#endif - } - - return ret; -} - /**************************************************************************** * Name: bcmf_wl_active ****************************************************************************/