From e65ad4c5db7099bee10339a5d6bec48e1b55cc33 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 15 Nov 2018 18:45:55 +0100 Subject: [PATCH] mt7603: make group_wcid the first member in struct mt7603_vif Allows mt76 core to cast vif->drv_priv to struct mt76_wcid Signed-off-by: Felix Fietkau --- mt7603/mt7603.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mt7603/mt7603.h b/mt7603/mt7603.h index f4dc0c9d0..73f6b9f52 100644 --- a/mt7603/mt7603.h +++ b/mt7603/mt7603.h @@ -77,9 +77,9 @@ struct mt7603_sta { }; struct mt7603_vif { - u8 idx; + struct mt7603_sta sta; /* must be first */ - struct mt7603_sta sta; + u8 idx; }; enum mt7603_reset_cause {