mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
client: Reorder interface creation ops
Add the newly created proxy objects into the queue before the interface specific initialization logic takes place. This way the new proxy objects can be used within the initialization procedures.
This commit is contained in:
parent
58737e02d5
commit
4fdb6bc9fa
@ -572,10 +572,10 @@ static void proxy_interface_create(const char *path,
|
||||
proxy->path = l_strdup(path);
|
||||
proxy->type = interface_type;
|
||||
|
||||
l_queue_push_tail(proxy_interfaces, proxy);
|
||||
|
||||
if (interface_type->ops && interface_type->ops->create)
|
||||
proxy->data = interface_type->ops->create();
|
||||
|
||||
l_queue_push_tail(proxy_interfaces, proxy);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user