Message ID | 20160229101007.GC13646@w1.fi |
---|---|
State | Superseded |
Headers | show |
diff --git a/src/ap/accounting.c b/src/ap/accounting.c index 010ba05..b400938 100644 --- a/src/ap/accounting.c +++ b/src/ap/accounting.c @@ -332,6 +332,20 @@ static void accounting_sta_report(struct hostapd_data *hapd, } } + if (!stop) { + /* + * Since we do not retry the same message again for interim + * updates, indicate that this specific message has no delay in + * transmission attempts. + */ + if (!radius_msg_add_attr_int32(msg, + RADIUS_ATTR_ACCT_DELAY_TIME, + 0)) { + wpa_printf(MSG_INFO, "Could not add Acct-Delay-Time"); + goto fail; + } + } + if (eloop_terminated()) cause = RADIUS_ACCT_TERMINATE_CAUSE_ADMIN_REBOOT;