mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
mwifiex: fix scan problem on big endian platforms
This patch adds missing endian conversion for beacon size while processing scan response. Reported-by: Daniel Mosquera <daniel.mosquera@ctag.com> Tested-by: Daniel Mosquera <daniel.mosquera@ctag.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
5197461115
commit
798ea8eec1
1 changed files with 1 additions and 1 deletions
|
@ -1623,7 +1623,7 @@ mwifiex_parse_single_response_buf(struct mwifiex_private *priv, u8 **bss_info,
|
|||
|
||||
if (*bytes_left >= sizeof(beacon_size)) {
|
||||
/* 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);
|
||||
*bss_info += sizeof(beacon_size);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue