mt76: mt7915: fix twt table_mask to u16 in mt7915_dev
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Thu, 5 May 2022 08:25:52 +0000 (16:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:30:12 +0000 (10:30 +0200)
[ 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@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h

index 6efa0a2e2345881491607186c43c861f6e439918..4b6eda958ef3607c7df0e52b9f68bd62fcfc60b6 100644 (file)
@@ -319,7 +319,7 @@ struct mt7915_dev {
        void *cal;
 
        struct {
-               u8 table_mask;
+               u16 table_mask;
                u8 n_agrt;
        } twt;