Commit ed205b36 authored by Hante Meuleman's avatar Hante Meuleman Committed by John W. Linville

brcmfmac: fix big endian bug in i-scan.

ssid len is 32 bit and needs endian conversion for big endian systems.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 022e1d06
...@@ -500,8 +500,10 @@ static void wl_iscan_prep(struct brcmf_scan_params_le *params_le, ...@@ -500,8 +500,10 @@ static void wl_iscan_prep(struct brcmf_scan_params_le *params_le,
params_le->active_time = cpu_to_le32(-1); params_le->active_time = cpu_to_le32(-1);
params_le->passive_time = cpu_to_le32(-1); params_le->passive_time = cpu_to_le32(-1);
params_le->home_time = cpu_to_le32(-1); params_le->home_time = cpu_to_le32(-1);
if (ssid && ssid->SSID_len) if (ssid && ssid->SSID_len) {
memcpy(&params_le->ssid_le, ssid, sizeof(struct brcmf_ssid)); params_le->ssid_le.SSID_len = cpu_to_le32(ssid->SSID_len);
memcpy(&params_le->ssid_le.SSID, ssid->SSID, ssid->SSID_len);
}
} }
static s32 static s32
......
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