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

Commit b3ab2100 authored by Vamsi Krishna Samavedam's avatar Vamsi Krishna Samavedam
Browse files

usb: gadget: Select RNDIS over ethernet as default class



Win7/Win10 host is using NDIS 6.0 driver for RNDIS over ethernet and
NDIS5.0 for RNDIS over wireless controller or active sync.
NDIS 6.0 is performing better than NDIS5 with respect to performance
and data stalls. Hence, by default use RNDIS over ethernet class for
gsi driver which loads NDIS6 driver on windows.

Change-Id: I52f7a91dcb89be6c5b01c3efaf791375a50237fe
Signed-off-by: default avatarVamsi Krishna Samavedam <vskrishn@codeaurora.org>
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 58f78dbf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2608,7 +2608,12 @@ static int gsi_bind(struct usb_configuration *c, struct usb_function *f)
		 * drivers published by usbif.
		 * Linux rndis host driver supports MISC_ACTIVE_SYNC and
		 * WIRELESS_CONTROLLER_REMOTE_NDIS as of now.
		 * Default to rndis over ethernet which loads NDIS6 drivers
		 * for windows7/windows10 to avoid data stall issues
		 */
		if (gsi->rndis_id == RNDIS_ID_UNKNOWN)
			gsi->rndis_id = MISC_RNDIS_OVER_ETHERNET;

		switch (gsi->rndis_id) {
		default:
			/* fall throug */