Return-path: Received: from mail.gmx.net ([213.165.64.20]:38818 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751101AbZA1PDG (ORCPT ); Wed, 28 Jan 2009 10:03:06 -0500 Content-Type: text/plain; charset=iso-8859-1 Date: Wed, 28 Jan 2009 16:03:00 +0100 From: "Alina Friedrichsen" Message-ID: <20090128150300.156200@gmx.net> (sfid-20090128_160311_209649_F294E7D6) MIME-Version: 1.0 Subject: [PATCH] mac80211: Creating new IBSS with fixed BSSID To: linux-wireless@vger.kernel.org, linville@tuxdriver.com, johannes@sipsolutions.net Sender: linux-wireless-owner@vger.kernel.org List-ID: 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. Signed-off-by: Alina Friedrichsen --- 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->state !=3D IEEE80211_STA_MLME_IBSS_JOINED || + !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