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

Commit 05c856f1 authored by Mayank Rana's avatar Mayank Rana Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: rndis: Add packet filter handling for hw accelerated path



Call flow control API when RNDIS packet filter control message is
received. This allows to call the registered flow control call back
from rndis clients supporting hw accelerated path.

CRs-Fixed: 1013824
Change-Id: I87793e31d4db10acf1103127a2d1ad942d253c67
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent e222d4df
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -522,14 +522,11 @@ static int gen_ndis_set_resp(struct rndis_params *params, u32 OID,
		 */
		retval = 0;
		if (*params->filter) {
			params->state = RNDIS_DATA_INITIALIZED;
			netif_carrier_on(params->dev);
			if (netif_running(params->dev))
				netif_wake_queue(params->dev);
			pr_debug("%s(): disable flow control\n", __func__);
			rndis_flow_control(params, false);
		} else {
			params->state = RNDIS_INITIALIZED;
			netif_carrier_off(params->dev);
			netif_stop_queue(params->dev);
			pr_err("%s(): enable flow control\n", __func__);
			rndis_flow_control(params, true);
		}
		break;