mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 00:02:48 +01:00
core: Add network interface to beginning of list
This commit is contained in:
parent
f400e9dd44
commit
442ba2412d
@ -184,7 +184,7 @@ static void interface_dump_callback(struct l_genl_msg *msg, void *user_data)
|
||||
L_UINT_TO_PTR(ifindex));
|
||||
if (!netdev) {
|
||||
netdev = l_new(struct netdev, 1);
|
||||
l_queue_push_tail(wiphy->netdev_list, netdev);
|
||||
l_queue_push_head(wiphy->netdev_list, netdev);
|
||||
}
|
||||
|
||||
memcpy(netdev->name, ifname, sizeof(netdev->name));
|
||||
|
Loading…
Reference in New Issue
Block a user