Commit 798ea8ee authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by John W. Linville

mwifiex: fix scan problem on big endian platforms

This patch adds missing endian conversion for beacon size while
processing scan response.
Reported-by: default avatarDaniel Mosquera <daniel.mosquera@ctag.com>
Tested-by: default avatarDaniel Mosquera <daniel.mosquera@ctag.com>
Signed-off-by: default avatarAvinash Patil <patila@marvell.com>
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 51974611
...@@ -1623,7 +1623,7 @@ mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info, ...@@ -1623,7 +1623,7 @@ mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info,
if (*bytes_left >= sizeof(beacon_size)) { if (*bytes_left >= sizeof(beacon_size)) {
/* Extract & convert beacon size from command buffer */ /* Extract & convert beacon size from command buffer */
memcpy(&beacon_size, *bss_info, sizeof(beacon_size)); beacon_size = le16_to_cpu(*(__le16 *)(*bss_info));
*bytes_left -= sizeof(beacon_size); *bytes_left -= sizeof(beacon_size);
*bss_info += sizeof(beacon_size); *bss_info += sizeof(beacon_size);
} }
......
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