]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/ap/wpa_auth.c
FT: Add support for wildcard R0KH/R1KH
authorMichael Braun <michael-dev@fami-braun.de>
Sun, 2 Apr 2017 12:52:52 +0000 (14:52 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 3 May 2017 19:16:14 +0000 (22:16 +0300)
commit3a46cf93d0bc56de8735df15e32f9512391bc066
tree2d38603cb641d1ba3c56ef04d188b2b232cd23b8
parentba88dd65e771f50a73c025aad3e83ea04e45095f
FT: Add support for wildcard R0KH/R1KH

Enable use of FT RRB without configuring each other AP locally. Instead,
broadcast messages are exchanged to discover APs within the local
network.

When an R0KH or R1KH is discovered, it is cached for one day.

When a station uses an invalid or offline r0kh_id, requests are always
broadcast. In order to avoid this, if r0kh does not reply, a temporary
blacklist entry is added to r0kh_list.

To avoid blocking a valid r0kh when a non-existing pmk_r0_name is
requested, r0kh is required to always reply using a NAK. Resend requests
a few times to ensure blacklisting does not happen due to small packet
loss.

To free newly created stations later, the r*kh_list start pointer in
conf needs to be updateable from wpa_auth_ft.c, where only wconf is
accessed.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/wpa_auth.c
src/ap/wpa_auth.h
src/ap/wpa_auth_ft.c
src/ap/wpa_auth_glue.c
src/ap/wpa_auth_i.h