mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	ucentral-event: fix ubus notification and band detect
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -137,14 +137,14 @@ function hapd_subscriber_notify_cb(notify) { | ||||
| 		}); | ||||
| 	} | ||||
| 	if (notify.type == 'probe') | ||||
| 		return true; | ||||
| 		return 0; | ||||
| 	let handler = handlers[notify.type]; | ||||
| 	if (!handler) | ||||
| 		return true; | ||||
| 		return 0; | ||||
| 	let hapd = hostapd[notify.data.ifname]; | ||||
| 	handler(notify, hapd); | ||||
|  | ||||
| 	return true; | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| function hostapd_event(ifname, type) { | ||||
| @@ -167,7 +167,7 @@ function hostapd_add(path, obj) { | ||||
| 		hostapd[ifname].band = '2G'; | ||||
|  | ||||
| 	else if (hostapd[ifname].op_class >= 115 && | ||||
| 		 hostapd[ifname].op_class <= 127) | ||||
| 		 hostapd[ifname].op_class <= 130) | ||||
| 		hostapd[ifname].band = '5G'; | ||||
|  | ||||
| 	else if (hostapd[ifname].op_class >= 133 && | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin