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

Commit e842a075 authored by Jack Pham's avatar Jack Pham
Browse files

usb: gadget: rndis_qc: Enable WCEIS by default



The 'wceis' flag, which is settable in userspace, causes the RNDIS
function to be enumerated with an alternate Class/SubClass/Protocol
corresponding to the Windows "Remote NDIS based Internet Sharing"
device driver. In most cases, this is what we want, so that the
built-in Windows driver will bind to this function without
additional driver installation. Enable this parameter by default;
special cases can explicitly set this to 0.

Change-Id: Ief8b5f26a6b37c1b72bdc029601331d05be49b09
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent d81481d4
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1852,10 +1852,15 @@ static void rndis_function_cleanup(struct android_usb_function *f)
static int rndis_qc_function_init(struct android_usb_function *f,
					struct usb_composite_dev *cdev)
{
	f->config = kzalloc(sizeof(struct rndis_function_config), GFP_KERNEL);
	if (!f->config)
	struct rndis_function_config *rndis;

	rndis = kzalloc(sizeof(struct rndis_function_config), GFP_KERNEL);
	if (!rndis)
		return -ENOMEM;

	rndis->wceis = true;

	f->config = rndis;
	return rndis_qc_init();
}