usb: gadget: Fix f_rmnet to maintain notifications after set_alt
This change fixes a corner case, in which two set_alt are being
called. When the second set_alt is called, the notification EP is
disabled, and the active notification is cancelled. But the actual
control packet is not dequeued from the response queue.
So in that case the control packet will not be sent to the host,
since it has no corresponding notification.
The solution is to re-add notification for every pending control
packet in the response queue.
CRs-Fixed: 361567
Change-Id: Id3a46de69556c98247e67fce8e5fd5c076088993
Signed-off-by: Amit Blay <ablay@codeaurora.org>
1 file changed