staging: rtl8723bs: remove some unused 5Ghz macro definitions
authorFabio Aiuto <fabioaiuto83@gmail.com>
Tue, 22 Jun 2021 13:09:54 +0000 (15:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jun 2021 12:43:45 +0000 (14:43 +0200)
remove some unused 5Ghz macro definitions. Fix
comments accordingly.

Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/8d2933555170e5f206b9198a203e8a31ee2b7702.1624367071.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm.h
drivers/staging/rtl8723bs/include/Hal8192CPhyReg.h
drivers/staging/rtl8723bs/include/hal_com_reg.h
drivers/staging/rtl8723bs/include/hal_pg.h

index 788fc1c..afb36de 100644 (file)
@@ -628,7 +628,6 @@ struct fat_t { /* _FAST_ANTENNA_TRAINNING_ */
        u32 MinMaxRSSI;
        u8 idx_AntDiv_counter_2G;
        u8 idx_AntDiv_counter_5G;
-       u32 AntDiv_2G_5G;
        u32 CCK_counter_main;
        u32 CCK_counter_aux;
        u32 OFDM_counter_main;
index 4b3a7c0..aad9625 100644 (file)
 
 #define                b3WireRFPowerDown                       0x1     /*  Useless now */
 /* define bHWSISelect                          0x8 */
-#define                b5GPAPEPolarity                         0x40000000
 #define                b2GPAPEPolarity                         0x80000000
 #define                bRFSW_TxDefaultAnt                      0x3
 #define                bRFSW_TxOptionAnt                       0x30
 #define                bRFSI_ANTSW                             0x100
 #define                bRFSI_ANTSWB                            0x200
 #define                bRFSI_PAPE                                      0x400
-#define                bRFSI_PAPE5G                            0x800
 #define                bBandSelect                                     0x1
 #define                bHTSIG2_GI                                      0x80
 #define                bHTSIG2_Smoothing                       0x01
index b14585c..b2f179b 100644 (file)
@@ -717,7 +717,6 @@ Default: 00b.
 /*        BW_OPMODE bits                               (Offset 0x603, 8bit) */
 /*  */
 #define BW_OPMODE_20MHZ                        BIT2
-#define BW_OPMODE_5G                           BIT1
 
 /*  */
 /*        CAM Config Setting (offset 0x680, 1 byte) */
index 0b7a8ad..2d8ccc9 100644 (file)
 
 /*  For VHT series TX power by rate table. */
 /*  VHT TX power by rate off setArray = */
-/*  Band:-2G&5G = 0 / 1 */
 /*  RF: at most 4*4 = ABCD = 0/1/2/3 */
 /*  CCK = 0 OFDM = 1/2 HT-MCS 0-15 =3/4/56 VHT =7/8/9/10/11 */
-#define TX_PWR_BY_RATE_NUM_BAND                        2
 #define TX_PWR_BY_RATE_NUM_RF                  4
 #define TX_PWR_BY_RATE_NUM_RATE                        84
 #define MAX_RF_PATH_NUM                                2