diff options
author | Ajay Singh <ajay.kathat@microchip.com> | 2018-07-19 04:15:08 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-21 09:04:47 +0200 |
commit | e3da5d9d255f3d6919be5db8c0e7c80743e65be7 (patch) | |
tree | 1aacb6e77be590f977f664072fbe8513e46b656a /drivers/staging/wilc1000/wilc_wfi_netdevice.h | |
parent | staging: wilc1000: removed unused element from wilc_cfg_frame struct (diff) | |
download | linux-dev-e3da5d9d255f3d6919be5db8c0e7c80743e65be7.tar.xz linux-dev-e3da5d9d255f3d6919be5db8c0e7c80743e65be7.zip |
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>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_netdevice.h')
-rw-r--r-- | drivers/staging/wilc1000/wilc_wfi_netdevice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h index 87f8cdc2acec..765681a78105 100644 --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h @@ -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; |