mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-11-04 08:57:29 +01:00 
			
		
		
		
	unit: Update p2p_free_* function names
This commit is contained in:
		
							parent
							
								
									ce94133472
								
							
						
					
					
						commit
						37816f6ebf
					
				@ -277,8 +277,8 @@ static void p2p_test_parse_beacon(const void *data)
 | 
			
		||||
				attrs2.notice_of_absence.descriptors,
 | 
			
		||||
				p2p_noa_desc_cmp));
 | 
			
		||||
 | 
			
		||||
	p2p_free_beacon(&attrs1);
 | 
			
		||||
	p2p_free_beacon(&attrs2);
 | 
			
		||||
	p2p_clear_beacon(&attrs1);
 | 
			
		||||
	p2p_clear_beacon(&attrs2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void p2p_test_build_beacon(const void *data)
 | 
			
		||||
@ -301,7 +301,7 @@ static void p2p_test_build_beacon(const void *data)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ies = p2p_build_beacon(&attrs2, &ies_len);
 | 
			
		||||
	p2p_free_beacon(&attrs2);
 | 
			
		||||
	p2p_clear_beacon(&attrs2);
 | 
			
		||||
 | 
			
		||||
	assert(p2p_payload_cmd(ies, ies_len, test->ies, test->ies_len));
 | 
			
		||||
	l_free(ies);
 | 
			
		||||
@ -407,7 +407,7 @@ static void p2p_test_parse_probe_req(const void *data)
 | 
			
		||||
	assert(l_queue_length(attrs.service_hashes) ==
 | 
			
		||||
		l_queue_length(test->data.service_hashes));
 | 
			
		||||
 | 
			
		||||
	p2p_free_probe_req(&attrs);
 | 
			
		||||
	p2p_clear_probe_req(&attrs);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void p2p_test_build_probe_req(const void *data)
 | 
			
		||||
@ -617,8 +617,8 @@ static void p2p_test_parse_probe_resp(const void *data)
 | 
			
		||||
	assert(l_queue_length(attrs1.advertised_svcs) ==
 | 
			
		||||
		l_queue_length(attrs2.advertised_svcs));
 | 
			
		||||
 | 
			
		||||
	p2p_free_probe_resp(&attrs1);
 | 
			
		||||
	p2p_free_probe_resp(&attrs2);
 | 
			
		||||
	p2p_clear_probe_resp(&attrs1);
 | 
			
		||||
	p2p_clear_probe_resp(&attrs2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void p2p_test_build_probe_resp(const void *data)
 | 
			
		||||
@ -641,7 +641,7 @@ static void p2p_test_build_probe_resp(const void *data)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ies = p2p_build_probe_resp(&attrs2, &ies_len);
 | 
			
		||||
	p2p_free_probe_resp(&attrs2);
 | 
			
		||||
	p2p_clear_probe_resp(&attrs2);
 | 
			
		||||
 | 
			
		||||
	assert(p2p_payload_cmd(ies, ies_len, test->ies, test->ies_len));
 | 
			
		||||
	l_free(ies);
 | 
			
		||||
@ -738,8 +738,8 @@ static void p2p_test_parse_association_req(const void *data)
 | 
			
		||||
	assert(l_queue_length(attrs1.interface.interface_addrs) ==
 | 
			
		||||
		l_queue_length(attrs2.interface.interface_addrs));
 | 
			
		||||
 | 
			
		||||
	p2p_free_association_req(&attrs1);
 | 
			
		||||
	p2p_free_association_req(&attrs2);
 | 
			
		||||
	p2p_clear_association_req(&attrs1);
 | 
			
		||||
	p2p_clear_association_req(&attrs2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void p2p_test_build_association_req(const void *data)
 | 
			
		||||
@ -808,8 +808,8 @@ static void p2p_test_parse_association_resp(const void *data)
 | 
			
		||||
	assert(attrs1.listen_availability.avail_interval_ms ==
 | 
			
		||||
		attrs2.listen_availability.avail_interval_ms);
 | 
			
		||||
 | 
			
		||||
	p2p_free_association_resp(&attrs1);
 | 
			
		||||
	p2p_free_association_resp(&attrs2);
 | 
			
		||||
	p2p_clear_association_resp(&attrs1);
 | 
			
		||||
	p2p_clear_association_resp(&attrs2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void p2p_test_build_association_resp(const void *data)
 | 
			
		||||
@ -976,8 +976,8 @@ static void p2p_test_parse_provision_disc_req(const void *data)
 | 
			
		||||
 | 
			
		||||
	assert(attrs1.wsc_config_method == attrs2.wsc_config_method);
 | 
			
		||||
 | 
			
		||||
	p2p_free_provision_disc_req(&attrs1);
 | 
			
		||||
	p2p_free_provision_disc_req(&attrs2);
 | 
			
		||||
	p2p_clear_provision_disc_req(&attrs1);
 | 
			
		||||
	p2p_clear_provision_disc_req(&attrs2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void p2p_test_build_provision_disc_req(const void *data)
 | 
			
		||||
@ -1114,8 +1114,8 @@ static void p2p_test_parse_provision_disc_resp(const void *data)
 | 
			
		||||
 | 
			
		||||
	assert(attrs1.wsc_config_method == attrs2.wsc_config_method);
 | 
			
		||||
 | 
			
		||||
	p2p_free_provision_disc_resp(&attrs1);
 | 
			
		||||
	p2p_free_provision_disc_resp(&attrs2);
 | 
			
		||||
	p2p_clear_provision_disc_resp(&attrs1);
 | 
			
		||||
	p2p_clear_provision_disc_resp(&attrs2);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int main(int argc, char *argv[])
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user