mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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: Hemant Kumar <hemantk@codeaurora.org> Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
parent
8d0058d89c
commit
c5c5b41399
1 changed files with 4 additions and 7 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue