staging: wilc1000: remove extra enum defined for data rates
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 18 Jul 2018 22:44:59 +0000 (04:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 07:04:47 +0000 (09:04 +0200)
Cleanup patch to remove extra enum defined to handle data rates.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wlan_if.h

index 0019bb8df6c1ca2d5cff1cea03c96b545d0e25dd..032afc25ebe22149476f0cef852fbc754c7dcd99 100644 (file)
@@ -378,7 +378,7 @@ static int linux_wlan_init_test_config(struct net_device *dev,
        if (!wilc_wlan_cfg_set(vif, 0, WID_BSS_TYPE, c_val, 1, 0, 0))
                goto fail;
 
-       c_val[0] = RATE_AUTO;
+       c_val[0] = AUTORATE;
        if (!wilc_wlan_cfg_set(vif, 0, WID_CURRENT_TX_RATE, c_val, 1, 0, 0))
                goto fail;
 
index 85ac87846928d35441237fd151ebf9fbbcae3851..b23f86c0d8fb0087f7509231e10079084f51de94 100644 (file)
@@ -87,22 +87,6 @@ enum bss_types {
        AP,
 };
 
-enum {
-       RATE_AUTO               = 0,
-       RATE_1MB                = 1,
-       RATE_2MB                = 2,
-       RATE_5MB                = 5,
-       RATE_6MB                = 6,
-       RATE_9MB                = 9,
-       RATE_11MB               = 11,
-       RATE_12MB               = 12,
-       RATE_18MB               = 18,
-       RATE_24MB               = 24,
-       RATE_26MB               = 36,
-       RATE_48MB               = 48,
-       RATE_54MB               = 54
-};
-
 enum {
        B_ONLY_MODE             = 0,    /* 1, 2 M, otherwise 5, 11 M */
        G_ONLY_MODE,                    /* 6,12,24 otherwise 9,18,36,48,54 */