P2P: GO: Disconnect from wpa_cli does not remove the dynamic interface
Jouni Malinen
j
Fri Mar 27 03:52:47 PDT 2015
On Fri, Mar 27, 2015 at 02:55:05PM +0530, Krishna Chaitanya wrote:
> We are using a dynamic interface for P2P operations with a
> p2p_group_idle of 1 so that the interface gets removed immediately
> after the disconnection.
>
> After forming a group, if we initiate disconnect from the peer the
> interface gets removed properly through ap_free_stas.
>
> But instead if we use "disconnect" from wpa_cli, we see that the peer
> gets disconnected but the interface is not removed because in
> wpa_supplicant_ap_deinit we are removing the p2p group and then as a
> part of hostapd_interface_deinit we try to call ap_free_stas, but as
> p2p->group is NULL the idle_update is never called.
>
> So what is the best way to handle this?
"P2P_GROUP_REMOVE <ifname>" is the correct way of terminating a P2P
group. "DISCONNECT" has very different meaning and should not be used if
you are terminating the group.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list