mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-19 03:14:05 -05:00
HS 2.0: Update HS2.0 AP version RADIUS attribute Version field
Use HS20_VERSION macro to determine if R3 should be indicated instead of R2. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
524b963c6c
commit
adbce7443d
@ -683,6 +683,8 @@ void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
|
|||||||
#ifdef CONFIG_HS20
|
#ifdef CONFIG_HS20
|
||||||
if (hapd->conf->hs20) {
|
if (hapd->conf->hs20) {
|
||||||
u8 ver = 1; /* Release 2 */
|
u8 ver = 1; /* Release 2 */
|
||||||
|
if (HS20_VERSION > 0x10)
|
||||||
|
ver = 2; /* Release 3 */
|
||||||
if (!radius_msg_add_wfa(
|
if (!radius_msg_add_wfa(
|
||||||
msg, RADIUS_VENDOR_ATTR_WFA_HS20_AP_VERSION,
|
msg, RADIUS_VENDOR_ATTR_WFA_HS20_AP_VERSION,
|
||||||
&ver, 1)) {
|
&ver, 1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user