From: Sam Chapman The firmware reports up to 8 attempts per rate, but struct mmrc_rate's 3-bit attempts field stores 8 as 0, so mmrc_feedback() ends the chain early and drops that rate's attempts and success. Widen the field to 4 bits. Signed-off-by: Sam Chapman Signed-off-by: Lachlan Hodges --- drivers/net/wireless/morsemicro/mm81x/mmrc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/morsemicro/mm81x/mmrc.h b/drivers/net/wireless/morsemicro/mm81x/mmrc.h index f4a90a50e4bf..f6106384b1ea 100644 --- a/drivers/net/wireless/morsemicro/mm81x/mmrc.h +++ b/drivers/net/wireless/morsemicro/mm81x/mmrc.h @@ -68,7 +68,7 @@ enum mmrc_guard { }; #define MMRC_RATE_TO_BITFIELD(x) ((x) & 0xF) -#define MMRC_ATTEMPTS_TO_BITFIELD(x) ((x) & 0x7) +#define MMRC_ATTEMPTS_TO_BITFIELD(x) ((x) & 0xF) #define MMRC_GUARD_TO_BITFIELD(x) ((x) & 0x1) #define MMRC_SS_TO_BITFIELD(x) ((x) & 0x3) #define MMRC_BW_TO_BITFIELD(x) ((x) & 0x7) @@ -76,7 +76,7 @@ enum mmrc_guard { struct mmrc_rate { u8 rate : 4; - u8 attempts : 3; + u8 attempts : 4; u8 guard : 1; u8 ss : 2; u8 bw : 3; -- 2.43.0