linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: vjakkam@codeaurora.org
To: Arend Van Spriel <arend.vanspriel@broadcom.com>
Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2] cfg80211: Enhance the AKM advertizement to support per interface.
Date: Sun, 26 Jan 2020 16:40:25 +0530	[thread overview]
Message-ID: <1793692bd48e546915d3a3ec28208b01@codeaurora.org> (raw)
In-Reply-To: <a09e490e-a1e9-b4ec-afbf-438aef816435@broadcom.com>

On 2020-01-20 14:27, Arend Van Spriel wrote:
> On 1/17/2020 12:35 PM, Veerendranath Jakkam wrote:
>> Commit ab4dfa20534e ("cfg80211: Allow drivers to advertise supported 
>> AKM
>> suites") introduces the support to advertize supported AKMs to 
>> userspace.
>> 
>> This needs an enhancement to advertize the AKM support per interface 
>> type,
>> specifically for the cfg80211-based drivers that implement SME and use
>> different mechanisms to support the AKM's for each interface type 
>> (e.g.,
>> the support for SAE, OWE AKM's take different paths for such drivers 
>> on
>> STA/AP mode).
>> 
>> Add a new nl80211 attribute to provide supported AKMs per interface 
>> type
>> to userspace.
>> 
>> This commit aims the same and enhances the earlier mechanism of 
>> advertizing
>> the AKMs per wiphy. AKMs advertized in akm_suites are default 
>> capabilities
>> if not advertized for a specific interface type in iftype_akm_suites.
>> 
>> Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
>> ---
>> Changelog:
>> v1->v2:
>>   -Keep advertizing support for AKM suites per wiphy
>>   -AKM suites per interface overrides wiphy AKM suites for specific 
>> interface
>>   -Rename new nl80211 attribute to NL80211_ATTR_IFTYPE_AKM_SUITES
>> ---
>>   include/net/cfg80211.h       | 22 +++++++++++++++++++-
>>   include/uapi/linux/nl80211.h |  6 ++++++
>>   net/wireless/nl80211.c       | 39 
>> ++++++++++++++++++++++++++++++++++++
>>   3 files changed, 66 insertions(+), 1 deletion(-)
>> 
>> diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
>> index fa027d0d031b..10533dff2102 100644
>> --- a/include/net/cfg80211.h
>> +++ b/include/net/cfg80211.h
>> @@ -4398,6 +4398,18 @@ struct cfg80211_pmsr_capabilities {
>>   	} ftm;
>>   };
>>   +/**
>> + * struct wiphy_iftype_akm_suites - supported akm suites per 
>> interface type
>> + * @iftype: interface type
>> + * @akm_suites: points to an array of supported akm suites
>> + * @n_akm_suites: number of supported AKM suites
>> + */
>> +struct wiphy_iftype_akm_suites {
>> +	enum nl80211_iftype iftype;
> 
> I can imagine certain iftypes could support same suites so maybe good
> to use bitmask of iftypes iso single iftype.
> 
> Regards,
> Arend
> 
>> +	const u32 *akm_suites;
>> +	int n_akm_suites;
>> +};
>> +

Thanks, I will upload v3 patch with suggested changes.

  reply	other threads:[~2020-01-26 11:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-23 18:52 [PATCH] cfg80211: Enhance the AKM advertizement to support per interface Veerendranath Jakkam
2020-01-02 13:41 ` Johannes Berg
2020-01-17 11:34   ` vjakkam
2020-01-02 13:45 ` Johannes Berg
2020-01-17 11:33   ` vjakkam
2020-01-17 11:35 ` [PATCH v2] " Veerendranath Jakkam
2020-01-20  8:57   ` Arend Van Spriel
2020-01-26 11:10     ` vjakkam [this message]
2020-01-26 11:21   ` [PATCH v3] " Veerendranath Jakkam
2020-01-26 17:32     ` Johannes Berg
2020-01-26 20:23       ` vjakkam
2020-01-26 20:30     ` [PATCH v4] " Veerendranath Jakkam

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=1793692bd48e546915d3a3ec28208b01@codeaurora.org \
    --to=vjakkam@codeaurora.org \
    --cc=arend.vanspriel@broadcom.com \
    --cc=johannes@sipsolutions.net \
    --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).