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

* Re: [PATCH] mac80211: ieee80211_ibss_commit() cleanup
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2009-03-10  7:21 UTC (permalink / raw)
  To: Alina Friedrichsen; +Cc: linux-wireless, linville

[-- Attachment #1: Type: text/plain, Size: 346 bytes --]

On Tue, 2009-03-10 at 00:49 +0100, Alina Friedrichsen wrote:
> 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.

And now to explain why this is desired? Are you going to post "commit"
patches again that I will reject?

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] mac80211: ieee80211_ibss_commit() cleanup
  2009-03-10  7:21 ` Johannes Berg
@ 2009-03-10 22:44   ` Alina Friedrichsen
  2009-03-11 11:53     ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Alina Friedrichsen @ 2009-03-10 22:44 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linville, linux-wireless

Hello!

> And now to explain why this is desired?

=46or unification with the STA implementation and besides it fixes a bu=
g, that ieee80211_sta_find_ibss() is triggered while the interface is d=
own and do some strange things that it shouldn't do in this interface s=
tate.

> Are you going to post "commit"
> patches again that I will reject?

This has nothing to do with the current patch and should discussed else=
where.

Regards
Alina

--=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	[flat|nested] 5+ messages in thread

* Re: [PATCH] mac80211: ieee80211_ibss_commit() cleanup
  2009-03-10 22:44   ` Alina Friedrichsen
@ 2009-03-11 11:53     ` Johannes Berg
  2009-03-11 13:31       ` Alina Friedrichsen
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2009-03-11 11:53 UTC (permalink / raw)
  To: Alina Friedrichsen; +Cc: linville, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

On Tue, 2009-03-10 at 23:44 +0100, Alina Friedrichsen wrote:
> Hello!
> 
> > And now to explain why this is desired?
> 
> For unification with the STA implementation 

FWIW, I don't see that as something that is necessarily desirable, I've
split them up to allow them to diverge further and in a manageable way.

> and besides it fixes a bug, that ieee80211_sta_find_ibss() is
> triggered while the interface is down and do some strange things that
> it shouldn't do in this interface state.

Indeed, good point, that can happen without this patch.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] mac80211: ieee80211_ibss_commit() cleanup
  2009-03-11 11:53     ` Johannes Berg
@ 2009-03-11 13:31       ` Alina Friedrichsen
  0 siblings, 0 replies; 5+ messages in thread
From: Alina Friedrichsen @ 2009-03-11 13:31 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, linville

Hello Johannes!

> > For unification with the STA implementation=20
>=20
> FWIW, I don't see that as something that is necessarily desirable, I'=
ve
> split them up to allow them to diverge further and in a manageable wa=
y.

I mean not the code itself but the coding style. So that you can better=
 understand the code of the one mode, if you read the code of the other=
 mode before. Sorry, for my bad English.

Regards
Alina

--=20
Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem f=FCr nur=20
17,95 =BF/mtl. + 1 Monat gratis!* http://dsl.gmx.de/?ac=3DOM.AD.PD003K1=
1308T4569a
--
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	[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).