mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 13:17:25 +01:00 
			
		
		
		
	client: fix station autocomplete with multiple phys
The limitations of readline required that the autocompletion choose a 'default' device. With multiple phys this doesn't work. Now the readline limitation has been worked around and station can look up the device for the command completion.
This commit is contained in:
		
							parent
							
								
									be02c3fa3d
								
							
						
					
					
						commit
						fce1bb60a8
					
				| @ -280,7 +280,8 @@ static enum cmd_status cmd_list(const char *device_name, char **argv, int argc) | ||||
| static char *connect_cmd_arg_completion(const char *text, int state, | ||||
| 					const char *device_name) | ||||
| { | ||||
| 	const struct proxy_interface *device = device_get_default(); | ||||
| 	const struct proxy_interface *device = device_proxy_find(device_name, | ||||
| 							IWD_STATION_INTERFACE); | ||||
| 
 | ||||
| 	if (!device) | ||||
| 		return NULL; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood