Skip to content

Commit 32db98b

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8192e: remove 5G related code
In previous patches we removed 5G code since the hardware that uses this driver does not support 5G. There is still some 5G related code, remove it. All the removed defines are unused and we can safely remove "N-5G" from the rtllib_modes array. Signed-off-by: Michael Straube <straube.linux@gmail.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/20230619155203.6039-1-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 910b5ee commit 32db98b

4 files changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ enum _RTL8192PCI_HW {
159159
WFCRC2 = 0x2f8,
160160

161161
BW_OPMODE = 0x300,
162-
#define BW_OPMODE_5G BIT1
163162
#define BW_OPMODE_20MHZ BIT2
164163
IC_VERRSION = 0x301,
165164
MSR = 0x303,

drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@
266266
#define b3WireAddressLength 0x400
267267
#define b3WireRFPowerDown 0x1
268268
/*#define bHWSISelect 0x8 */
269-
#define b5GPAPEPolarity 0x40000000
270269
#define b2GPAPEPolarity 0x80000000
271270
#define bRFSW_TxDefaultAnt 0x3
272271
#define bRFSW_TxOptionAnt 0x30
@@ -284,7 +283,6 @@
284283
#define bRFSI_ANTSW 0x100
285284
#define bRFSI_ANTSWB 0x200
286285
#define bRFSI_PAPE 0x400
287-
#define bRFSI_PAPE5G 0x800
288286
#define bBandSelect 0x1
289287
#define bHTSIG2_GI 0x80
290288
#define bHTSIG2_Smoothing 0x01

drivers/staging/rtl8192e/rtllib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ enum wireless_mode {
427427
WIRELESS_MODE_G = 0x04,
428428
WIRELESS_MODE_AUTO = 0x08,
429429
WIRELESS_MODE_N_24G = 0x10,
430-
WIRELESS_MODE_N_5G = 0x20
431430
};
432431

433432
#ifndef ETH_P_PAE

drivers/staging/rtl8192e/rtllib_wx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "rtllib.h"
2020

2121
static const char * const rtllib_modes[] = {
22-
"a", "b", "g", "?", "N-24G", "N-5G"
22+
"a", "b", "g", "?", "N-24G"
2323
};
2424

2525
#define MAX_CUSTOM_LEN 64

0 commit comments

Comments
 (0)