FT: Use BSSID as r1_key_holder if no value is configured
authorMichael Braun <michael-dev@fami-braun.de>
Wed, 24 Feb 2016 11:53:34 +0000 (12:53 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2016 15:56:42 +0000 (17:56 +0200)
commitd48d1b88d0226bf096890a4a9b485ec65ddc341b
tree0a3e590db39e7b9b9082e52bc970d74b8bbde174
parent186ca4736d620cc1e132f361d81c9a45906c531d
FT: Use BSSID as r1_key_holder if no value is configured

r1_key_holder is an identifier that was always set to zero if unless
configured before.

See 11.6.1.7.4 of IEEE Std 802.11-2012 which reads
 "R1KH-ID is a MAC address of the holder of the PMK-R1 in the
  Authenticator of the AP"
See 12.2.2 of IEEE Std 802.11-2012 which reads
 "Each R0KH-ID and R1KH-ID is assumed to be expressed as a unique
  identifier within the mobility domain."
 "The R1KH-ID shall be set to a MAC address of the physical entity
  that stores the PMK-R1 ..."

Defaulting this to BSSID is a more reasonable value since we have not
rejected the missing r1_key_holder as invalid configuration.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
hostapd/hostapd.conf
src/ap/hostapd.c