diff mbox

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

Message ID CAGnO3doDCnfsignq69MkSZVzkKVH3C8RHwLsDu6y3RcVHkoy_g@mail.gmail.com
State Superseded
Headers show

Commit Message

Nick Lowe Jan. 24, 2016, 10:58 a.m. UTC
From: Nick Lowe <nick.lowe@lugatech.com>

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

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

 }
diff mbox

Patch

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);