[PATCH] P2P: p2p_group_remove should fail on non p2p interface

Johannes Berg johannes
Tue Jul 17 02:30:03 PDT 2012


On Mon, 2012-07-16 at 18:09 -0700, Michael Naumov wrote:
> @@ -4795,9 +4802,7 @@ int wpas_p2p_disconnect(struct wpa_supplicant *wpa_s)
>  		return -1;
>  
>  	wpa_s->removal_reason = P2P_GROUP_REMOVAL_REQUESTED;
> -	wpas_p2p_group_delete(wpa_s, 0);
> -
> -	return 0;
> +	return wpas_p2p_group_delete(wpa_s, 0);

Doesn't that leave the removal reason wrong/invalid/... when the removal
shouldn't go through?

johannes




More information about the Hostap mailing list