wifi: brcmfmac: do not pass hidden SSID attribute as value directly
authorAlexey Berezhok <a@bayrepo.ru>
Thu, 22 Feb 2024 12:29:23 +0000 (15:29 +0300)
committerKalle Valo <kvalo@kernel.org>
Tue, 27 Feb 2024 14:56:20 +0000 (16:56 +0200)
commit379e5e83f9f9a0d3d3318fee2f363278e7ab08e7
treedf952248d3e2bf9dc9d296c0d92b82c6fb5d55b5
parent53fe234f15b9e45a699591828950b1c3416da239
wifi: brcmfmac: do not pass hidden SSID attribute as value directly

In brcmf_cfg80211_start_ap() do not assume that NL80211_HIDDEN_SSID_NOT_IN_USE
is zero but prefer an explicit check instead. Use local variable 'closednet'
to pass in function call and use for error message.

Compile tested only. Addition for the commit f20073f50dfd1 ("wifi: brcmfmac: do
not cast hidden SSID attribute value to boolean").

Signed-off-by: Alexey Berezhok <a@bayrepo.ru>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240222122923.46691-1-a@bayrepo.ru
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c