aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-02-17 15:22:37 (GMT)
committerJouni Malinen <j@w1.fi>2019-02-17 15:24:23 (GMT)
commitb0e91e3877b2429c21229fc27fc29dec5115eb97 (patch)
tree97c737d7e26543b5503df093054a59e26e1a13fe /hostapd/config_file.c
parentcf4643aa7d8139eb431439bd628c4cf3dee7a535 (diff)
downloadhostap-b0e91e3877b2429c21229fc27fc29dec5115eb97.zip
hostap-b0e91e3877b2429c21229fc27fc29dec5115eb97.tar.gz
hostap-b0e91e3877b2429c21229fc27fc29dec5115eb97.tar.bz2
SAE: VLAN assignment based on SAE Password Identifier
The new sae_password parameter [|vlanid=<VLAN ID>] can now be used to assign stations to a specific VLAN based on which SAE Password Identifier they use. This is similar to the WPA2-Enterprise case where the RADIUS server can assign stations to different VLANs and the WPA2-Personal case where vlanid parameter in wpa_psk_file is used. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index c8ff7a0..c22731e 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2333,6 +2333,14 @@ static int parse_sae_password(struct hostapd_bss_config *bss, const char *val)
pos = pos2 + ETH_ALEN * 3 - 1;
}
+ pos2 = os_strstr(pos, "|vlanid=");
+ if (pos2) {
+ if (!end)
+ end = pos2;
+ pos2 += 8;
+ pw->vlan_id = atoi(pos2);
+ }
+
pos2 = os_strstr(pos, "|id=");
if (pos2) {
if (!end)