mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +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'); | 	debug(mac, 'stopping accounting'); | ||||||
| 	if (clients[mac].accounting) | 	if (clients[mac].accounting) | ||||||
| 		clients[mac].timeout.cancel(); | 		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) { | function radius_acct(mac, payload) { | ||||||
| @@ -122,7 +114,7 @@ function radius_logoff(mac) { | |||||||
| 		return; | 		return; | ||||||
| 	let payload = { | 	let payload = { | ||||||
| 		acct_type: 2, | 		acct_type: 2, | ||||||
| 		terminate_cause: 0, | 		terminate_cause: 1, | ||||||
| 	}; | 	}; | ||||||
| 	radius_acct(mac, payload); | 	radius_acct(mac, payload); | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin