diff options
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/wil6210.h')
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wil6210.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/wil6210.h b/drivers/net/wireless/ath/wil6210/wil6210.h index 1b4efd2ea09f..bedb9ed372f4 100644 --- a/drivers/net/wireless/ath/wil6210/wil6210.h +++ b/drivers/net/wireless/ath/wil6210/wil6210.h | |||
@@ -62,11 +62,21 @@ static inline u32 WIL_GET_BITS(u32 x, int b0, int b1) | |||
62 | #define WIL_MAX_AGG_WSIZE (32) /* FW/HW limit */ | 62 | #define WIL_MAX_AGG_WSIZE (32) /* FW/HW limit */ |
63 | /* Hardware offload block adds the following: | 63 | /* Hardware offload block adds the following: |
64 | * 26 bytes - 3-address QoS data header | 64 | * 26 bytes - 3-address QoS data header |
65 | * 8 bytes - IV + EIV (for GCMP) | ||
65 | * 8 bytes - SNAP | 66 | * 8 bytes - SNAP |
67 | * 16 bytes - MIC (for GCMP) | ||
66 | * 4 bytes - CRC | 68 | * 4 bytes - CRC |
67 | * 24 bytes - security related (if connection is secure) | ||
68 | */ | 69 | */ |
69 | #define WIL_MAX_MPDU_OVERHEAD (62) | 70 | #define WIL_MAX_MPDU_OVERHEAD (62) |
71 | |||
72 | /* Calculate MAC buffer size for the firmware. It includes all overhead, | ||
73 | * as it will go over the air, and need to be 8 byte aligned | ||
74 | */ | ||
75 | static inline u32 wil_mtu2macbuf(u32 mtu) | ||
76 | { | ||
77 | return ALIGN(mtu + WIL_MAX_MPDU_OVERHEAD, 8); | ||
78 | } | ||
79 | |||
70 | /* Max supported by wil6210 value for interrupt threshold is 5sec. */ | 80 | /* Max supported by wil6210 value for interrupt threshold is 5sec. */ |
71 | #define WIL6210_ITR_TRSH_MAX (5000000) | 81 | #define WIL6210_ITR_TRSH_MAX (5000000) |
72 | #define WIL6210_ITR_TRSH_DEFAULT (300) /* usec */ | 82 | #define WIL6210_ITR_TRSH_DEFAULT (300) /* usec */ |