From: Johannes Berg <johannes@sipsolutions.net>
To: Reinette Chatre <reinette.chatre@intel.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org,
ipw3945-devel@lists.sourceforge.net
Subject: Re: [PATCH] mac80211: notify upper layers after lower
Date: Fri, 04 Apr 2008 16:44:44 +0200 [thread overview]
Message-ID: <1207320284.19189.27.camel@johannes.berg> (raw)
In-Reply-To: <1207264130-25437-1-git-send-email-reinette.chatre@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]
On Thu, 2008-04-03 at 16:08 -0700, Reinette Chatre wrote:
> When drivers receive change notification they may do work that
> will enable the changes to take effect. For example, if new association
> the device needs to be programmed with this information.
> Give the driver chance to make the changes before notifying the
> upper layer - thus preventing race condition where upper layer
> attempts to utilize state that may not be configured yet.
>
> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Looks good to me
Acked-by: Johannes Berg <johannes@sipsolutions.net>
> ---
> net/mac80211/ieee80211_sta.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
> index be2ce24..f3c8a21 100644
> --- a/net/mac80211/ieee80211_sta.c
> +++ b/net/mac80211/ieee80211_sta.c
> @@ -545,13 +545,13 @@ static void ieee80211_set_associated(struct net_device *dev,
>
> memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN);
> }
> - wrqu.ap_addr.sa_family = ARPHRD_ETHER;
> - wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
> ifsta->last_probe = jiffies;
> ieee80211_led_assoc(local, assoc);
>
> sdata->bss_conf.assoc = assoc;
> ieee80211_bss_info_change_notify(sdata, changed);
> + wrqu.ap_addr.sa_family = ARPHRD_ETHER;
> + wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
> }
>
> static void ieee80211_set_disassoc(struct net_device *dev,
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
prev parent reply other threads:[~2008-04-04 14:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-03 23:08 [PATCH] mac80211: notify upper layers after lower Reinette Chatre
2008-04-03 23:08 ` [PATCH] mac80211: notify mac from low level driver (iwlwifi) Reinette Chatre
2008-04-04 14:46 ` Johannes Berg
2008-04-04 21:35 ` mohamed salim abbas
2008-04-04 21:39 ` Johannes Berg
2008-04-04 23:34 ` mohamed salim abbas
2008-04-04 23:47 ` Johannes Berg
2008-04-04 23:55 ` mohamed salim abbas
2008-04-04 14:44 ` 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=1207320284.19189.27.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=reinette.chatre@intel.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