staging: wfx: allow to join IBSS networks

Current code does not permit to join an already existing IBSS network.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200410133239.438347-15-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jérôme Pouiller
2020-04-10 15:32:34 +02:00
committed by Greg Kroah-Hartman
parent 7b063f3bfb
commit 17c8cc79ef

View File

@@ -484,7 +484,7 @@ static void wfx_do_join(struct wfx_vif *wvif)
wvif->beacon_int = 1;
rcu_read_lock(); // protect ssidie
if (!conf->ibss_joined)
if (bss)
ssidie = ieee80211_bss_get_ie(bss, WLAN_EID_SSID);
if (ssidie) {
ssidlen = ssidie[1];