[PATCH] Do not send a NAS-Port attribute in Access-Request and Accounting-Request RADIUS packets as the association id is likely to always be 0.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[PATCH] Do not send a NAS-Port attribute in Access-Request and
 Accounting-Request RADIUS packets as the association id is likely to always
 be 0.

Signed-off-by: Nick Lowe <nlowe@xxxxxxxxxxxx>
---
 src/ap/ieee802_1x.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c
index 42b0299..a526441 100644
--- a/src/ap/ieee802_1x.c
+++ b/src/ap/ieee802_1x.c
@@ -412,13 +412,6 @@ static int add_common_radius_sta_attr(struct
hostapd_data *hapd,
  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)) {
- wpa_printf(MSG_ERROR, "Could not add NAS-Port");
- return -1;
- }
-
  os_snprintf(buf, sizeof(buf), RADIUS_802_1X_ADDR_FORMAT,
     MAC2STR(sta->addr));
  buf[sizeof(buf) - 1] = '\0';
-- 
2.7.4

Attachment: 0001-Do-not-send-a-NAS-Port-attribute-in-Access-Request-a.patch
Description: Binary data

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux