staging: wilc1000: remove the mutliple #define used for same macro
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 18 Jul 2018 22:45:08 +0000 (04:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 07:04:47 +0000 (09:04 +0200)
Moved the same #define in common header file instead of having their
declartion in different files.

Below macros are moved to header file:
TCP_ACK_FILTER_LINK_SPEED_THRESH
DEFAULT_LINK_SPEED
GET_PKT_OFFSET

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/host_interface.c
drivers/staging/wilc1000/linux_mon.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h

index 0ffe205dad7525ae939a2db7c78bff98ce1999f8..86492252ae890cdf8f25fb423b380a6e307e0195 100644 (file)
@@ -6,9 +6,6 @@
 
 #define FALSE_FRMWR_CHANNEL                    100
 
-#define TCP_ACK_FILTER_LINK_SPEED_THRESH       54
-#define DEFAULT_LINK_SPEED                     72
-
 #define REAL_JOIN_REQ                          0
 
 struct host_if_wpa_attr {
index 1c7e6e15809c7df1bea68b34a44855be60d92e24..bd09611424e0ca1d3f40b4aedf05e9482cb30c2b 100644 (file)
@@ -20,7 +20,6 @@ static u8 bssid[6];
 
 #define IEEE80211_RADIOTAP_F_TX_RTS    0x0004  /* used rts/cts handshake */
 #define IEEE80211_RADIOTAP_F_TX_FAIL   0x0001  /* failed due to excessive*/
-#define GET_PKT_OFFSET(a) (((a) >> 22) & 0x1ff)
 
 #define TX_RADIOTAP_PRESENT ((1 << IEEE80211_RADIOTAP_RATE) |  \
                             (1 << IEEE80211_RADIOTAP_TX_FLAGS))
index 1a27e81637eaaa83b8382ebd556982a520a95a5e..e561dce1ef4ba7a1de4e6e632b7fb655ff3a6400 100644 (file)
@@ -77,11 +77,6 @@ static const struct wiphy_wowlan_support wowlan_support = {
        .flags = WIPHY_WOWLAN_ANY
 };
 
-#define TCP_ACK_FILTER_LINK_SPEED_THRESH       54
-#define DEFAULT_LINK_SPEED                     72
-
-#define GET_PKT_OFFSET(a) (((a) >> 22) & 0x1ff)
-
 static struct network_info last_scanned_shadow[MAX_NUM_SCANNED_NETWORKS_SHADOW];
 static u32 last_scanned_cnt;
 struct timer_list wilc_during_ip_timer;
index 87f8cdc2acec61b1e891f5ff09f6f1c111f52af2..765681a78105fb3fd9e50391a83cb5c12e112870 100644 (file)
 
 #define NUM_REG_FRAME                          2
 
+#define TCP_ACK_FILTER_LINK_SPEED_THRESH       54
+#define DEFAULT_LINK_SPEED                     72
+
+#define GET_PKT_OFFSET(a) (((a) >> 22) & 0x1ff)
+
 struct wilc_wfi_stats {
        unsigned long rx_packets;
        unsigned long tx_packets;