staging: wfx: allow to join IBSS networks
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Fri, 10 Apr 2020 13:32:34 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 12:42:48 +0000 (14:42 +0200)
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>
drivers/staging/wfx/sta.c

index 75f1c51..8aa373f 100644 (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];