From: Jérôme Pouiller Date: Fri, 10 Apr 2020 13:32:34 +0000 (+0200) Subject: staging: wfx: allow to join IBSS networks X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=17c8cc79ef72a5791a7c5223d9f5905cdaa69f30;p=linux.git 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 Link: https://lore.kernel.org/r/20200410133239.438347-15-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 75f1c515751bb..8aa373f5deae3 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -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];