path: root/hostapd/hostapd.wpa_psk
diff options
authorMichal Kazior <michal@plume.com>2019-01-16 12:35:19 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-26 15:52:04 (GMT)
commitec5c39a5574d4fbee983ae659ea0834bf48ea14d (patch)
treea5b112820ea0d9be6f439a82b498301bd76103ec /hostapd/hostapd.wpa_psk
parentb08c9ad0c78d2c767d62e1d169560debe8db0ce6 (diff)
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>
Diffstat (limited to 'hostapd/hostapd.wpa_psk')
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/hostapd.wpa_psk b/hostapd/hostapd.wpa_psk
index 0a9499a..834d441 100644
--- a/hostapd/hostapd.wpa_psk
+++ b/hostapd/hostapd.wpa_psk
@@ -3,7 +3,10 @@
# Special MAC address 00:00:00:00:00:00 can be used to configure PSKs that
# anyone can use. PSK can be configured as an ASCII passphrase of 8..63
# characters or as a 256-bit hex PSK (64 hex digits).
+# An optional key identifier can be added by prefixing the line with
+# keyid=<keyid_string>
00:00:00:00:00:00 secret passphrase
00:11:22:33:44:55 another passphrase
00:22:33:44:55:66 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
+keyid=example_id 00:11:22:33:44:77 passphrase with keyid
00:00:00:00:00:00 another passphrase for all STAs