From: Johannes Berg <johannes@sipsolutions.net>
To: Andrew Zaborowski <andrew.zaborowski@intel.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH 3/3][RFC] nl80211/mac80211: Accept multiple RSSI thresholds for CQM
Date: Mon, 28 Nov 2016 15:47:59 +0100 [thread overview]
Message-ID: <1480344479.8107.60.camel@sipsolutions.net> (raw)
In-Reply-To: <1478398113-14966-4-git-send-email-andrew.zaborowski@intel.com> (sfid-20161106_030854_712830_960200F6)
> + * @set_cqm_rssi_range_config: Configure two RSSI thresholds in the
> > + * connection quality monitor. Even if the driver implements both the
> > + * single threshold and low/high thresholds mechanisms, it should assume
> + * only one is active at any time.
Why would a driver still (be allowed to!) implement both?
> + int (*set_cqm_rssi_range_config)(struct wiphy *wiphy,
> + struct net_device *dev,
> + s32 rssi_low, s32 rssi_high);
Seems there still should be a hysteresis? Or am I misunderstanding the
intent here? I.e. isn't it meant to report low/medium/high later?
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index 33026e1..7da1056 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
I'd prefer you split cfg80211 and mac80211 patches, i.e. provide the
new API first and then implement it in mac80211 separately.
> +void cfg80211_cqm_config_free(struct wireless_dev *wdev)
> +{
> + if (!wdev->cqm_config)
> + return;
> +
> + kfree(wdev->cqm_config->rssi_thresholds);
> + kfree(wdev->cqm_config);
> + wdev->cqm_config = NULL;
> +}
You can save this complexity by just making the cqm_config struct have
all the thresholds inside itself - pretty easy to allocate by just
counting them first.
johannes
next prev parent reply other threads:[~2016-11-28 14:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-06 2:08 [PATCH 0/3][RFC] CQM RSSI event with many thresholds Andrew Zaborowski
2016-11-06 2:08 ` [PATCH 1/3][RFC] mac80211: Pass new RSSI level in CQM RSSI notification Andrew Zaborowski
2016-11-06 2:08 ` [PATCH 2/3][RFC] cfg80211: " Andrew Zaborowski
2016-11-06 2:08 ` [PATCH 3/3][RFC] nl80211/mac80211: Accept multiple RSSI thresholds for CQM Andrew Zaborowski
2016-11-28 14:47 ` Johannes Berg [this message]
2016-11-28 15:29 ` Andrew Zaborowski
2016-11-28 15:35 ` Johannes Berg
2016-11-28 18:06 ` Andrew Zaborowski
2016-12-13 16:11 ` Johannes Berg
2016-12-18 0:18 ` 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=1480344479.8107.60.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).