diff options
author | Karthik Ananthapadmanabha <karthida@marvell.com> | 2017-03-09 14:06:15 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-03-20 19:05:20 +0200 |
commit | 5c0b87987432ad9d2c7068dc739d9f21bb6ff72e (patch) | |
tree | 68c7b8fbc097de0853dfc18d80521fca8da94b6c /drivers/net/wireless/marvell/mwifiex/usb.h | |
parent | 520334156213b3cf1becc238f881bd5333172b4d (diff) |
mwifiex: add qualifier to firmware structures
Adding qualifier "__packed" indicates that no padding should be
performed on the qualified object for alignment.
This patch adds qualifier __packed to the required firmware
structures in mwifiex driver.
Signed-off-by: Karthik Ananthapadmanabha <karthida@marvell.com>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/usb.h')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/usb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/usb.h b/drivers/net/wireless/marvell/mwifiex/usb.h index e5f204ea018b..16017aeb8cfe 100644 --- a/drivers/net/wireless/marvell/mwifiex/usb.h +++ b/drivers/net/wireless/marvell/mwifiex/usb.h @@ -102,12 +102,12 @@ struct fw_header { struct fw_sync_header { __le32 cmd; __le32 seq_num; -}; +} __packed; struct fw_data { struct fw_header fw_hdr; __le32 seq_num; u8 data[1]; -}; +} __packed; #endif /*_MWIFIEX_USB_H */ |