mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 08:22:42 +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));
|
L_UINT_TO_PTR(ifindex));
|
||||||
if (!netdev) {
|
if (!netdev) {
|
||||||
netdev = l_new(struct netdev, 1);
|
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));
|
memcpy(netdev->name, ifname, sizeof(netdev->name));
|
||||||
|
Loading…
Reference in New Issue
Block a user