]> Git Repo - linux.git/commit
wifi: rtl8xxxu: add hw crypto support for AP mode
authorMartin Kaistra <[email protected]>
Fri, 22 Dec 2023 10:14:40 +0000 (11:14 +0100)
committerKalle Valo <[email protected]>
Wed, 10 Jan 2024 14:52:58 +0000 (16:52 +0200)
commitb837f78fbffa5f8e7e7c59879db54793abf161ec
treed0630abddf10ffda4f6030da603a930c0f292c63
parentf232e9d91bb84817c60c051a3e3b56dd2721a7b3
wifi: rtl8xxxu: add hw crypto support for AP mode

Add a custom function for allocating entries in the sec cam. This allows
us to store multiple keys with the same keyidx.

The maximum number of sec cam entries for 8188f is 16 according to the
vendor driver. Add the number to rtl8xxxu_fileops, so that other chips
which might support more entries, can set a different number there.

Set the bssid as mac address for group keys instead of just using the
ethernet broadcast address and use BIT(6) in the sec cam ctrl entry
for differentiating them from pairwise keys like in the vendor driver.

Add the TXDESC_EN_DESC_ID bit and the hw_key_idx to tx
broadcast/multicast packets in AP mode.

Finally, allow the usage of rtl8xxxu_set_key() for AP mode.

Signed-off-by: Martin Kaistra <[email protected]>
Reviewed-by: Ping-Ke Shih <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188f.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
This page took 0.055131 seconds and 4 git commands to generate.