]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: apply MLD pairwise key to dynamically active links
authorZong-Zhe Yang <kevin_yang@realtek.com>
Wed, 20 Nov 2024 03:40:52 +0000 (11:40 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 27 Nov 2024 03:11:36 +0000 (11:11 +0800)
commita6db83bef0f587494fcc9cc5a9ec6e66ea13236e
tree74da0536687c97f7cb6f3acb7fb8ebec3a588f9e
parentd2b387bdca4684052d58f81667fe6fd6c746faca
wifi: rtw89: apply MLD pairwise key to dynamically active links

In MLD connection, a pairwise key should work on all active links. And, we
take just one entry in security CAM for one pairwise key. (It means we will
reuse one single entry for all links.) Originally, we already applied the
security CAM entry of pairwise key to deflink's address CAM.

However, links can be activated dynamically. So now for pairwise keys, each
rtw89_sta records the IDs of the security CAM entries. Then, when driver is
notified that some links are active via change_sta_links(), we apply target
pairwise keys to them according to the record.

Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241120034054.13575-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/cam.c
drivers/net/wireless/realtek/rtw89/cam.h
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/mac80211.c