Add RADIUS Service-Type attribute with a value of Framed
This seems to be the common value used by APs and also mentioned in RFC 3580. Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
This commit is contained in:
parent
78dd5c11ac
commit
8c676b5056
4 changed files with 20 additions and 0 deletions
|
@ -404,6 +404,14 @@ static int add_common_radius_sta_attr(struct hostapd_data *hapd,
|
|||
{
|
||||
char buf[128];
|
||||
|
||||
if (!hostapd_config_get_radius_attr(req_attr,
|
||||
RADIUS_ATTR_SERVICE_TYPE) &&
|
||||
!radius_msg_add_attr_int32(msg, RADIUS_ATTR_SERVICE_TYPE,
|
||||
RADIUS_SERVICE_TYPE_FRAMED)) {
|
||||
wpa_printf(MSG_ERROR, "Could not add Service-Type");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!hostapd_config_get_radius_attr(req_attr,
|
||||
RADIUS_ATTR_NAS_PORT) &&
|
||||
!radius_msg_add_attr_int32(msg, RADIUS_ATTR_NAS_PORT, sta->aid)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue