Commit cbf49a6f authored by Kalle Valo's avatar Kalle Valo

ath6kl: fix struct host_app_area endian handling

It was missing endian annotation.
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent a7f0c58b
...@@ -120,7 +120,7 @@ static int ath6kl_set_host_app_area(struct ath6kl *ar) ...@@ -120,7 +120,7 @@ static int ath6kl_set_host_app_area(struct ath6kl *ar)
return -EIO; return -EIO;
address = TARG_VTOP(ar->target_type, data); address = TARG_VTOP(ar->target_type, data);
host_app_area.wmi_protocol_ver = WMI_PROTOCOL_VERSION; host_app_area.wmi_protocol_ver = cpu_to_le32(WMI_PROTOCOL_VERSION);
if (ath6kl_diag_write(ar, address, (u8 *) &host_app_area, if (ath6kl_diag_write(ar, address, (u8 *) &host_app_area,
sizeof(struct host_app_area))) sizeof(struct host_app_area)))
return -EIO; return -EIO;
......
...@@ -124,8 +124,8 @@ struct wmi { ...@@ -124,8 +124,8 @@ struct wmi {
}; };
struct host_app_area { struct host_app_area {
u32 wmi_protocol_ver; __le32 wmi_protocol_ver;
}; } __packed;
enum wmi_msg_type { enum wmi_msg_type {
DATA_MSGTYPE = 0x0, DATA_MSGTYPE = 0x0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment