Linux wireless drivers development
 help / color / mirror / Atom feed
From: "Tomas Winkler" <tomasw@gmail.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
Cc: linville@tuxdriver.com, yi.zhu@intel.com,
	linux-wireless@vger.kernel.org, "Guy Cohen" <guy.cohen@intel.com>
Subject: Re: [PATCH 1/1] mac80211: move netif_carrier_on to after ieee80211_bss_info_change_notify
Date: Thu, 3 Jul 2008 20:26:04 +0300	[thread overview]
Message-ID: <1ba2fa240807031026k1763f64bu66fd03d0c1b254dc@mail.gmail.com> (raw)
In-Reply-To: <1215104870.9975.17.camel@johannes.berg>

On Thu, Jul 3, 2008 at 8:07 PM, Johannes Berg <johannes@sipsolutions.net> wrote:
>
>> -             netif_carrier_on(dev);
>>               ifsta->flags |= IEEE80211_STA_PREV_BSSID_SET;
>>               memcpy(ifsta->prev_bssid, sdata->u.sta.bssid, ETH_ALEN);
>>               memcpy(wrqu.ap_addr.sa_data, sdata->u.sta.bssid, ETH_ALEN);
>>               ieee80211_sta_send_associnfo(dev, ifsta);
>>       } else {
>> +             netif_carrier_off(dev);
>>               ieee80211_sta_tear_down_BA_sessions(dev, ifsta->bssid);
>>               ifsta->flags &= ~IEEE80211_STA_ASSOCIATED;
>> -             netif_carrier_off(dev);
>
> Maybe it should then be symmetric so that callers of the function have
> to do it in both cases? Other than that, looks good.

The sequence now is
  configure association in the driver  -> carrier_on ..... carrier_off
-> configure disassociation in the driver

So this is already symmetric or I don't understand what  you mean.

Thanks
Tomas

  reply	other threads:[~2008-07-03 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 16:56 [PATCH 1/1] mac80211: move netif_carrier_on to after ieee80211_bss_info_change_notify Tomas Winkler
2008-07-03 17:07 ` Johannes Berg
2008-07-03 17:26   ` Tomas Winkler [this message]
2008-07-03 17:33     ` Johannes Berg
2008-07-03 17:45       ` Tomas Winkler
2008-07-03 17:57         ` Johannes Berg

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=1ba2fa240807031026k1763f64bu66fd03d0c1b254dc@mail.gmail.com \
    --to=tomasw@gmail.com \
    --cc=guy.cohen@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=yi.zhu@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