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

Commit 6fa7fc16 authored by Chetan C R's avatar Chetan C R
Browse files

usb: gadget: Clear string index for RMNET



String index for rmnet/QDSS is not cleared during unbind,
hence whenever rmnet/QDSS interface is used it won’t
request for string index instead use the previously
received index, which may conflict with other interface.

Change-Id: I94f357ae3271f8fc9b746e7bfca59a0487bbc777
Signed-off-by: default avatarChetan C R <quic_cchinnad@quicinc.com>
parent 62358d98
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -481,6 +481,8 @@ static void frmnet_unbind(struct usb_configuration *c, struct usb_function *f)
	if (dev->notify_req)
		frmnet_free_req(dev->notify, dev->notify_req);

	rmnet_string_defs[0].id = 0;
	dpl_string_defs[0].id = 0;
	c->cdev->gadget->bam2bam_func_enabled = false;
}