staging: rtl8723bs: remove unused code blocks
v3 cover staging: rtl8723bs: remove unused code blocks
This patch set removes unused code clocks as required in TODO file:
find and remove code blocks guarded by never set CONFIG_FOO defines
Changes in v3:
- rebase of remaining conflicting patches
Changes in v2:
- modified subject lines to make them unique
- added a patch previously excluded (removal of CONFIG_PNO_SET_DEBUG code)
Fabio Aiuto (2):
staging: rtl8723bs: remove unused code blocks conditioned by never set
CONFIG_PNO_SUPPORT
staging: rtl8723bs: remove unused code blocks conditioned by never set
CONFIG_WOWLAN
drivers/staging/rtl8723bs/core/rtw_mlme.c | 3 - drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 24 +- .../staging/rtl8723bs/core/rtw_wlan_util.c | 61 +- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 825 +----------------- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 43 +- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 248 +----- drivers/staging/rtl8723bs/hal/sdio_ops.c | 4 +- drivers/staging/rtl8723bs/include/autoconf.h | 3 - drivers/staging/rtl8723bs/include/drv_types.h | 5 - .../rtl8723bs/include/drv_types_sdio.h | 2 +- .../staging/rtl8723bs/include/hal_com_h2c.h | 88 +- drivers/staging/rtl8723bs/include/hal_intf.h | 5 - .../staging/rtl8723bs/include/rtl8723b_cmd.h | 4 +- .../staging/rtl8723bs/include/rtl8723b_hal.h | 17 - .../staging/rtl8723bs/include/rtl8723b_spec.h | 10 - drivers/staging/rtl8723bs/include/rtw_mp.h | 3 - .../staging/rtl8723bs/include/rtw_pwrctrl.h | 62 -- .../staging/rtl8723bs/include/rtw_security.h | 3 - drivers/staging/rtl8723bs/include/sdio_ops.h | 8 +- drivers/staging/rtl8723bs/include/sta_info.h | 5 - .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 56 -- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 3 - drivers/staging/rtl8723bs/os_dep/os_intfs.c | 238 +---- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 5 - 24 files changed, 29 insertions(+), 1696 deletions(-)
Signature · 1 line
2.20.1
PATCH v3 1/2 staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_PNO_SUPPORT
Remove conditional code blocks checked by unused CONFIG_PNO_SUPPORT
Cleaning required in TODO file:
find and remove code blocks guarded by never set CONFIG_FOO defines
--- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 18 -- .../staging/rtl8723bs/core/rtw_wlan_util.c | 8 - drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 269 ------------------ drivers/staging/rtl8723bs/hal/sdio_halinit.c | 8 - .../staging/rtl8723bs/include/hal_com_h2c.h | 17 -- .../staging/rtl8723bs/include/rtl8723b_hal.h | 10 - .../staging/rtl8723bs/include/rtw_pwrctrl.h | 53 ---- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 56 ---- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 7 - 9 files changed, 446 deletions(-)
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +0 -18
@@ -1149,29 +1149,11 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter) pwrctrlpriv->wowlan_mode = false; pwrctrlpriv->wowlan_ap_mode = false; - -#ifdef CONFIG_PNO_SUPPORT - pwrctrlpriv->pno_inited = false; - pwrctrlpriv->pnlo_info =NULL ; - pwrctrlpriv->pscan_info =NULL ; - pwrctrlpriv->pno_ssid_list =NULL ; - pwrctrlpriv->pno_in_resume = true; -#endif }void rtw_free_pwrctrl_priv (struct adapter *adapter) { -#ifdef CONFIG_PNO_SUPPORT -if (pwrctrlpriv->pnlo_info) -printk ("****** pnlo_info memory leak********\n" ); - -if (pwrctrlpriv->pscan_info) -printk ("****** pscan_info memory leak********\n" ); - -if (pwrctrlpriv->pno_ssid_list) -printk ("****** pno_ssid_list memory leak********\n" ); -#endif }inline void rtw_set_ips_deny (struct adapter *padapter,u32 ms)
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +0 -8
@@ -2189,11 +2189,3 @@ void rtw_set_sec_pn(struct adapter *padapter) }#endif /* CONFIG_WOWLAN */ -#ifdef CONFIG_PNO_SUPPORT -#define CSCAN_TLV_TYPE_SSID_IE 'S' -#define CIPHER_IE "key_mgmt =" -#define CIPHER_NONE "NONE" -#define CIPHER_WPA_PSK "WPA-PSK" -#define CIPHER_WPA_EAP "WPA-EAP IEEE8021X" - -#endif /* CONFIG_PNO_SUPPORT */
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +0 -269
322 lines not on this page · raw message
drivers/staging/rtl8723bs/hal/sdio_halinit.c +0 -8
@@ -1555,14 +1555,6 @@ static void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val)if (psta)rtl8723b_set_FwMediaStatusRpt_cmd (padapter,RT_MEDIA_CONNECT , psta->mac_id); } -#ifdef CONFIG_PNO_SUPPORT -rtw_write8 (padapter,0x1b8 ,0 ); -DBG_871X ("reset 0x1b8: %d\n" ,rtw_read8 (padapter,0x1b8 )); -rtw_write8 (padapter,0x1b9 ,0 ); -DBG_871X ("reset 0x1b9: %d\n" ,rtw_read8 (padapter,0x1b9 )); -rtw_write8 (padapter,REG_PNO_STATUS ,0 ); -DBG_871X ("reset REG_PNO_STATUS: %d\n" ,rtw_read8 (padapter,REG_PNO_STATUS )); -#endif break ;default :
drivers/staging/rtl8723bs/include/hal_com_h2c.h +0 -17
@@ -233,17 +233,6 @@ enum h2c_cmd {#ifdef CONFIG_GTK_OL #define SET_H2CCMD_AOAC_RSVDPAGE_LOC_GTK_EXT_MEM (__pH2CCmd, __Value) SET_BITS_TO_LE_1BYTE_8BIT((__pH2CCmd)+5, 0, 8, __Value)#endif /* CONFIG_GTK_OL */ -#ifdef CONFIG_PNO_SUPPORT -#define SET_H2CCMD_AOAC_RSVDPAGE_LOC_NLO_INFO (__pH2CCmd, __Value) SET_BITS_TO_LE_1BYTE_8BIT((__pH2CCmd), 0, 8, __Value) -#endif - -#ifdef CONFIG_PNO_SUPPORT -/* D0_Scan_Offload_Info_0x86 */ -#define SET_H2CCMD_AOAC_NLO_FUN_EN (__pH2CCmd, __Value) SET_BITS_TO_LE_1BYTE((__pH2CCmd), 3, 1, __Value) -#define SET_H2CCMD_AOAC_RSVDPAGE_LOC_PROBE_PACKET (__pH2CCmd, __Value) SET_BITS_TO_LE_1BYTE_8BIT((__pH2CCmd)+1, 0, 8, __Value) -#define SET_H2CCMD_AOAC_RSVDPAGE_LOC_SCAN_INFO (__pH2CCmd, __Value) SET_BITS_TO_LE_1BYTE_8BIT((__pH2CCmd)+2, 0, 8, __Value) -#define SET_H2CCMD_AOAC_RSVDPAGE_LOC_SSID_INFO (__pH2CCmd, __Value) SET_BITS_TO_LE_1BYTE_8BIT((__pH2CCmd)+3, 0, 8, __Value) -#endif /* CONFIG_PNO_SUPPORT */ /* */ /* Structure -------------------------------------------------- */
@@ -265,12 +254,6 @@ struct RSVDPAGE_LOC {#ifdef CONFIG_GTK_OL u8 LocGTKEXTMEM;#endif /* CONFIG_GTK_OL */ -#ifdef CONFIG_PNO_SUPPORT -u8 LocPNOInfo; -u8 LocScanInfo; -u8 LocSSIDInfo; -u8 LocProbePacket; -#endif /* CONFIG_PNO_SUPPORT */ #endif /* CONFIG_WOWLAN */ #ifdef CONFIG_AP_WOWLAN u8 LocApOffloadBCN;
drivers/staging/rtl8723bs/include/rtl8723b_hal.h +0 -10
@@ -92,11 +92,6 @@ struct rt_firmware_hdr {#define BCNQ_PAGE_NUM_8723B 0x08#define BCNQ1_PAGE_NUM_8723B 0x00 -#ifdef CONFIG_PNO_SUPPORT -#undef BCNQ1_PAGE_NUM_8723B -#define BCNQ1_PAGE_NUM_8723B 0x00/* 0x04 */ -#endif -#define MAX_RX_DMA_BUFFER_SIZE_8723B 0x2800/* RX 10K */ /* For WoWLan, more reserved page */
@@ -107,11 +102,6 @@ struct rt_firmware_hdr {#define WOWLAN_PAGE_NUM_8723B 0x00#endif -#ifdef CONFIG_PNO_SUPPORT -#undef WOWLAN_PAGE_NUM_8723B -#define WOWLAN_PAGE_NUM_8723B 0x0d -#endif -#ifdef CONFIG_AP_WOWLAN #define AP_WOWLAN_PAGE_NUM_8723B 0x02#endif
drivers/staging/rtl8723bs/include/rtw_pwrctrl.h +0 -53
71 lines not on this page · raw message
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +0 -56
74 lines not on this page · raw message
drivers/staging/rtl8723bs/os_dep/os_intfs.c +0 -7
@@ -1505,10 +1505,6 @@ int rtw_resume_process_wow(struct adapter *padapter) goto exit; } -#ifdef CONFIG_PNO_SUPPORT - pwrpriv->pno_in_resume = true; -#endif -if (pwrpriv->wowlan_mode) {rtw_set_ps_mode (padapter,PS_MODE_ACTIVE ,0 ,0 ,"WOWLAN" );
@@ -1780,9 +1776,6 @@ int rtw_resume_common(struct adapter *padapter)if (pwrpriv) { pwrpriv->bInSuspend = false; -#ifdef CONFIG_PNO_SUPPORT - pwrpriv->pno_in_resume = false; -#endif }DBG_871X_LEVEL (_drv_always_,"%s:%d in %d ms\n" , __func__, ret,jiffies_to_msecs (jiffies - start_time));
Signature · 1 line
2.20.1
PATCH v3 2/2 staging: rtl8723bs: remove unused code blocks conditioned by never set CONFIG_WOWLAN
In reply to Fabio Aiutoremove conditional code blocks checked by unused CONFIG_WOWLAN
cleaning required in TODO file:
find and remove code blocks guarded by never set CONFIG_FOO defines
--- drivers/staging/rtl8723bs/core/rtw_mlme.c | 3 - drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 6 +- .../staging/rtl8723bs/core/rtw_wlan_util.c | 53 +- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 556 +----------------- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 43 +- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 240 +------- drivers/staging/rtl8723bs/hal/sdio_ops.c | 4 +- drivers/staging/rtl8723bs/include/autoconf.h | 3 - drivers/staging/rtl8723bs/include/drv_types.h | 5 - .../rtl8723bs/include/drv_types_sdio.h | 2 +- .../staging/rtl8723bs/include/hal_com_h2c.h | 71 +-- drivers/staging/rtl8723bs/include/hal_intf.h | 5 - .../staging/rtl8723bs/include/rtl8723b_cmd.h | 4 +- .../staging/rtl8723bs/include/rtl8723b_hal.h | 7 - .../staging/rtl8723bs/include/rtl8723b_spec.h | 10 - drivers/staging/rtl8723bs/include/rtw_mp.h | 3 - .../staging/rtl8723bs/include/rtw_pwrctrl.h | 9 - .../staging/rtl8723bs/include/rtw_security.h | 3 - drivers/staging/rtl8723bs/include/sdio_ops.h | 8 +- drivers/staging/rtl8723bs/include/sta_info.h | 5 - .../staging/rtl8723bs/os_dep/ioctl_linux.c | 3 - drivers/staging/rtl8723bs/os_dep/os_intfs.c | 231 +------- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 5 - 23 files changed, 29 insertions(+), 1250 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme.c +0 -3
@@ -2098,9 +2098,6 @@ int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv)if (!candidate) {DBG_871X ("%s: return _FAIL(candidate == NULL)\n" , __func__); -#ifdef CONFIG_WOWLAN -_clr_fwstate_ (pmlmepriv, _FW_LINKED|_FW_UNDER_LINKING); -#endif ret = _FAIL; goto exit; }else {
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +3 -3
@@ -350,7 +350,7 @@ static u8 PS_RDY_CHECK(struct adapter *padapter)struct pwrctrl_priv *pwrpriv =adapter_to_pwrctl (padapter);struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN if (pwrpriv->bInSuspend && pwrpriv->wowlan_mode)return true;else if (pwrpriv->bInSuspend && pwrpriv->wowlan_ap_mode)
@@ -391,7 +391,7 @@ static u8 PS_RDY_CHECK(struct adapter *padapter)void rtw_set_ps_mode (struct adapter *padapter,u8 ps_mode,u8 smart_ps,u8 bcn_ant_mode,const char *msg) {struct pwrctrl_priv *pwrpriv =adapter_to_pwrctl (padapter); -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN struct debug_priv *pdbgpriv = &padapter->dvobj->drv_dbg;#endif
@@ -422,7 +422,7 @@ void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_a pwrpriv->pwr_mode = ps_mode;rtw_set_rpwm (padapter,PS_STATE_S4 ); -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN if (pwrpriv->wowlan_mode || pwrpriv->wowlan_ap_mode) {unsigned long start_time;u32 delay_ms;
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +2 -51
69 lines not on this page · raw message
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +6 -550
607 lines not on this page · raw message
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +3 -40
85 lines not on this page · raw message
drivers/staging/rtl8723bs/hal/sdio_halinit.c +1 -239
276 lines not on this page · raw message
drivers/staging/rtl8723bs/hal/sdio_ops.c +2 -2
@@ -1114,7 +1114,7 @@ void HalQueryTxOQTBufferStatus8723BSdio(struct adapter *adapter) haldata->SdioTxOQTFreeSpace =SdioLocalCmd52Read1Byte (adapter,SDIO_REG_OQT_FREE_PG ); } -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN u8 RecvOnePkt (struct adapter *adapter,u32 size) {struct recv_buf *recvbuf;
@@ -1149,4 +1149,4 @@ u8 RecvOnePkt(struct adapter *adapter, u32 size)DBG_871X ("-%s-\n" , __func__); return res; } -#endif /* CONFIG_WOWLAN */ +#endif /* CONFIG_AP_WOWLAN */
drivers/staging/rtl8723bs/include/autoconf.h +0 -3
@@ -40,9 +40,6 @@* Platform dependent */ #define WAKEUP_GPIO_IDX 12/* WIFI Chip Side */ -#ifdef CONFIG_WOWLAN -#define CONFIG_GTK_OL -#endif /* CONFIG_WOWLAN */ /* * Debug Related Config
drivers/staging/rtl8723bs/include/drv_types.h +0 -5
@@ -534,11 +534,6 @@ int rtw_set_gpio_output_value(struct net_device *netdev, int gpio_num, bool isHiint rtw_config_gpio (struct net_device *netdev,int gpio_num,bool isOutput);#endif -#ifdef CONFIG_WOWLAN -void rtw_suspend_wow (struct adapter *padapter); -int rtw_resume_process_wow (struct adapter *padapter); -#endif -static inline u8 *myid (struct eeprom_priv *peepriv) {return peepriv->mac_addr;
drivers/staging/rtl8723bs/include/drv_types_sdio.h +1 -1
@@ -11,7 +11,7 @@#include <linux/mmc/sdio_func.h> #include <linux/mmc/sdio_ids.h> -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN #include <linux/mmc/host.h> #include <linux/mmc/card.h> #endif
drivers/staging/rtl8723bs/include/hal_com_h2c.h +1 -70
95 lines not on this page · raw message
drivers/staging/rtl8723bs/include/hal_intf.h +0 -5
@@ -85,11 +85,6 @@ enum HW_VARIABLES { HW_VAR_APFM_ON_MAC, /* Auto FSM to Turn On, include clock, isolation, power control for MAC only *//* The valid upper nav range for the HW updating, if the true value is larger than the upper range, the HW won't update it. */ /* Unit in microsecond. 0 means disable this function. */ -#ifdef CONFIG_WOWLAN -HW_VAR_WOWLAN , -HW_VAR_WAKEUP_REASON , -HW_VAR_RPWM_TOG , -#endif#ifdef CONFIG_AP_WOWLAN HW_VAR_AP_WOWLAN,#endif
drivers/staging/rtl8723bs/include/rtl8723b_cmd.h +2 -2
@@ -177,11 +177,11 @@ void rtl8723b_download_BTCoex_AP_mode_rsvd_page(struct adapter *padapter);void CheckFwRsvdPageContent (struct adapter *padapter); -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN void rtl8723b_set_wowlan_cmd (struct adapter *padapter,u8 enable);void rtl8723b_set_ap_wowlan_cmd (struct adapter *padapter,u8 enable);void SetFwRelatedForWoWLAN8723b (struct adapter *padapter,u8 bHostIsGoingtoSleep); -#endif /* CONFIG_WOWLAN */ +#endif void rtl8723b_set_FwPwrModeInIPS_cmd (struct adapter *padapter,u8 cmd_param);
drivers/staging/rtl8723bs/include/rtl8723b_hal.h +0 -7
@@ -96,11 +96,7 @@ struct rt_firmware_hdr {/* For WoWLan, more reserved page */ /* ARP Rsp:1, RWC:1, GTK Info:1, GTK RSP:2, GTK EXT MEM:2, PNO: 6 */ -#ifdef CONFIG_WOWLAN -#define WOWLAN_PAGE_NUM_8723B 0x07 -#else #define WOWLAN_PAGE_NUM_8723B 0x00 -#endif #ifdef CONFIG_AP_WOWLAN #define AP_WOWLAN_PAGE_NUM_8723B 0x02
@@ -244,9 +240,6 @@ u8 GetHalDefVar8723B(struct adapter *padapter, enum HAL_DEF_VARIABLE variable,void rtl8723b_InitBeaconParameters (struct adapter *padapter);void _InitBurstPktLen_8723BS (struct adapter *adapter);void _8051Reset8723 (struct adapter *padapter); -#ifdef CONFIG_WOWLAN -void Hal_DetectWoWMode (struct adapter *padapter); -#endif /* CONFIG_WOWLAN */ void rtl8723b_start_thread (struct adapter *padapter);void rtl8723b_stop_thread (struct adapter *padapter);
drivers/staging/rtl8723bs/include/rtl8723b_spec.h +0 -10
@@ -96,10 +96,6 @@#define REG_TXPKTBUF_BCNQ_BDNY_8723B 0x0424#define REG_TXPKTBUF_MGQ_BDNY_8723B 0x0425#define REG_TXPKTBUF_WMAC_LBK_BF_HD_8723B 0x045D -#ifdef CONFIG_WOWLAN -#define REG_TXPKTBUF_IV_LOW 0x0484 -#define REG_TXPKTBUF_IV_HIGH 0x0488 -#endif #define REG_AMPDU_BURST_MODE_8723B 0x04BC/* */
@@ -164,12 +160,6 @@#define BIT_USB_RXDMA_AGG_EN BIT(31)#define RXDMA_AGG_MODE_EN BIT(1) -#ifdef CONFIG_WOWLAN -#define RXPKT_RELEASE_POLL BIT(16) -#define RXDMA_IDLE BIT(17) -#define RW_RELEASE_EN BIT(18) -#endif -/* */ /* */ /* 0x0400h ~ 0x047Fh Protocol Configuration */
drivers/staging/rtl8723bs/include/rtw_mp.h +0 -3
@@ -189,9 +189,6 @@ enum {CTA_TEST ,MP_DISABLE_BT_COEXIST , MP_PwrCtlDM, -#ifdef CONFIG_WOWLAN -MP_WOW_ENABLE , -#endif #ifdef CONFIG_AP_WOWLAN MP_AP_WOW_ENABLE, #endif
drivers/staging/rtl8723bs/include/rtw_pwrctrl.h +0 -9
@@ -220,15 +220,6 @@ struct pwrctrl_priv {u8 wowlan_wake_reason;u8 wowlan_ap_mode;u8 wowlan_mode; -#ifdef CONFIG_WOWLAN -u8 wowlan_pattern; -u8 wowlan_magic; -u8 wowlan_unicast; -u8 wowlan_pattern_idx; -u8 wowlan_pno_enable; -u32 wowlan_pattern_context[8 ][5 ]; -u64 wowlan_fw_iv; -#endif /* CONFIG_WOWLAN */ struct timer_list pwr_state_check_timer;struct adapter *adapter;int pwr_state_check_interval;
drivers/staging/rtl8723bs/include/rtw_security.h +0 -3
@@ -129,9 +129,6 @@ struct security_priv {u8 binstallGrpkey; -#ifdef CONFIG_GTK_OL -u8 binstallKCK_KEK; -#endif /* CONFIG_GTK_OL */ u8 binstallBIPkey;u8 busetkipkey;/* _timer tkip_timer; */
drivers/staging/rtl8723bs/include/sdio_ops.h +4 -4
@@ -25,17 +25,17 @@ s32 _sdio_write32(struct adapter *padapter, u32 addr, u32 val);extern void sd_int_hdl (struct adapter *padapter);extern u8 CheckIPSStatus (struct adapter *padapter); -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN extern u8 RecvOnePkt (struct adapter *padapter,u32 size); -#endif /* CONFIG_WOWLAN */ +#endif extern void InitInterrupt8723BSdio (struct adapter *padapter);extern void InitSysInterrupt8723BSdio (struct adapter *padapter);extern void EnableInterrupt8723BSdio (struct adapter *padapter);extern void DisableInterrupt8723BSdio (struct adapter *padapter);extern u8 HalQueryTxBufferStatus8723BSdio (struct adapter *padapter);extern void HalQueryTxOQTBufferStatus8723BSdio (struct adapter *padapter); -#if defined(CONFIG_WOWLAN ) || defined(CONFIG_AP_WOWLAN ) +#ifdef CONFIG_AP_WOWLAN extern void ClearInterrupt8723BSdio (struct adapter *padapter); -#endif /* CONFIG_WOWLAN */ +#endif #endif /* !__SDIO_OPS_H__ */
drivers/staging/rtl8723bs/include/sta_info.h +0 -5
@@ -92,11 +92,6 @@ struct sta_info {union Keytype dot11tkiprxmickey;union Keytype dot118021x_UncstKey;union pn48 dot11txpn;/* PN48 used for Unicast xmit */ -#ifdef CONFIG_GTK_OL -u8 kek[RTW_KEK_LEN ]; -u8 kck[RTW_KCK_LEN ]; -u8 replay_ctr[RTW_REPLAY_CTR_LEN ]; -#endif /* CONFIG_GTK_OL */ union pn48 dot11wtxpn;/* PN48 used for Unicast mgmt xmit. */ union pn48 dot11rxpn;/* PN48 used for Unicast recv. */
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +0 -3
@@ -4669,9 +4669,6 @@ static const struct iw_priv_args rtw_private_args[] = {IW_PRIV_TYPE_CHAR |40 ,IW_PRIV_TYPE_CHAR |0x7FF ,"test" }, -#ifdef CONFIG_WOWLAN - { MP_WOW_ENABLE, IW_PRIV_TYPE_CHAR | 1024, 0, "wow_mode" }, /* set */ -#endif #ifdef CONFIG_AP_WOWLAN { MP_AP_WOW_ENABLE, IW_PRIV_TYPE_CHAR | 1024, 0, "ap_wow_mode" }, /* set */ #endif
drivers/staging/rtl8723bs/os_dep/os_intfs.c +4 -227
269 lines not on this page · raw message
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +0 -5
@@ -377,11 +377,6 @@ static void rtw_sdio_if1_deinit(struct adapter *if1)rtw_cancel_all_timer (if1); -#ifdef CONFIG_WOWLAN -adapter_to_pwrctl (if1)->wowlan_mode = false; -DBG_871X_LEVEL (_drv_always_,"%s wowlan_mode:%d\n" , __func__,adapter_to_pwrctl (if1)->wowlan_mode); -#endif /* CONFIG_WOWLAN */ -rtw_dev_unload (if1);DBG_871X ("+r871xu_dev_remove, hw_init_completed =%d\n" , if1->hw_init_completed);
Signature · 1 line
2.20.1