Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

brcmfmac: fix uninitialized field in scheduled scan ssid configuration

The scheduled scan ssid configuration in firmware has a flags field that
was not initialized resulting in unexpected behaviour.

Fixes: e3bdb7cc0300 ("brcmfmac: fix handling ssids in .sched_scan_start() callback")
Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Arend Van Spriel and committed by
Kalle Valo
2b66325d cb853da3

+1
+1
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c
··· 137 137 pfn.wpa_auth = cpu_to_le32(BRCMF_PNO_WPA_AUTH_ANY); 138 138 pfn.wsec = cpu_to_le32(0); 139 139 pfn.infra = cpu_to_le32(1); 140 + pfn.flags = 0; 140 141 if (active) 141 142 pfn.flags = cpu_to_le32(1 << BRCMF_PNO_HIDDEN_BIT); 142 143 pfn.ssid.SSID_len = cpu_to_le32(ssid->ssid_len);