base-files: wifi: for wifi reconf, scan_wifi after network reload
Commite8b5429609included an unintended change and we now call scan_wifi before a network reload. Restore the original behaviour and call scan_wifi only after a network reload. Fixes:e8b5429609("base-files: wifi: tidy up the reconf code") Signed-off-by: Bob Cantor <bobc@confidesk.com>
This commit is contained in:
		 Bob Cantor
					Bob Cantor
				
			
				
					committed by
					
						 Christian Marangi
						Christian Marangi
					
				
			
			
				
	
			
			
			 Christian Marangi
						Christian Marangi
					
				
			
						parent
						
							fcfce8f208
						
					
				
				
					commit
					80a62a675d
				
			| @@ -133,9 +133,9 @@ wifi_updown() { | |||||||
| 		cmd=up | 		cmd=up | ||||||
| 	} | 	} | ||||||
| 	[ reconf = "$1" ] && { | 	[ reconf = "$1" ] && { | ||||||
|  | 		ubus call network reload | ||||||
| 		scan_wifi | 		scan_wifi | ||||||
| 		cmd=reconf | 		cmd=reconf | ||||||
| 		ubus call network reload |  | ||||||
| 	} | 	} | ||||||
| 	ubus_wifi_cmd "$cmd" "$2" | 	ubus_wifi_cmd "$cmd" "$2" | ||||||
| 	_wifi_updown "$@" | 	_wifi_updown "$@" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user