mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-11-04 08:57:29 +01:00 
			
		
		
		
	client: WSC PushButton command
This commit is contained in:
		
							parent
							
								
									ff5e3f3b52
								
							
						
					
					
						commit
						c6045ff100
					
				
							
								
								
									
										13
									
								
								client/wsc.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								client/wsc.c
									
									
									
									
									
								
							@ -43,7 +43,18 @@ static void check_errors_method_callback(struct l_dbus_message *message,
 | 
			
		||||
 | 
			
		||||
static enum cmd_status cmd_push_button(const char *device_name, char *args)
 | 
			
		||||
{
 | 
			
		||||
	return CMD_STATUS_UNSUPPORTED;
 | 
			
		||||
	const struct proxy_interface *proxy = device_wsc_get(device_name);
 | 
			
		||||
 | 
			
		||||
	if (!proxy) {
 | 
			
		||||
		display("Invalid device name '%s'\n", device_name);
 | 
			
		||||
 | 
			
		||||
		return CMD_STATUS_INVALID_VALUE;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	proxy_interface_method_call(proxy, "PushButton", "",
 | 
			
		||||
						check_errors_method_callback);
 | 
			
		||||
 | 
			
		||||
	return CMD_STATUS_OK;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static enum cmd_status cmd_start_user_pin(const char *device_name, char *args)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user