mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
committed by
Felix Fietkau
parent
a1e27dec7f
commit
90b1eace21
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user