mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	uspot: do not send accounting off upon logoff
Fixes: WIFI-11907 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -62,14 +62,6 @@ function radius_stop(mac) { | ||||
| 	debug(mac, 'stopping accounting'); | ||||
| 	if (clients[mac].accounting) | ||||
| 		clients[mac].timeout.cancel(); | ||||
|  | ||||
| 	let payload = { | ||||
| 		acct: true, | ||||
| 		acct_type: 8, | ||||
| 		terminate_cause: 0, | ||||
| 	}; | ||||
| 	radius_init(mac, payload); | ||||
| 	radius_call(mac, payload); | ||||
| } | ||||
|  | ||||
| function radius_acct(mac, payload) { | ||||
| @@ -122,7 +114,7 @@ function radius_logoff(mac) { | ||||
| 		return; | ||||
| 	let payload = { | ||||
| 		acct_type: 2, | ||||
| 		terminate_cause: 0, | ||||
| 		terminate_cause: 1, | ||||
| 	}; | ||||
| 	radius_acct(mac, payload); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin