D-Bus: Allow changing an interface bridge via D-Bus
D-Bus clients can call CreateInterface() once and use the resulting Interface object to connect multiple times to different networks. However, if the network interface gets added to a bridge, clients currently have to remove the Interface object and create a new one. Improve this by supporting the change of the BridgeIfname property of an existing Interface object. Signed-off-by: Beniamino Galvani <bgalvani@redhat.com>
This commit is contained in:
parent
48e4680dae
commit
1c58317f56
6 changed files with 105 additions and 1 deletions
|
@ -2807,6 +2807,11 @@ int wpa_tdls_init(struct wpa_sm *sm)
|
|||
if (sm == NULL)
|
||||
return -1;
|
||||
|
||||
if (sm->l2_tdls) {
|
||||
l2_packet_deinit(sm->l2_tdls);
|
||||
sm->l2_tdls = NULL;
|
||||
}
|
||||
|
||||
sm->l2_tdls = l2_packet_init(sm->bridge_ifname ? sm->bridge_ifname :
|
||||
sm->ifname,
|
||||
sm->own_addr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue