From: Luca Coelho <luca@coelho.fi>
To: "Peer, Ilan" <ilan.peer@intel.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"michal.kazior@tieto.com" <michal.kazior@tieto.com>,
"Otcheretianski, Andrei" <andrei.otcheretianski@intel.com>
Subject: Re: [PATCH 1/4] cfg80211/nl80211: add channel switch started and failed notifications
Date: Tue, 13 May 2014 13:31:26 +0300 [thread overview]
Message-ID: <1399977086.7968.12.camel@dubbel> (raw)
In-Reply-To: <CB3B3D4774441E42AA3EA0E1BA8230A0333F4475@HASMSX106.ger.corp.intel.com>
Finally got the time to come back to this...
On Wed, 2014-05-07 at 11:55 +0000, Peer, Ilan wrote:
>
>
> > -----Original Message-----
> > From: Johannes Berg [mailto:johannes@sipsolutions.net]
> > Sent: Wednesday, May 07, 2014 14:20
> > To: Peer, Ilan
> > Cc: Luca Coelho; linux-wireless@vger.kernel.org; michal.kazior@tieto.com;
> > Otcheretianski, Andrei
> > Subject: Re: [PATCH 1/4] cfg80211/nl80211: add channel switch started and
> > failed notifications
> >
> > On Wed, 2014-05-07 at 10:27 +0000, Peer, Ilan wrote:
> >
> > > > In the first case, there's no notification, nor any need for it. In
> > > > the second case, the scenario you suggest doesn't apply, and STOP_AP
> > > > has to happen anyway because the state is completely messed up,
> > > > clients will be in the process of switching etc.
> > > >
> > > > > Other than that, a STOP_AP might introduce some races, as
> > > > > wpa_supplicant/hostap will not know if the stop_ap was due to the
> > > > > failed CS or due to some other reason.
> > > >
> > > > I don't see why that would matter - even if the STOP_AP *was* for
> > > > some other reason, but happened in the middle of the CS flow, the
> > > > reaction would presumably be the same?
> > > >
> > >
> > > It can be beneficial to know that the STOP_AP was called due to
> > > failure of CS, as wpa_supplicant/hostap can tear down the AP and then
> > > (if possible) set it up again on the new channel or another channel.
> >
> > Maybe that's more of an argument for adding a sort of "reason" or "cause" to
> > the STOP_AP? (Btw, no tear down needed in this case - that's already done)
> >
>
> Yes :)
>
> > OTOH, what else are you thinking of doing? Why would you ever, under any
> > circumstances, not restart the AP if it was stopped by the device?
>
> Actually this is the default today: on STOP_AP notification a GO interface is simply deleted, as the assumption is that something unrecoverable happened. In case of CS failure, it would be *nice* to know if the failure is recoverable or not.
Okay, so this is what I'll do:
* remove the failed notifications
* in a new patch, add a reason attribute to the STOP_AP notification;
--
Luca.
next prev parent reply other threads:[~2014-05-13 10:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 13:40 [PATCH 1/4] cfg80211/nl80211: add channel switch started and failed notifications Luca Coelho
2014-05-02 13:40 ` [PATCH 2/4] mac80211: send channel switch started notifications Luca Coelho
2014-05-02 13:40 ` [PATCH 3/4] mac80211: send channel switch failed notifications Luca Coelho
2014-05-02 13:40 ` [PATCH 4/4] cfg80211/nl80211: allow any interface to send channel switch notifications Luca Coelho
2014-05-06 10:47 ` [PATCH 1/4] cfg80211/nl80211: add channel switch started and failed notifications Johannes Berg
2014-05-06 12:49 ` Michal Kazior
2014-05-06 13:08 ` Johannes Berg
2014-05-07 6:08 ` Peer, Ilan
2014-05-07 6:39 ` Johannes Berg
2014-05-07 10:27 ` Peer, Ilan
2014-05-07 11:19 ` Johannes Berg
2014-05-07 11:45 ` Michal Kazior
2014-05-07 11:55 ` Peer, Ilan
2014-05-13 10:31 ` Luca Coelho [this message]
2014-05-06 10:48 ` 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=1399977086.7968.12.camel@dubbel \
--to=luca@coelho.fi \
--cc=andrei.otcheretianski@intel.com \
--cc=ilan.peer@intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=michal.kazior@tieto.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