mwifiex: replace u16 with __le16 in struct mwifiex_types_power_group
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 22 Oct 2013 22:24:43 +0000 (15:24 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Nov 2013 19:38:56 +0000 (14:38 -0500)
commit930fd35c8de88cc1ce934aa655181c4879422a37
tree2f1a5b3754ea80e522ee371a95cd8745c3ef39d0
parent95edbc30db7882a45c4040747331cf613aa23c4a
mwifiex: replace u16 with __le16 in struct mwifiex_types_power_group

__le16 to u16 conversion is missing for "pg_tlv_hdr->length"
in mwifiex_get_power_level(). This creates a problem on big
endian machines.
It is resolved by changing definition of the structure
and making required endianness changes.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/sta_cmd.c
drivers/net/wireless/mwifiex/sta_cmdresp.c
drivers/net/wireless/mwifiex/sta_ioctl.c