From: Johannes Berg <johannes@sipsolutions.net>
To: Andrew Zaborowski <andrew.zaborowski@intel.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH v3 4/4] mac80211: Add set_cqm_rssi_range_config
Date: Tue, 24 Jan 2017 16:18:19 +0100 [thread overview]
Message-ID: <1485271099.1236.3.camel@sipsolutions.net> (raw)
In-Reply-To: <20170120085509.13222-4-andrew.zaborowski@intel.com> (sfid-20170120_095528_786571_157085EA)
On Fri, 2017-01-20 at 09:55 +0100, Andrew Zaborowski wrote:
> Support .set_cqm_rssi_range_config if the beacons are available for
> processing in mac80211. There's no reason that this couldn't be
> offloaded by mac80211-based drivers but there's no driver method for
> that added in this patch as I don't have the hardware.
I thought you only required now that the level was given or something
like that, so most HW should support it?
> The NL80211_EXT_FEATURE_CQM_RSSI_LIST feature is automatically set
> during ieee80211_register_hw if the default interface being created
> doesn't indicate beacon filtering enabled. For drivers that don't
> want a default interface but want to support this feature the flag
> needs to be set explicitly in the driver.
>
> Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
> ---
> changes in v3:
> - set NL80211_EXT_FEATURE_CQM_RSSI_LIST automatically in
> ieee80211_register_hw based on the default interface's
> IEEE80211_VIF_BEACON_FILTER flag. This is a bit of an RFC as I'm
> not sure how practical it is for a driver to allow creation of
> additional interfaces that also implement CQM, but which filter
> beacons in the firmware. In any case userspace would only
> receive EOPNOTSUPP on those addiitonal interfaces when trying to
> use the feature.
That can't possibly work, since the flag can't be set by a driver at
this point - the interface isn't brought up yet, so the driver knows
nothing about it.
Therefore, you'd always set the flag (in a convoluted way) and be wrong
about it if filtering is actually done.
johannes
next prev parent reply other threads:[~2017-01-24 15:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-20 8:55 [PATCH v3 1/4] mac80211: Pass new RSSI level in CQM RSSI notification Andrew Zaborowski
2017-01-20 8:55 ` [PATCH v3 2/4] cfg80211: " Andrew Zaborowski
2017-01-20 8:55 ` [PATCH v3 3/4] cfg80211: Accept multiple RSSI thresholds for CQM Andrew Zaborowski
2017-01-24 15:15 ` Johannes Berg
2017-01-20 8:55 ` [PATCH v3 4/4] mac80211: Add set_cqm_rssi_range_config Andrew Zaborowski
2017-01-24 15:18 ` Johannes Berg [this message]
2017-01-25 6:01 ` Andrew Zaborowski
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=1485271099.1236.3.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=andrew.zaborowski@intel.com \
--cc=linux-wireless@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).