mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	dpp: remove duplicate connected network check
This commit is contained in:
		
							parent
							
								
									30c6a10f28
								
							
						
					
					
						commit
						485f9f56bf
					
				| @ -4001,14 +4001,8 @@ static uint32_t *dpp_default_freqs(struct dpp_sm *dpp, size_t *out_len) | ||||
| static bool dpp_start_pkex_enrollee(struct dpp_sm *dpp, const char *key, | ||||
| 				const char *identifier) | ||||
| { | ||||
| 	struct station *station = station_find(netdev_get_ifindex(dpp->netdev)); | ||||
| 	_auto_(l_ecc_point_free) struct l_ecc_point *qi = NULL; | ||||
| 
 | ||||
| 	if (station && station_get_connected_network(station)) { | ||||
| 		l_debug("Already connected, disconnect before enrolling"); | ||||
| 		return false; | ||||
| 	} | ||||
| 
 | ||||
| 	if (identifier) | ||||
| 		dpp->pkex_id = l_strdup(identifier); | ||||
| 
 | ||||
| @ -4120,7 +4114,7 @@ static struct l_dbus_message *dpp_dbus_pkex_start_enrollee(struct l_dbus *dbus, | ||||
| 				dpp->interface != DPP_INTERFACE_UNBOUND) | ||||
| 		return dbus_error_busy(message); | ||||
| 
 | ||||
| 	if (station_get_connected_network(station)) | ||||
| 	if (station && station_get_connected_network(station)) | ||||
| 		return dbus_error_busy(message); | ||||
| 
 | ||||
| 	if (!dpp_parse_pkex_args(message, &key, &id)) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood