]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: Pass correct parameters to cfg80211_get_bss()
authorHans de Goede <hdegoede@redhat.com>
Mon, 6 Mar 2023 15:35:12 +0000 (16:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:16 +0000 (08:50 +0100)
commit706f16338e12cec7699fba22d3135738358abe00
treee52c2efd41f1787e9dd9eed3760107f769082946
parentff89c48ca99cb30886cf5c48ce02dcc03947a0b8
staging: rtl8723bs: Pass correct parameters to cfg80211_get_bss()

commit f04e2b43ce696727c83f07ba43d3a710ac66ed3b upstream.

To last 2 parameters to cfg80211_get_bss() should be of
the enum ieee80211_bss_type resp. enum ieee80211_privacy types,
which WLAN_CAPABILITY_ESS very much is not.

Fix both cfg80211_get_bss() calls in ioctl_cfg80211.c to pass
the right parameters.

Note that the second call was already somewhat fixed by commenting
out WLAN_CAPABILITY_ESS and passing in 0 instead. This was still
not entirely correct though since that would limit returned
BSS-es to ESS type BSS-es with privacy on.

Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230306153512.162104-2-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c