linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: ieee80211_ibss_commit() cleanup
@ 2009-03-09 23:49 Alina Friedrichsen
  2009-03-10  7:21 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Alina Friedrichsen @ 2009-03-09 23:49 UTC (permalink / raw)
  To: linux-wireless, linville, johannes

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

Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
---
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index f4becc1..3201e1f 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -812,8 +812,9 @@ int ieee80211_ibss_commit(struct ieee80211_sub_if_d=
ata *sdata)
=20
 	ifibss->ibss_join_req =3D jiffies;
 	ifibss->state =3D IEEE80211_IBSS_MLME_SEARCH;
+	set_bit(IEEE80211_IBSS_REQ_RUN, &ifibss->request);
=20
-	return ieee80211_sta_find_ibss(sdata);
+	return 0;
 }
=20
 int ieee80211_ibss_set_ssid(struct ieee80211_sub_if_data *sdata, char =
*ssid, size_t len)

--=20
Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit all=
en: http://www.gmx.net/de/go/multimessenger01
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-11 13:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09 23:49 [PATCH] mac80211: ieee80211_ibss_commit() cleanup Alina Friedrichsen
2009-03-10  7:21 ` Johannes Berg
2009-03-10 22:44   ` Alina Friedrichsen
2009-03-11 11:53     ` Johannes Berg
2009-03-11 13:31       ` Alina Friedrichsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).