From: Johannes Berg <johannes@sipsolutions.net>
To: Luca Coelho <luca@coelho.fi>
Cc: linux-wireless@vger.kernel.org, michal.kazior@tieto.com,
Ilan Peer <ilan.peer@intel.com>,
Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Subject: Re: [PATCH 1/4] cfg80211/nl80211: add channel switch started and failed notifications
Date: Tue, 06 May 2014 12:47:24 +0200 [thread overview]
Message-ID: <1399373244.4218.21.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1399038031-23206-1-git-send-email-luca@coelho.fi>
On Fri, 2014-05-02 at 16:40 +0300, Luca Coelho wrote:
> + * @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY: Notify that a channel switch
> + * has been started on an interface, regardless of the initiator
> + * (ie. whether it was requested from a remote device or
> + * initiated on our own). It indicates that
> + * %NL80211_ATTR_IFINDEX will be on %NL80211_ATTR_WIPHY_FREQ
> + * after %NL80211_ATTR_CH_SWITCH_COUNT TBTT's.
You don't seem to have that now, but it may not always be needed, and we
could add it later (unless userspace needs to rely on having the
attribute - otherwise it has to check for it)
Actually though, maybe you do need it, so that you can determine whether
it makes sense to try anything smart - if the count is 1 or you received
an action frame then you probably don't have time at all?
> + * @NL80211_CMD_CH_SWITCH_FAILED_NOTIFY: Notify that a channel switch
> + * has failed on %NL80211_ATTR_IFINDEX. This notification can
> + * only be sent after a @NL80211_CMD_CH_SWITCH_STARTED_NOTIFY has
> + * been issued.
(+Ilan, Andrei)
I'm not really sure why you have this - it seems that in this case the
interface will be stopped so you'll get a STOP_AP or DISCONNECT or
whatever other notification. This may not actually be completely true
right now (I seem to remember a fix in this area but can't seem to find
it in my tree!!) but we'll have to fix that part anyway. Not really sure
why then that couldn't be used instead of this notification? The
userspace code is going to have to worry about that anyway, I'd think.
johannes
next prev parent reply other threads:[~2014-05-06 10:47 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 ` Johannes Berg [this message]
2014-05-06 12:49 ` [PATCH 1/4] cfg80211/nl80211: add channel switch started and failed notifications 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
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=1399373244.4218.21.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=andrei.otcheretianski@intel.com \
--cc=ilan.peer@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=luca@coelho.fi \
--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