]> git.ipfire.org Git - thirdparty/hostap.git/commit - hostapd/hostapd.wpa_psk
AP: Allow identifying which passphrase station used with wpa_psk_file
authorMichal Kazior <michal@plume.com>
Wed, 16 Jan 2019 12:35:19 +0000 (13:35 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 26 Jan 2019 15:52:04 +0000 (17:52 +0200)
commitec5c39a5574d4fbee983ae659ea0834bf48ea14d
treea5b112820ea0d9be6f439a82b498301bd76103ec
parentb08c9ad0c78d2c767d62e1d169560debe8db0ce6
AP: Allow identifying which passphrase station used with wpa_psk_file

It is now possible to optionally specify keyid for
each wpa_psk_file entry:

 keyid=something 00:00:00:00:00:00 secretpassphrase

When station connects and the passphrase it used
has an associated keyid it will be appended to the
AP-STA-CONNECTED event string:

 wlan0: AP-STA-CONNECTED 00:36:76:21:dc:7b keyid=something

It's also possible to retrieve it through the control interface:

 $ hostapd_cli all_sta
 Selected interface 'ap0'
 00:36:76:21:dc:7b
 ...
 keyid=something

New hostapd is able to read old wpa_psk_file. However, old hostapd will
not be able to read the new wpa_psk_file if it includes keyids.

Signed-off-by: Michal Kazior <michal@plume.com>
hostapd/hostapd.wpa_psk
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/ctrl_iface_ap.c
src/ap/sta_info.c
src/ap/sta_info.h