staging: rtl8723bs: Remove unused functions starting with RTW_DISABLE_FUNC
cover staging: rtl8723bs: Remove unused functions starting with RTW_DISABLE_FUNC
Remove unused functions.
There are some debug functions in between. I assume that those can be removed as well as due to missing information how to use them and what the output is those are not useable for developers without further documentation.
Tested with rtl8723bs in ODYS Trendbook Next 14
MAINTAINERS File does not need to be updated.
Philipp Hortmann (11):
staging: rtl8723bs: Remove unused function RTW_DISABLE_FUNC
staging: rtl8723bs: Remove unused function rxmem_to_recvframe
staging: rtl8723bs: Remove unused function rtw_hal_get_odm_var
staging: rtl8723bs: Remove unused function rf_reg_dump
staging: rtl8723bs: Remove unused function dump_4_rf_regs
staging: rtl8723bs: Remove unused function bb_reg_dump
staging: rtl8723bs: Remove unused function mac_reg_dump
staging: rtl8723bs: Remove unused function dump_4_regs
staging: rtl8723bs: Remove unused files rtw_debug.c and rtw_debug.h
staging: rtl8723bs: Remove unused function rtw_ch2freq
staging: rtl8723bs: Remove unused file rtw_rf.c
drivers/staging/rtl8723bs/Makefile | 2 - drivers/staging/rtl8723bs/core/rtw_ap.c | 1 - drivers/staging/rtl8723bs/core/rtw_btcoex.c | 1 - drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 -- drivers/staging/rtl8723bs/core/rtw_debug.c | 68 ------------------- drivers/staging/rtl8723bs/core/rtw_efuse.c | 1 - .../staging/rtl8723bs/core/rtw_ieee80211.c | 1 - drivers/staging/rtl8723bs/core/rtw_io.c | 1 - .../staging/rtl8723bs/core/rtw_ioctl_set.c | 1 - drivers/staging/rtl8723bs/core/rtw_mlme.c | 1 - drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 1 - drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 1 - drivers/staging/rtl8723bs/core/rtw_recv.c | 1 - drivers/staging/rtl8723bs/core/rtw_rf.c | 34 ---------- drivers/staging/rtl8723bs/core/rtw_security.c | 1 - drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 1 - .../staging/rtl8723bs/core/rtw_wlan_util.c | 1 - drivers/staging/rtl8723bs/core/rtw_xmit.c | 1 - .../staging/rtl8723bs/hal/HalPhyRf_8723B.c | 1 - drivers/staging/rtl8723bs/hal/HalPwrSeqCmd.c | 1 - drivers/staging/rtl8723bs/hal/hal_btcoex.c | 1 - drivers/staging/rtl8723bs/hal/hal_com.c | 1 - .../staging/rtl8723bs/hal/hal_com_phycfg.c | 1 - drivers/staging/rtl8723bs/hal/hal_intf.c | 7 -- drivers/staging/rtl8723bs/hal/hal_sdio.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_dm.c | 1 - .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 1 - .../staging/rtl8723bs/hal/rtl8723b_phycfg.c | 1 - .../staging/rtl8723bs/hal/rtl8723bs_recv.c | 1 - .../staging/rtl8723bs/hal/rtl8723bs_xmit.c | 1 - drivers/staging/rtl8723bs/hal/sdio_halinit.c | 1 - drivers/staging/rtl8723bs/hal/sdio_ops.c | 1 - drivers/staging/rtl8723bs/include/drv_types.h | 7 -- drivers/staging/rtl8723bs/include/hal_intf.h | 1 - drivers/staging/rtl8723bs/include/rtw_debug.h | 14 ---- drivers/staging/rtl8723bs/include/rtw_recv.h | 10 --- drivers/staging/rtl8723bs/include/rtw_rf.h | 2 - .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 1 - .../staging/rtl8723bs/os_dep/ioctl_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/os_intfs.c | 1 - .../staging/rtl8723bs/os_dep/osdep_service.c | 1 - drivers/staging/rtl8723bs/os_dep/recv_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 1 - .../staging/rtl8723bs/os_dep/sdio_ops_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 1 - drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 1 - 48 files changed, 187 deletions(-) delete mode 100644 drivers/staging/rtl8723bs/core/rtw_debug.c delete mode 100644 drivers/staging/rtl8723bs/core/rtw_rf.c delete mode 100644 drivers/staging/rtl8723bs/include/rtw_debug.h
Signature · 1 line
2.46.0
PATCH 1/11 staging: rtl8723bs: Remove unused function RTW_DISABLE_FUNC
Remove unused function RTW_DISABLE_FUNC and its comment.
--- drivers/staging/rtl8723bs/include/drv_types.h | 7 ------- 1 file changed, 7 deletions(-)
drivers/staging/rtl8723bs/include/drv_types.h +0 -7
@@ -452,14 +452,7 @@ struct adapter {#define DF_RX_BIT BIT1#define DF_IO_BIT BIT2 -/* define RTW_DISABLE_FUNC(padapter, func) (atomic_add(&adapter_to_dvobj(padapter)->disable_func, (func))) */ /* define RTW_ENABLE_FUNC(padapter, func) (atomic_sub(&adapter_to_dvobj(padapter)->disable_func, (func))) */ -static inline void RTW_DISABLE_FUNC (struct adapter *padapter,int func_bit) -{ -int df =atomic_read (&adapter_to_dvobj (padapter)->disable_func); - df |= func_bit; -atomic_set (&adapter_to_dvobj (padapter)->disable_func, df); -}static inline void RTW_ENABLE_FUNC (struct adapter *padapter,int func_bit) {
Signature · 1 line
2.46.0
PATCH 2/11 staging: rtl8723bs: Remove unused function rxmem_to_recvframe
In reply to Philipp HortmannRemove unused function rxmem_to_recvframe and its comment.
--- drivers/staging/rtl8723bs/include/rtw_recv.h | 10 ---------- 1 file changed, 10 deletions(-)
drivers/staging/rtl8723bs/include/rtw_recv.h +0 -10
@@ -444,16 +444,6 @@ static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, signed int s } -static inline union recv_frame *rxmem_to_recvframe (u8 *rxmem) -{ -/* due to the design of 2048 bytes alignment of recv_frame, we can reference the union recv_frame */ -/* from any given member of recv_frame. */ -/* rxmem indicates the any member/address in recv_frame */ - -return (union recv_frame *)(((SIZE_PTR )rxmem >>RXFRAME_ALIGN ) <<RXFRAME_ALIGN ); - -} -static inline signed int get_recvframe_len (union recv_frame *precvframe) {return precvframe->u.hdr.len;
Signature · 1 line
2.46.0
PATCH 3/11 staging: rtl8723bs: Remove unused function rtw_hal_get_odm_var
In reply to Philipp HortmannRemove unused function rtw_hal_get_odm_var.
--- drivers/staging/rtl8723bs/hal/hal_intf.c | 6 ------ drivers/staging/rtl8723bs/include/hal_intf.h | 1 - 2 files changed, 7 deletions(-)
drivers/staging/rtl8723bs/hal/hal_intf.c +0 -6
@@ -160,12 +160,6 @@ void rtw_hal_set_odm_var(struct adapter *padapter, enum hal_odm_variable eVariab padapter->HalFunc.SetHalODMVarHandler (padapter, eVariable, pValue1, bSet); } -void rtw_hal_get_odm_var (struct adapter *padapter,enum hal_odm_variable eVariable,void *pValue1,void *pValue2) -{ -if (padapter->HalFunc.GetHalODMVarHandler) - padapter->HalFunc.GetHalODMVarHandler (padapter, eVariable, pValue1, pValue2); -} -void rtw_hal_enable_interrupt (struct adapter *padapter) {if (padapter->HalFunc.enable_interrupt)
drivers/staging/rtl8723bs/include/hal_intf.h +0 -1
@@ -301,7 +301,6 @@ u8 rtw_hal_set_def_var(struct adapter *padapter, enum hal_def_variable eVariableu8 rtw_hal_get_def_var (struct adapter *padapter,enum hal_def_variable eVariable,void *pValue);void rtw_hal_set_odm_var (struct adapter *padapter,enum hal_odm_variable eVariable,void *pValue1,bool bSet); -void rtw_hal_get_odm_var (struct adapter *padapter,enum hal_odm_variable eVariable,void *pValue1,void *pValue2);void rtw_hal_enable_interrupt (struct adapter *padapter);void rtw_hal_disable_interrupt (struct adapter *padapter);
Signature · 1 line
2.46.0
PATCH 4/11 staging: rtl8723bs: Remove unused function rf_reg_dump
In reply to Philipp HortmannRemove unused function rf_reg_dump.
--- drivers/staging/rtl8723bs/core/rtw_debug.c | 11 ----------- drivers/staging/rtl8723bs/include/rtw_debug.h | 1 - 2 files changed, 12 deletions(-)
drivers/staging/rtl8723bs/core/rtw_debug.c +0 -11
@@ -55,14 +55,3 @@ static void dump_4_rf_regs(struct adapter *adapter, int path, int offset)netdev_dbg (adapter->pnetdev,"0x%02x 0x%08x 0x%08x 0x%08x 0x%08x\n" , i, reg[0 ], reg[1 ], reg[2 ], reg[3 ]); } - -void rf_reg_dump (struct adapter *adapter) -{ -int i, path =0 ; - -netdev_dbg (adapter->pnetdev,"======= RF REG =======\n" ); - -netdev_dbg (adapter->pnetdev,"RF_Path(%x)\n" , path); -for (i =0 ; i <0x100 ; i++) -dump_4_rf_regs (adapter, path, i); -}
drivers/staging/rtl8723bs/include/rtw_debug.h +0 -1
@@ -9,6 +9,5 @@void mac_reg_dump (struct adapter *adapter);void bb_reg_dump (struct adapter *adapter); -void rf_reg_dump (struct adapter *adapter);#endif /* __RTW_DEBUG_H__ */
Signature · 1 line
2.46.0
PATCH 5/11 staging: rtl8723bs: Remove unused function dump_4_rf_regs
In reply to Philipp HortmannRemove unused function dump_4_rf_regs.
--- drivers/staging/rtl8723bs/core/rtw_debug.c | 13 ------------- 1 file changed, 13 deletions(-)
drivers/staging/rtl8723bs/core/rtw_debug.c +0 -13
@@ -42,16 +42,3 @@ void bb_reg_dump(struct adapter *adapter)for (i =0x800 ; i <0x1000 ; i +=4 )dump_4_regs (adapter, i); } - -static void dump_4_rf_regs (struct adapter *adapter,int path,int offset) -{ -u8 reg[4 ]; -int i; - -for (i =0 ; i <4 ; i++) - reg[i] =rtw_hal_read_rfreg (adapter, path, offset + i, -0xffffffff ); - -netdev_dbg (adapter->pnetdev,"0x%02x 0x%08x 0x%08x 0x%08x 0x%08x\n" , - i, reg[0 ], reg[1 ], reg[2 ], reg[3 ]); -}
Signature · 1 line
2.46.0
PATCH 6/11 staging: rtl8723bs: Remove unused function bb_reg_dump
In reply to Philipp HortmannRemove unused function bb_reg_dump.
--- drivers/staging/rtl8723bs/core/rtw_debug.c | 10 ---------- drivers/staging/rtl8723bs/include/rtw_debug.h | 1 - 2 files changed, 11 deletions(-)
drivers/staging/rtl8723bs/core/rtw_debug.c +0 -10
@@ -32,13 +32,3 @@ void mac_reg_dump(struct adapter *adapter)for (i =0x0 ; i <0x800 ; i +=4 )dump_4_regs (adapter, i); } - -void bb_reg_dump (struct adapter *adapter) -{ -int i; - -netdev_dbg (adapter->pnetdev,"======= BB REG =======\n" ); - -for (i =0x800 ; i <0x1000 ; i +=4 ) -dump_4_regs (adapter, i); -}
drivers/staging/rtl8723bs/include/rtw_debug.h +0 -1
@@ -8,6 +8,5 @@#define __RTW_DEBUG_H__void mac_reg_dump (struct adapter *adapter); -void bb_reg_dump (struct adapter *adapter);#endif /* __RTW_DEBUG_H__ */
Signature · 1 line
2.46.0
PATCH 7/11 staging: rtl8723bs: Remove unused function mac_reg_dump
In reply to Philipp HortmannRemove unused function mac_reg_dump.
--- drivers/staging/rtl8723bs/core/rtw_debug.c | 10 ---------- drivers/staging/rtl8723bs/include/rtw_debug.h | 2 -- 2 files changed, 12 deletions(-)
drivers/staging/rtl8723bs/core/rtw_debug.c +0 -10
@@ -22,13 +22,3 @@ static void dump_4_regs(struct adapter *adapter, int offset)netdev_dbg (adapter->pnetdev,"0x%03x 0x%08x 0x%08x 0x%08x 0x%08x\n" , i, reg[0 ], reg[1 ], reg[2 ], reg[3 ]); } - -void mac_reg_dump (struct adapter *adapter) -{ -int i; - -netdev_dbg (adapter->pnetdev,"======= MAC REG =======\n" ); - -for (i =0x0 ; i <0x800 ; i +=4 ) -dump_4_regs (adapter, i); -}
drivers/staging/rtl8723bs/include/rtw_debug.h +0 -2
@@ -7,6 +7,4 @@#ifndef __RTW_DEBUG_H__#define __RTW_DEBUG_H__ -void mac_reg_dump (struct adapter *adapter); -#endif /* __RTW_DEBUG_H__ */
Signature · 1 line
2.46.0
PATCH 8/11 staging: rtl8723bs: Remove unused function dump_4_regs
In reply to Philipp HortmannRemove unused function dump_4_regs.
--- drivers/staging/rtl8723bs/core/rtw_debug.c | 12 ------------ 1 file changed, 12 deletions(-)
drivers/staging/rtl8723bs/core/rtw_debug.c +0 -12
@@ -10,15 +10,3 @@#include <hal_btcoex.h> #include <rtw_version.h> - -static void dump_4_regs (struct adapter *adapter,int offset) -{ -u32 reg[4 ]; -int i; - -for (i =0 ; i <4 ; i++) - reg[i] =rtw_read32 (adapter, offset + i); - -netdev_dbg (adapter->pnetdev,"0x%03x 0x%08x 0x%08x 0x%08x 0x%08x\n" , - i, reg[0 ], reg[1 ], reg[2 ], reg[3 ]); -}
Signature · 1 line
2.46.0
PATCH 9/11 staging: rtl8723bs: Remove unused files rtw_debug.c and rtw_debug.h
In reply to Philipp HortmannRemove unused files rtw_debug.c and rtw_debug.h.
--- drivers/staging/rtl8723bs/Makefile | 1 - drivers/staging/rtl8723bs/core/rtw_ap.c | 1 - drivers/staging/rtl8723bs/core/rtw_btcoex.c | 1 - drivers/staging/rtl8723bs/core/rtw_cmd.c | 1 - drivers/staging/rtl8723bs/core/rtw_debug.c | 12 ------------ drivers/staging/rtl8723bs/core/rtw_efuse.c | 1 - drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 1 - drivers/staging/rtl8723bs/core/rtw_io.c | 1 - drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 1 - drivers/staging/rtl8723bs/core/rtw_mlme.c | 1 - drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 1 - drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 1 - drivers/staging/rtl8723bs/core/rtw_recv.c | 1 - drivers/staging/rtl8723bs/core/rtw_security.c | 1 - drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 1 - drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 1 - drivers/staging/rtl8723bs/core/rtw_xmit.c | 1 - drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 1 - drivers/staging/rtl8723bs/hal/HalPwrSeqCmd.c | 1 - drivers/staging/rtl8723bs/hal/hal_btcoex.c | 1 - drivers/staging/rtl8723bs/hal/hal_com.c | 1 - drivers/staging/rtl8723bs/hal/hal_com_phycfg.c | 1 - drivers/staging/rtl8723bs/hal/hal_intf.c | 1 - drivers/staging/rtl8723bs/hal/hal_sdio.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_dm.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c | 1 - drivers/staging/rtl8723bs/hal/sdio_halinit.c | 1 - drivers/staging/rtl8723bs/hal/sdio_ops.c | 1 - drivers/staging/rtl8723bs/include/rtw_debug.h | 10 ---------- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 1 - drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/mlme_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/os_intfs.c | 1 - drivers/staging/rtl8723bs/os_dep/osdep_service.c | 1 - drivers/staging/rtl8723bs/os_dep/recv_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 1 - drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c | 1 - drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 1 - drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 1 - 43 files changed, 63 deletions(-) delete mode 100644 drivers/staging/rtl8723bs/core/rtw_debug.c delete mode 100644 drivers/staging/rtl8723bs/include/rtw_debug.h
drivers/staging/rtl8723bs/Makefile +0 -1
@@ -3,7 +3,6 @@ r8723bs-y = \ core/rtw_ap.o \ core/rtw_btcoex.o \ core/rtw_cmd.o \ - core/rtw_debug.o \ core/rtw_efuse.o \ core/rtw_io.o \ core/rtw_ioctl_set.o \
drivers/staging/rtl8723bs/core/rtw_ap.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <asm/unaligned.h> void init_mlme_ap_info (struct adapter *padapter)
drivers/staging/rtl8723bs/core/rtw_btcoex.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtw_btcoex.h> #include <hal_btcoex.h>
drivers/staging/rtl8723bs/core/rtw_cmd.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_btcoex.h> #include <linux/jiffies.h>
drivers/staging/rtl8723bs/core/rtw_debug.c deleted +0 -12
@@ -1,12 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/****************************************************************************** -* -* Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. -* -******************************************************************************/ - -#include <drv_types.h> -#include <rtw_debug.h> -#include <hal_btcoex.h> - -#include <rtw_version.h>
drivers/staging/rtl8723bs/core/rtw_efuse.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_data.h> #include <linux/jiffies.h>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <linux/of.h> #include <asm/unaligned.h>
drivers/staging/rtl8723bs/core/rtw_io.c +0 -1
@@ -26,7 +26,6 @@ [email protected]*/ #include <drv_types.h> -#include <rtw_debug.h> u8 rtw_read8 (struct adapter *adapter,u32 addr) {
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> u8 rtw_validate_bssid (u8 *bssid) {
drivers/staging/rtl8723bs/core/rtw_mlme.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <linux/etherdevice.h> #include <drv_types.h> -#include <rtw_debug.h> #include <hal_btcoex.h> #include <linux/jiffies.h>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtw_wifi_regd.h> #include <hal_btcoex.h> #include <linux/kernel.h>
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_data.h> #include <linux/jiffies.h>
drivers/staging/rtl8723bs/core/rtw_recv.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <linux/jiffies.h> #include <rtw_recv.h> #include <net/cfg80211.h>
drivers/staging/rtl8723bs/core/rtw_security.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <linux/crc32.h> #include <drv_types.h> -#include <rtw_debug.h> #include <crypto/aes.h> static const char *const _security_type_str[] = {
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> void _rtw_init_stainfo (struct sta_info *psta);void _rtw_init_stainfo (struct sta_info *psta)
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_com_h2c.h> static unsigned char ARTHEROS_OUI1 [] = {0x00 ,0x03 ,0x7f };
drivers/staging/rtl8723bs/core/rtw_xmit.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> static u8 P802_1H_OUI [P80211_OUI_LEN ] = {0x00 ,0x00 ,0xf8 };static u8 RFC1042_OUI [P80211_OUI_LEN ] = {0x00 ,0x00 ,0x00 };
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include "odm_precomp.h" /* MACRO definition for pRFCalibrateInfo->TxIQC_8723B[0] */
drivers/staging/rtl8723bs/hal/HalPwrSeqCmd.c +0 -1
@@ -21,7 +21,6 @@ Major Change History:--*/ #include <drv_types.h> -#include <rtw_debug.h> #include <HalPwrSeqCmd.h>
drivers/staging/rtl8723bs/hal/hal_btcoex.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <hal_data.h> -#include <rtw_debug.h> #include <hal_btcoex.h> #include <Mp_Precomp.h>
drivers/staging/rtl8723bs/hal/hal_com.c +0 -1
@@ -7,7 +7,6 @@#include <linux/kernel.h> #include <drv_types.h> -#include <rtw_debug.h> #include "hal_com_h2c.h" #include "odm_precomp.h"
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_data.h> #include <linux/kernel.h>
drivers/staging/rtl8723bs/hal/hal_intf.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_data.h> void rtw_hal_chip_configure (struct adapter *padapter)
drivers/staging/rtl8723bs/hal/hal_sdio.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_data.h> u8 rtw_hal_sdio_max_txoqt_free_space (struct adapter *padapter)
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> #include "hal_com_h2c.h"
drivers/staging/rtl8723bs/hal/rtl8723b_dm.c +0 -1
@@ -8,7 +8,6 @@/* This file is for 92CE/92CU dynamic mechanism only */ #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> /* Global var */
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +0 -1
@@ -8,7 +8,6 @@#include <linux/firmware.h> #include <linux/slab.h> #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> #include "hal_com_h2c.h"
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> /**
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> static void initrecvbuf (struct recv_buf *precvbuf,struct adapter *padapter)
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c +0 -1
@@ -6,7 +6,6 @@******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> static u8 rtw_sdio_wait_enough_TxOQT_space (struct adapter *padapter,u8 agg_num)
drivers/staging/rtl8723bs/hal/sdio_halinit.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> #include "hal_com_h2c.h"
drivers/staging/rtl8723bs/hal/sdio_ops.c +0 -1
@@ -5,7 +5,6 @@* *******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtl8723b_hal.h> /* */
drivers/staging/rtl8723bs/include/rtw_debug.h deleted +0 -10
@@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/****************************************************************************** -* -* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. -* -******************************************************************************/ -#ifndef __RTW_DEBUG_H__ -#define __RTW_DEBUG_H__ - -#endif /* __RTW_DEBUG_H__ */
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +0 -1
@@ -7,7 +7,6 @@#include <linux/etherdevice.h> #include <drv_types.h> -#include <rtw_debug.h> #include <linux/jiffies.h> #include <rtw_wifi_regd.h>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +0 -1
@@ -7,7 +7,6 @@#include <linux/etherdevice.h> #include <drv_types.h> -#include <rtw_debug.h> #include <rtw_mp.h> #include <hal_btcoex.h> #include <linux/jiffies.h>
drivers/staging/rtl8723bs/os_dep/mlme_linux.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> static void _dynamic_check_timer_handler (struct timer_list *t) {
drivers/staging/rtl8723bs/os_dep/os_intfs.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_data.h> MODULE_LICENSE ("GPL" );
drivers/staging/rtl8723bs/os_dep/osdep_service.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> /* * Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE
drivers/staging/rtl8723bs/os_dep/recv_linux.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <linux/jiffies.h> #include <net/cfg80211.h> #include <asm/unaligned.h>
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <hal_btcoex.h> #include <linux/jiffies.h>
drivers/staging/rtl8723bs/os_dep/sdio_ops_linux.c +0 -1
@@ -6,7 +6,6 @@*******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> static bool rtw_sdio_claim_host_needed (struct sdio_func *func) {
drivers/staging/rtl8723bs/os_dep/wifi_regd.c +0 -1
@@ -6,7 +6,6 @@*****************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> #include <rtw_wifi_regd.h>
drivers/staging/rtl8723bs/os_dep/xmit_linux.c +0 -1
@@ -5,7 +5,6 @@* ******************************************************************************/ #include <drv_types.h> -#include <rtw_debug.h> uint rtw_remainder_len (struct pkt_file *pfile)
Signature · 1 line
2.46.0
PATCH 10/11 staging: rtl8723bs: Remove unused function rtw_ch2freq
In reply to Philipp HortmannRemove unused function rtw_ch2freq with array ch_freq_map and comments.
--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 3 --- drivers/staging/rtl8723bs/core/rtw_rf.c | 25 ---------------------- drivers/staging/rtl8723bs/include/rtw_rf.h | 2 -- 3 files changed, 30 deletions(-)
drivers/staging/rtl8723bs/core/rtw_cmd.c +0 -3
@@ -1883,9 +1883,6 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)/* copy pdev_network information to pmlmepriv->cur_network */ memcpy (&tgt_network->network, pnetwork, (get_wlan_bssid_ex_sz (pnetwork))); -/* reset ds_config */ -/* tgt_network->network.configuration.ds_config = (u32)rtw_ch2freq(pnetwork->configuration.ds_config); */ -_clr_fwstate_ (pmlmepriv, _FW_UNDER_LINKING);spin_unlock_bh (&pmlmepriv->scanned_queue.lock);
drivers/staging/rtl8723bs/core/rtw_rf.c +0 -25
@@ -7,28 +7,3 @@#include <drv_types.h> #include <linux/kernel.h> - -static const u32 ch_freq_map[] = { -2412 , -2417 , -2422 , -2427 , -2432 , -2437 , -2442 , -2447 , -2452 , -2457 , -2462 , -2467 , -2472 , -2484 -}; - -u32 rtw_ch2freq (u32 channel) -{ -if (channel ==0 || channel >ARRAY_SIZE (ch_freq_map)) -return 2412 ; - -return ch_freq_map[channel -1 ]; -}
drivers/staging/rtl8723bs/include/rtw_rf.h +0 -2
@@ -97,6 +97,4 @@ enum { HT_DATA_SC_20_LOWER_OF_40MHZ = 2, }; -u32 rtw_ch2freq (u32 ch); -#endif /* _RTL8711_RF_H_ */
Signature · 1 line
2.46.0
PATCH 11/11 staging: rtl8723bs: Remove unused file rtw_rf.c
In reply to Philipp HortmannRemove unused file rtw_rf.c
--- drivers/staging/rtl8723bs/Makefile | 1 - drivers/staging/rtl8723bs/core/rtw_rf.c | 9 --------- 2 files changed, 10 deletions(-) delete mode 100644 drivers/staging/rtl8723bs/core/rtw_rf.c
drivers/staging/rtl8723bs/Makefile +0 -1
@@ -11,7 +11,6 @@ r8723bs-y = \ core/rtw_mlme_ext.o \ core/rtw_pwrctrl.o \ core/rtw_recv.o \ - core/rtw_rf.o \ core/rtw_security.o \ core/rtw_sta_mgt.o \ core/rtw_wlan_util.o \
drivers/staging/rtl8723bs/core/rtw_rf.c deleted +0 -9
@@ -1,9 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/****************************************************************************** -* -* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. -* -******************************************************************************/ - -#include <drv_types.h> -#include <linux/kernel.h>
Signature · 1 line
2.46.0