Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa4eba9b authored by Dov Levenglick's avatar Dov Levenglick
Browse files

usb: rndis: allow for cable disconnect in RNDIS



The change cancels the setting of ipa_supported to false
on cable disconnect. ipa_supported should only change its
setting during composition changes - i.e. bind and unbind

Change-Id: I5ad1ff560c51d46276cbc50e9c584ee72314b920
Signed-off-by: default avatarDov Levenglick <dovl@codeaurora.org>
parent 6d52439a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
 * Copyright (C) 2008 Nokia Corporation
 * Copyright (C) 2009 Samsung Electronics
 *			Author: Michal Nazarewicz (mina86@mina86.com)
 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2
@@ -792,8 +792,6 @@ static void rndis_qc_disable(struct usb_function *f)
	rndis_qc_bam_disconnect(rndis);
	if (rndis->xport != USB_GADGET_XPORT_BAM2BAM_IPA)
		gether_qc_disconnect_name(&rndis->port, "rndis0");
	else
		rndis_ipa_supported = false;

	if (rndis->xport == USB_GADGET_XPORT_BAM2BAM_IPA &&
			gadget_is_dwc3(cdev->gadget)) {