From: Sedat Dilek <sedat.dilek@googlemail.com>
To: Samuel Ortiz <samuel@sortiz.org>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org,
Alina Friedrichsen <x-alina@gmx.net>,
Kalle Valo <kalle.valo@iki.fi>,
Larry Finger <Larry.Finger@lwfinger.net>,
Reinette Chatre <reinette.chatre@intel.com>
Subject: Re: [PATCH] mac80211: ieee80211_sta_set_bssid should call config_interface()
Date: Fri, 23 Jan 2009 03:44:53 +0100 [thread overview]
Message-ID: <2d0a357f0901221844h1849f4fanc577dcc2c5037101@mail.gmail.com> (raw)
In-Reply-To: <20090123013000.GA5604@sortiz.org>
Just to clarify:
The revert-patch of Alina's fix (causing regression) is no more needed?
-SD
On Fri, Jan 23, 2009 at 2:30 AM, Samuel Ortiz <samuel@sortiz.org> wrote:
> From: Samuel Ortiz <samuel.ortiz@intel.com>
>
> With commit e32b1b9a33759e8a83ac566c4c43f23ed5d6343b, we end up not calling
> config_interface() when we're in STA, but not Ad-Hoc. This breaks several
> drivers, and the fix is to get ieee80211_sta_set_bssid() to call
> ieee80211_if_config() again.
>
> Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
> ---
> net/mac80211/mlme.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> Index: wireless-testing/net/mac80211/mlme.c
> ===================================================================
> --- wireless-testing.orig/net/mac80211/mlme.c 2009-01-23 01:33:54.000000000 +0100
> +++ wireless-testing/net/mac80211/mlme.c 2009-01-23 01:36:51.000000000 +0100
> @@ -2650,6 +2650,18 @@ int ieee80211_sta_set_bssid(struct ieee8
> ifsta->flags &= ~IEEE80211_STA_BSSID_SET;
> }
>
> + if (netif_running(sdata->dev)) {
> + int ret;
> +
> + ret = ieee80211_if_config(sdata, IEEE80211_IFCC_BSSID);
> +
> + if (ret) {
> + printk(KERN_DEBUG "%s: Failed to config new BSSID to "
> + "the low-level driver\n", sdata->dev->name);
> + return ret;
> + }
> + }
> +
> return ieee80211_sta_set_ssid(sdata, ifsta->ssid, ifsta->ssid_len);
> }
>
> --
> Intel Open Source Technology Centre
> http://oss.intel.com/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2009-01-23 2:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 1:30 [PATCH] mac80211: ieee80211_sta_set_bssid should call config_interface() Samuel Ortiz
2009-01-23 2:44 ` Sedat Dilek [this message]
2009-01-23 18:50 ` John W. Linville
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d0a357f0901221844h1849f4fanc577dcc2c5037101@mail.gmail.com \
--to=sedat.dilek@googlemail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=kalle.valo@iki.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=reinette.chatre@intel.com \
--cc=samuel@sortiz.org \
--cc=x-alina@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).