mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 19:04:02 -05:00
Make VLAN ID available in STA info over control interface
If hostapd has bound a STA into a specific VLAN, the new vlan_id parameter in the control interface STA command can now be used to check which VLAN ID is in use. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5678a2d89b
commit
87b5b53959
@ -153,6 +153,13 @@ static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd,
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_SAE */
|
#endif /* CONFIG_SAE */
|
||||||
|
|
||||||
|
if (sta->vlan_id > 0) {
|
||||||
|
res = os_snprintf(buf + len, buflen - len, "vlan_id=%d\n",
|
||||||
|
sta->vlan_id);
|
||||||
|
if (!os_snprintf_error(buflen - len, res))
|
||||||
|
len += res;
|
||||||
|
}
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user