mt76: unify firmware header between mt76x0 and mt76x2

Move mt76x2_fw_header definition in mt76x02_mcu.h and remove
duplicated code

Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2018-09-12 13:16:50 +02:00
committed by Felix Fietkau
parent a1e27dec7f
commit 90b1eace21
5 changed files with 28 additions and 37 deletions
+17
View File
@@ -68,4 +68,21 @@ enum mcu_function {
GET_FW_VERSION = 5,
};
struct mt76x02_fw_header {
__le32 ilm_len;
__le32 dlm_len;
__le16 build_ver;
__le16 fw_ver;
u8 pad[4];
char build_time[16];
};
struct mt76x02_patch_header {
char build_time[16];
char platform[4];
char hw_version[4];
char patch_version[4];
u8 pad[2];
};
#endif /* __MT76x02_MCU_H */