staging: r8188eu: CurrentWirelessMode is not used
authorMartin Kaiser <martin@kaiser.cx>
Sat, 16 Oct 2021 11:30:08 +0000 (13:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Oct 2021 14:40:15 +0000 (16:40 +0200)
CurrentWirelessMode in struct hal_data_8188e is not used. Remove the
component and the enum with its possible values.

Acked-by: Michael Straube <straube.linux@gmail.com>
Acked-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211016113008.27549-9-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/Hal8188EPhyCfg.h
drivers/staging/r8188eu/include/rtl8188e_hal.h

index 58377edf724dd925ab615c6fb0d7a2e4b369af53..6f901ce607e885f332c90d541212da683ee23322 100644 (file)
@@ -48,14 +48,6 @@ enum rf_radio_path {
                                                 * total three groups */
 #define CHANNEL_GROUP_MAX_88E          6
 
-enum wireless_mode {
-       WIRELESS_MODE_UNKNOWN = 0x00,
-       WIRELESS_MODE_B                 = BIT(0),
-       WIRELESS_MODE_G                 = BIT(1),
-       WIRELESS_MODE_AUTO              = BIT(5),
-       WIRELESS_MODE_N_24G             = BIT(3),
-};
-
 /* BB/RF related */
 enum RF_TYPE_8190P {
        RF_TYPE_MIN,            /*  0 */
index 5fdee1c6299cf17ac75bad340cdba0f457130261..ced7e12d90134455b3175ede1a659ad512059c90 100644 (file)
@@ -162,7 +162,6 @@ struct hal_data_8188e {
        u8      PGMaxGroup;
        /* current WIFI_PHY values */
        u32     ReceiveConfig;
-       enum wireless_mode CurrentWirelessMode;
        enum ht_channel_width CurrentChannelBW;
        u8      CurrentChannel;
        u8      nCur40MhzPrimeSC;/*  Control channel sub-carrier */