Commit 2d4fb637 authored by Amit Blay's avatar Amit Blay
Browse files

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: default avatarAmit Blay <ablay@codeaurora.org>
parent 9d413b90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment