Search Linux Wireless

Re: [PATCH 2/2] iwlwifi: Extended Key ID support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, 2019-06-26 at 23:10 +0200, Alexander Wetzel wrote:
> > iwlwifi cards are all able to support Extended Key ID as long as
> > mac80211 stops A-MPDU aggregation when replacing the unicast key.
> > 
> > Enable Extended Key ID support and tell mac80211 that it has to tear
> > down any running Tx aggregation sessions during rekey when using
> > Extended Key ID.
> 
> With the merge of the A-MPDU handling patch 
> https://patchwork.kernel.org/patch/10931861/ we probably should simplify 
> the API for Extended Key ID and not merge the patch as it is:
> 
> 1) We can drop EXT_KEY_ID_NATIVE from mac80211 and let the drivers set
>     NL80211_EXT_FEATURE_EXT_KEY_ID instead of mac80211.
>     Without the COMPAT support the naming is off and the flag is simply
>     pointless. Assuming we want to pick up the COMPAT Extended Key ID we
>     still can just define a new flag, e.g.
>     SINGLE_STA_UNICAST_KEY_OFFLOAD_ONLY to tell mac80211 it can only
>     have one unicast key active in the HW per STA.

Yes, true, with the compat more or less off the table for now, we don't
really need this extra complexity.

> 2) Mac80211 would then enable Extended Key ID for all drivers using SW
>     crypto and just also set NO_AMPDU_KEYBORDER_SUPPORT when the driver
>     supports A-MPDU

Right (or not really set the flag, but get rid of it?), though maybe
some (rare) driver would actually support ampdu keyborder? Ath9k for
example could do that since it builds the aggregates in software, so I
guess we'd need some flag indicating the opposite then.

> 3) we then could undo (revert?) cfe7007a9b4c ("mac80211_hwsim: Extended
>     Key ID support") and let the more generic code in mac80211 handle it
> 
> If you agree I'll prepare and test a small patch series for that.
> And we better only merge a iteration of this patch here once we got the 
> API updated.

Sounds good to me!

johannes




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux