[PATCH] It is invalid to send Acct-Terminate-Cause in Accounting-On and Accounting-Off

Nick Lowe nick.lowe at lugatech.com
Sun Jan 24 02:58:36 PST 2016


From: Nick Lowe <nick.lowe at lugatech.com>

It is invalid to send Acct-Terminate-Cause in Accounting-On and Accounting-Off

Signed-off-by: Nick Lowe <nick.lowe at lugatech.com>
---
 src/ap/accounting.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/ap/accounting.c b/src/ap/accounting.c
index 95dc366..e585b78 100644
--- a/src/ap/accounting.c
+++ b/src/ap/accounting.c
@@ -448,14 +448,6 @@ static void accounting_report_state(struct
hostapd_data *hapd, int on)
  if (!msg)
  return;

- if (!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_TERMINATE_CAUSE,
-       RADIUS_ACCT_TERMINATE_CAUSE_NAS_REBOOT))
- {
- wpa_printf(MSG_INFO, "Could not add Acct-Terminate-Cause");
- radius_msg_free(msg);
- return;
- }
-
  if (radius_client_send(hapd->radius, msg, RADIUS_ACCT, NULL) < 0)
  radius_msg_free(msg);
 }
-- 
2.5.0



More information about the Hostap mailing list