From: Johannes Berg <johannes@sipsolutions.net>
To: Masashi Honma <masashi.honma@gmail.com>
Cc: linux-wireless@vger.kernel.org, j@w1.fi, me@bobcopeland.com
Subject: Re: [PATCH v2] cfg80211: Add mesh peer AID setting API
Date: Wed, 06 Jul 2016 14:42:34 +0200 [thread overview]
Message-ID: <1467808954.5460.6.camel@sipsolutions.net> (raw)
In-Reply-To: <1467335974-2802-1-git-send-email-masashi.honma@gmail.com> (sfid-20160701_031947_889703_68F66C0A)
On Fri, 2016-07-01 at 10:19 +0900, Masashi Honma wrote:
> Previously, mesh power management functionality works only with
> kernel
> MPM. Because user space MPM did not report mesh peer AID to kernel,
> the kernel could not identify the bit in TIM element. So this patch
> adds mesh peer AID setting API.
>
> Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
> ---
> include/net/cfg80211.h | 2 ++
> include/uapi/linux/nl80211.h | 5 +++++
> net/mac80211/cfg.c | 1 +
> net/wireless/nl80211.c | 7 +++++++
> 4 files changed, 15 insertions(+)
>
> diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
> index 7bbb00d..23e34ca 100644
> --- a/include/net/cfg80211.h
> +++ b/include/net/cfg80211.h
> @@ -774,6 +774,7 @@ enum station_parameters_apply_mask {
> * (bitmask of BIT(NL80211_STA_FLAG_...))
> * @listen_interval: listen interval or -1 for no change
> * @aid: AID or zero for no change
> + * @peer_aid: mesh peer AID or zero for no change
> * @plink_action: plink action to take
> * @plink_state: set the peer link state for a station
> * @ht_capa: HT capabilities of station
> @@ -805,6 +806,7 @@ struct station_parameters {
> u32 sta_modify_mask;
> int listen_interval;
> u16 aid;
> + u16 peer_aid;
> u8 supported_rates_len;
> u8 plink_action;
> u8 plink_state;
> diff --git a/include/uapi/linux/nl80211.h
> b/include/uapi/linux/nl80211.h
> index 53c8278..f8c454e 100644
> --- a/include/uapi/linux/nl80211.h
> +++ b/include/uapi/linux/nl80211.h
> @@ -1829,6 +1829,9 @@ enum nl80211_commands {
> * %NL80211_ATTR_EXT_CAPA_MASK, to specify the extended
> capabilities per
> * interface type.
> *
> + * @NL80211_ATTR_MESH_PEER_AID: Association ID for the mesh peer
> (u16). This is
> + * used to pull the stored data for mesh peer in power save
> state.
>
Why does this need new API all over?
It seems to me that it could just use the regular NL80211_ATTR_STA_AID
attribute, and the cfg80211 code would already be in place, and you'd
just need to add a single line to mac80211 and
to cfg80211_check_station_change() to accept that.
johannes
next prev parent reply other threads:[~2016-07-06 12:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 9:00 [PATCH] cfg80211: Add mesh peer AID setting API Masashi Honma
2016-06-30 10:03 ` kbuild test robot
2016-06-30 11:11 ` Bob Copeland
2016-06-30 12:01 ` Masashi Honma
2016-07-01 1:19 ` [PATCH v2] " Masashi Honma
2016-07-06 12:42 ` Johannes Berg [this message]
2016-07-06 12:58 ` Bob Copeland
2016-07-06 13:03 ` 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=1467808954.5460.6.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=j@w1.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=masashi.honma@gmail.com \
--cc=me@bobcopeland.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.