Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disconnect from a wifi direct group

I want to disconnect from a wifi direct group after establishing a connection. I just want to move out silently without interrupting other clients that are already in connection with the Group owner.

I use manager.Connect() method to establish a connection. But didnt see any methods to disconnect. Only other option i saw is manager.removeGroup(), but I guess this will remove the entire group and interrupt the existing network connection.

How can I do this properly?

Thanks

like image 466
Zach Avatar asked Nov 12 '22 20:11

Zach


1 Answers

The first parameter of the function removeGroup() is a channel. So I think if this is initiated by a client, only the channel between the client and group owner will be disconnected.

like image 162
Kan Avatar answered Nov 15 '22 10:11

Kan