ndis: Add debug support to disable RNDIS Multipacket Feature
authorBadhri Jagan Sridharan <Badhri@google.com>
Thu, 18 Sep 2014 17:48:48 +0000 (10:48 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:05 +0000 (13:52 -0800)
commitc3d7f0cdd24e3db82758cb5989e6e27a6ca270d1
treef281abcd92bab8e92c5249381ec78185065c752a
parentdebf5d6eacef1795d537c64992e8ffa6e7aec952
ndis: Add debug support to disable RNDIS Multipacket Feature

This change adds module param which allows to disable RNDIS
Multi-packet Feature (Aggregation support in Downlink path)
as this feature is enabled by default.

To disable use this param before moving to RNDIS Composition:
echo 1 > /sys/module/g_android/parameters/rndis_multipacket_dl_disable

Also counts errors as Rx errors if received RNDIS packets are
not following RNDIS message format as those packets are being
discarded.

Change-Id: I764430da78f2204af92e14bb279c11b24c7e4c67
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
drivers/usb/gadget/function/f_rndis.c
drivers/usb/gadget/function/u_ether.c