[PATCH 5.17 374/772] mt76: mt7915: fix twt table_mask to u16 in mt7915_dev

From: Greg Kroah-Hartman
Date: Tue Jun 07 2022 - 17:09:13 EST


From: Peter Chiu <chui-hao.chiu@xxxxxxxxxxxx>

[ Upstream commit 3620c8821ae15902eb995a32918e34b7a0c773a3 ]

mt7915 can support 16 twt stations so modify table_mask to u16.

Fixes: 3782b69d03e7 ("mt76: mt7915: introduce mt7915_mac_add_twt_setup routine")
Signed-off-by: Peter Chiu <chui-hao.chiu@xxxxxxxxxxxx>
Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h b/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
index 12ca54566461..4f62dbb936db 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
@@ -279,7 +279,7 @@ struct mt7915_dev {
void *cal;

struct {
- u8 table_mask;
+ u16 table_mask;
u8 n_agrt;
} twt;
};
--
2.35.1