Skip to content

Commit

Permalink
ath6kl: fix struct host_app_area endian handling
Browse files Browse the repository at this point in the history
It was missing endian annotation.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Kalle Valo committed Nov 11, 2011
1 parent a7f0c58 commit cbf49a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int ath6kl_set_host_app_area(struct ath6kl *ar)
return -EIO;

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,
sizeof(struct host_app_area)))
return -EIO;
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wireless/ath/ath6kl/wmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ struct wmi {
};

struct host_app_area {
u32 wmi_protocol_ver;
};
__le32 wmi_protocol_ver;
} __packed;

enum wmi_msg_type {
DATA_MSGTYPE = 0x0,
Expand Down

0 comments on commit cbf49a6

Please sign in to comment.