From: Johannes Berg <johannes@sipsolutions.net>
To: Jouni Malinen <jouni.malinen@atheros.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Report rejected association to user space SME
Date: Wed, 01 Apr 2009 16:34:48 +0200 [thread overview]
Message-ID: <1238596488.4492.0.camel@johannes.local> (raw)
In-Reply-To: <20090401142354.GA8695@jm.kir.nu>
[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]
On Wed, 2009-04-01 at 17:23 +0300, Jouni Malinen wrote:
> When using nl80211 association, we need to send association response
> with a failure code to user space SME instead of just internally
> trying to send out the same (re)association request again couple of
> times. This fixes problems in association process getting stuck on a
> failure when user space is not notified in any way that something
> actually failed.
Indeed.
> Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
> ---
> net/mac80211/mlme.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> --- uml.orig/net/mac80211/mlme.c 2009-04-01 17:20:11.000000000 +0300
> +++ uml/net/mac80211/mlme.c 2009-04-01 17:21:15.000000000 +0300
> @@ -1363,6 +1363,11 @@ static void ieee80211_rx_mgmt_assoc_resp
> * association next time. This works around some broken APs
> * which do not correctly reject reassociation requests. */
> ifmgd->flags &= ~IEEE80211_STA_PREV_BSSID_SET;
> + cfg80211_send_rx_assoc(sdata->dev, (u8 *) mgmt, len);
> + if (ifmgd->flags & IEEE80211_STA_EXT_SME) {
> + /* Wait for SME to decide what to do next */
> + ifmgd->state = IEEE80211_STA_MLME_DISABLED;
> + }
> return;
> }
>
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2009-04-01 14:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-01 14:23 [PATCH] mac80211: Report rejected association to user space SME Jouni Malinen
2009-04-01 14:34 ` Johannes Berg [this message]
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=1238596488.4492.0.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=jouni.malinen@atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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