Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa56dddd authored by Alina Friedrichsen's avatar Alina Friedrichsen Committed by John W. Linville
Browse files

mac80211: ieee80211_ibss_commit() cleanup



Don't call ieee80211_sta_find_ibss() directly, like it's done in STA
mode, so that the commit() call is more harmless respectively has
less site-effects.

Signed-off-by: default avatarAlina Friedrichsen <x-alina@gmx.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 79675900
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -812,8 +812,9 @@ int ieee80211_ibss_commit(struct ieee80211_sub_if_data *sdata)

	ifibss->ibss_join_req = jiffies;
	ifibss->state = IEEE80211_IBSS_MLME_SEARCH;
	set_bit(IEEE80211_IBSS_REQ_RUN, &ifibss->request);

	return ieee80211_sta_find_ibss(sdata);
	return 0;
}

int ieee80211_ibss_set_ssid(struct ieee80211_sub_if_data *sdata, char *ssid, size_t len)