All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mac80211: Creating new IBSS with fixed BSSID
@ 2009-01-28 15:30 Alina Friedrichsen
  2009-01-28 17:00 ` Kalle Valo
  0 siblings, 1 reply; 3+ messages in thread
From: Alina Friedrichsen @ 2009-01-28 15:30 UTC (permalink / raw)
  To: linux-wireless, linville, johannes

This fixes a bug when creating a new IBSS network with a fixed BSSID. T=
he fixed BSSID situation is now with one of my last patches handled in =
ieee80211_sta_find_ibss() function.

It's more robust to test against (ifsta->flags & IEEE80211_STA_PREV_BSS=
ID_SET), because ifsta->state is not seted right in every situation and=
 so the creating of the new IBSS network sometimes hangs after the firs=
t try to scan for a network to merge.

Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
---
diff -urN wireless-testing.orig/net/mac80211/mlme.c wireless-testing/ne=
t/mac80211/mlme.c
--- wireless-testing.orig/net/mac80211/mlme.c	2009-01-27 05:12:43.00000=
0000 +0000
+++ wireless-testing/net/mac80211/mlme.c	2009-01-28 15:47:19.000000000 =
+0000
@@ -2720,9 +2720,8 @@
=20
 	if (sdata && sdata->vif.type =3D=3D NL80211_IFTYPE_ADHOC) {
 		ifsta =3D &sdata->u.sta;
-		if (!(ifsta->flags & IEEE80211_STA_BSSID_SET) ||
-		    (!(ifsta->state =3D=3D IEEE80211_STA_MLME_IBSS_JOINED) &&
-		    !ieee80211_sta_active_ibss(sdata)))
+		if ((!(ifsta->flags & IEEE80211_STA_PREV_BSSID_SET)) ||
+		    !ieee80211_sta_active_ibss(sdata))
 			ieee80211_sta_find_ibss(sdata, ifsta);
 	}
=20

--=20
Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit all=
en: http://www.gmx.net/de/go/multimessenger
--
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] 3+ messages in thread

* Re: [PATCH v2] mac80211: Creating new IBSS with fixed BSSID
  2009-01-28 15:30 [PATCH v2] mac80211: Creating new IBSS with fixed BSSID Alina Friedrichsen
@ 2009-01-28 17:00 ` Kalle Valo
  2009-01-28 18:26   ` John W. Linville
  0 siblings, 1 reply; 3+ messages in thread
From: Kalle Valo @ 2009-01-28 17:00 UTC (permalink / raw)
  To: Alina Friedrichsen; +Cc: linux-wireless, linville, johannes

"Alina Friedrichsen" <x-alina@gmx.net> writes:

> This fixes a bug when creating a new IBSS network with a fixed BSSID. The fixed BSSID situation is now with one of my last patches handled in ieee80211_sta_find_ibss() function.
>
> It's more robust to test against (ifsta->flags & IEEE80211_STA_PREV_BSSID_SET), because ifsta->state is not seted right in every situation and so the creating of the new IBSS network sometimes hangs after the first try to scan for a network to merge.

Please line wrap your commit logs. Now you had very long lines.

-- 
Kalle Valo

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

* Re: [PATCH v2] mac80211: Creating new IBSS with fixed BSSID
  2009-01-28 17:00 ` Kalle Valo
@ 2009-01-28 18:26   ` John W. Linville
  0 siblings, 0 replies; 3+ messages in thread
From: John W. Linville @ 2009-01-28 18:26 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Alina Friedrichsen, linux-wireless, johannes

On Wed, Jan 28, 2009 at 07:00:07PM +0200, Kalle Valo wrote:
> "Alina Friedrichsen" <x-alina@gmx.net> writes:
> 
> > This fixes a bug when creating a new IBSS network with a fixed BSSID. The fixed BSSID situation is now with one of my last patches handled in ieee80211_sta_find_ibss() function.
> >
> > It's more robust to test against (ifsta->flags & IEEE80211_STA_PREV_BSSID_SET), because ifsta->state is not seted right in every situation and so the creating of the new IBSS network sometimes hangs after the first try to scan for a network to merge.
> 
> Please line wrap your commit logs. Now you had very long lines.

ACK, please.

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

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

end of thread, other threads:[~2009-01-28 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-28 15:30 [PATCH v2] mac80211: Creating new IBSS with fixed BSSID Alina Friedrichsen
2009-01-28 17:00 ` Kalle Valo
2009-01-28 18:26   ` John W. Linville

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.