From: Felix Fietkau Date: Thu, 15 Nov 2018 17:44:37 +0000 (+0100) Subject: mt76: mt76x02: make group_wcid the first member in struct mt76x02_vif X-Git-Tag: v5.4-rc1~1957^2~19^2~45^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c30bdfea80cca1348ef6e0c611d75793e533e4c7;p=platform%2Fkernel%2Flinux-rpi.git mt76: mt76x02: make group_wcid the first member in struct mt76x02_vif Allows mt76 core to cast vif->drv_priv to struct mt76_wcid Signed-off-by: Felix Fietkau --- diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.h b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.h index b076c43..cf5c06a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_mac.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_mac.h @@ -37,9 +37,8 @@ struct mt76x02_tx_status { #define MT_MAX_VIFS 8 struct mt76x02_vif { + struct mt76_wcid group_wcid; /* must be first */ u8 idx; - - struct mt76_wcid group_wcid; }; DECLARE_EWMA(signal, 10, 8);