mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-11-04 00:37:22 +01:00 
			
		
		
		
	netdev: Remove netdev_new_wiphy_hint
This commit is contained in:
		
							parent
							
								
									83500c9516
								
							
						
					
					
						commit
						37ea99d09e
					
				
							
								
								
									
										12
									
								
								src/netdev.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								src/netdev.c
									
									
									
									
									
								
							@ -1525,18 +1525,6 @@ static void netdev_link_notify(uint16_t type, const void *data, uint32_t len,
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void netdev_new_wiphy_hint(uint32_t wiphy_id)
 | 
			
		||||
{
 | 
			
		||||
	struct l_genl_msg *msg;
 | 
			
		||||
 | 
			
		||||
	msg = l_genl_msg_new_sized(NL80211_CMD_GET_INTERFACE, 8);
 | 
			
		||||
	l_genl_msg_append_attr(msg, NL80211_ATTR_WIPHY, 4, &wiphy_id);
 | 
			
		||||
 | 
			
		||||
	if (!l_genl_family_dump(nl80211, msg, netdev_get_interface_callback,
 | 
			
		||||
								NULL, NULL))
 | 
			
		||||
		l_error("Getting wiphy %d interface info failed", wiphy_id);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static bool netdev_watch_match(const void *a, const void *b)
 | 
			
		||||
{
 | 
			
		||||
	const struct netdev_watch *item = a;
 | 
			
		||||
 | 
			
		||||
@ -83,7 +83,6 @@ int netdev_set_powered(struct netdev *netdev, bool powered,
 | 
			
		||||
				netdev_destroy_func_t destroy);
 | 
			
		||||
 | 
			
		||||
struct netdev *netdev_find(int ifindex);
 | 
			
		||||
void netdev_new_wiphy_hint(uint32_t wiphy_id);
 | 
			
		||||
 | 
			
		||||
uint32_t netdev_watch_add(struct netdev *netdev, netdev_watch_func_t func,
 | 
			
		||||
				void *user_data);
 | 
			
		||||
 | 
			
		||||
@ -406,8 +406,6 @@ static void wiphy_new_wiphy_event(struct l_genl_msg *msg)
 | 
			
		||||
	wiphy_print_basic_info(wiphy);
 | 
			
		||||
 | 
			
		||||
	wiphy_register(wiphy);
 | 
			
		||||
 | 
			
		||||
	netdev_new_wiphy_hint(wiphy->id);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void wiphy_del_wiphy_event(struct l_genl_msg *msg)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user