]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode
authorChung-Hsien Hsu <stanley.hsu@cypress.com>
Tue, 23 Jun 2020 13:49:35 +0000 (08:49 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jul 2020 07:27:02 +0000 (09:27 +0200)
commit768f7dd48e21742beae2e9ada18e83e43158a32a
treeb7018c86e806dc94fd06d0f2aab2d84f3cb092a5
parent0b17be4417fea03d1ef70cdd93bb227d995f6857
nl80211: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode

Let drivers advertise support for AP-mode WPA/WPA2-PSK 4-way handshake
offloading with a new NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK flag.

Extend use of NL80211_ATTR_PMK attribute indicating it might be passed
as part of NL80211_CMD_START_AP command, and contain the PSK (which is
the PMK, hence the name).

The driver is assumed to handle the 4-way handshake by itself in this
case, instead of relying on userspace.

Signed-off-by: Chung-Hsien Hsu <stanley.hsu@cypress.com>
Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Link: https://lore.kernel.org/r/20200623134938.39997-2-chi-hsien.lin@cypress.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/nl80211.c