OSDN Git Service

wifi: mt76: mt7921: Add missing __packed annotation of struct mt7921_clc
authorDeren Wu <deren.wu@mediatek.com>
Mon, 28 Nov 2022 07:04:21 +0000 (15:04 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 1 Dec 2022 16:29:14 +0000 (17:29 +0100)
Add __packed annotation to avoid potential CLC parsing error

Fixes: 23bdc5d8cadf ("wifi: mt76: mt7921: introduce Country Location Control support")
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h

index 6fc04ed..15d6b7f 100644 (file)
@@ -224,7 +224,7 @@ struct mt7921_clc {
        u8 type;
        u8 rsv[8];
        u8 data[];
-};
+} __packed;
 
 struct mt7921_phy {
        struct mt76_phy *mt76;