From: Johannes Berg <johannes@sipsolutions.net>
To: Wen Gong <quic_wgong@quicinc.com>,
Sujith <Sujith.Manoharan@atheros.com>,
linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org, Jouni.Malinen@Atheros.com,
ath11k@lists.infradead.org
Subject: Re: [PATCH] mac80211: Add 802.11h CSA support
Date: Tue, 22 Nov 2022 22:26:33 +0100 [thread overview]
Message-ID: <b5765f802e836641f41ff45f778d6901f4054050.camel@sipsolutions.net> (raw)
In-Reply-To: <04ad44c0-4012-50a4-f24a-64723a1c0a4f@quicinc.com>
On Wed, 2022-11-02 at 11:26 +0800, Wen Gong wrote:
> On 1/6/2009 11:58 AM, Sujith wrote:
> > Move to the advertised channel on reception of
> > a CSA element. This is needed for 802.11h compliance.
> >
> > Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> > ---
> > v2
> > --
> > * Add a new variable to hold the CSA channel
> > * Use msecs_to_jiffies for calculating expiration time
> > * Add a check to drop beacons in case of a frequency mismatch
> >
> > v3
> > --
> > * Add a BSSID check when handling CSA action frame
> >
> > net/mac80211/ieee80211_i.h | 11 ++++++-
> > net/mac80211/iface.c | 2 +
> > net/mac80211/mlme.c | 13 +++++++
> > net/mac80211/rx.c | 20 +++++++++++
> > net/mac80211/spectmgmt.c | 77 ++++++++++++++++++++++++++++++++++++++++++++
> > 5 files changed, 122 insertions(+), 1 deletions(-)
> >
> > ...
> > +void ieee80211_process_chanswitch(struct ieee80211_sub_if_data *sdata,
> > + struct ieee80211_channel_sw_ie *sw_elem,
> > + struct ieee80211_bss *bss)
> > +{
> > + struct ieee80211_channel *new_ch;
> > + struct ieee80211_if_sta *ifsta = &sdata->u.sta;
> > + int new_freq = ieee80211_channel_to_frequency(sw_elem->new_ch_num);
> > +
> > + /* FIXME: Handle ADHOC later */
> > + if (sdata->vif.type != NL80211_IFTYPE_STATION)
> > + return;
> > +
> > + if (ifsta->state != IEEE80211_STA_MLME_ASSOCIATED)
> > + return;
> > +
> > + if (sdata->local->sw_scanning || sdata->local->hw_scanning)
> > + return;
> > +
> May I know why channel switch should not go ahead while it is doing scan?
I don't remember, sorry.
johannes
next prev parent reply other threads:[~2022-11-22 21:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 3:58 [PATCH] mac80211: Add 802.11h CSA support Sujith
2009-01-06 13:05 ` Johannes Berg
2022-11-02 3:26 ` Wen Gong
2022-11-22 21:26 ` Johannes Berg [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-12-31 10:09 Sujith
2008-12-31 10:20 ` Johannes Berg
2008-12-31 10:41 ` Sujith
2008-12-31 10:24 ` Tomas Winkler
2008-12-31 10:44 ` Sujith
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=b5765f802e836641f41ff45f778d6901f4054050.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=Jouni.Malinen@Atheros.com \
--cc=Sujith.Manoharan@atheros.com \
--cc=ath11k@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=quic_wgong@quicinc.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