diff mbox series

[01/14] wifi: iwlwifi: fix Bz checksum start/result offset

Message ID 20230531194629.d3afbc073f74.I925d15b41c7c87bc2b44432ac7cd4ec03b43b8b1@changeid
State New
Headers show
Series wifi: iwlwifi: updates intended for v6.5 2023-05-31 | expand

Commit Message

Greenman, Gregory May 31, 2023, 4:49 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

The checksum start/result offset should never be longer
than the bits we have in the mask now (nothing should put
the checksum at the end of a frame), but we should really
match the hardware definition for these bits.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/fw/api/tx.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h b/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
index 97edf5477ba7..c2fd467bb987 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
@@ -178,8 +178,8 @@  enum iwl_tx_offload_assist_flags_pos {
 #define IWL_TX_CMD_OFFLD_IP_HDR_MASK	0x3f
 
 enum iwl_tx_offload_assist_bz {
-	IWL_TX_CMD_OFFLD_BZ_RESULT_OFFS		= 0x000003ff,
-	IWL_TX_CMD_OFFLD_BZ_START_OFFS		= 0x001ff800,
+	IWL_TX_CMD_OFFLD_BZ_RESULT_OFFS		= 0x000007ff,
+	IWL_TX_CMD_OFFLD_BZ_START_OFFS		= 0x003ff800,
 	IWL_TX_CMD_OFFLD_BZ_MH_LEN		= 0x07c00000,
 	IWL_TX_CMD_OFFLD_BZ_MH_PAD		= 0x08000000,
 	IWL_TX_CMD_OFFLD_BZ_AMSDU		= 0x10000000,