OSDN Git Service

usb: gadget: add RNDIS configfs options for class/subclass/protocol
authorDavid Lechner <david@lechnology.com>
Sun, 30 Jul 2017 01:12:57 +0000 (20:12 -0500)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 11:18:56 +0000 (14:18 +0300)
commit73517cf49bd449122b615d2b7a6bb835f02252e5
treea0bf600345659bbe2de496690e3411430ca77757
parent6cea1449f6926162432e7d62c02ab7a4166c8c25
usb: gadget: add RNDIS configfs options for class/subclass/protocol

This adds 3 new options to the RNDIS gadget function configs. It allows
overriding the default USB interface class/subclass/protocol.

The motivation for this is that if you set the values to "ef" (Misc),
"04" (RNDIS), "01" (Ethernet) respectively, then the device will be
recognized by the rndiscmp.inf file in Windows Vista and newer and will
cause Windows to load the correct RNDIS driver without the need for a
custom (signed) .inf file.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Documentation/ABI/testing/configfs-usb-gadget-rndis
drivers/usb/gadget/function/f_rndis.c
drivers/usb/gadget/function/u_ether_configfs.h
drivers/usb/gadget/function/u_rndis.h