HS 2.0: Copy Roaming Consortium OI from (Re)AssocReq to Access-Request
This extends hostapd processing of (Re)Association Request frames to store a local copy of the Consortium OI within the Roaming Consortium Selection element, if present, and then add that in HS 2.0 Roaming Consortium attribute into RADIUS Access-Request messages. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
be5acc3884
commit
67cca34645
9 changed files with 38 additions and 0 deletions
|
@ -712,6 +712,16 @@ void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
|
|||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
if (sta->roaming_consortium &&
|
||||
!radius_msg_add_wfa(
|
||||
msg, RADIUS_VENDOR_ATTR_WFA_HS20_ROAMING_CONSORTIUM,
|
||||
wpabuf_head(sta->roaming_consortium),
|
||||
wpabuf_len(sta->roaming_consortium))) {
|
||||
wpa_printf(MSG_ERROR,
|
||||
"Could not add HS 2.0 Roaming Consortium");
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_HS20 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue