staging: wilc1000: remove the mutliple #define used for same macro
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>
This commit is contained in:
parent
cf15e3dc8f
commit
e3da5d9d25
|
@ -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 {
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
|
||||
#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;
|
||||
|
|
Loading…
Reference in New Issue