f71b3553c7
This adds a new configfs attribute named `use_ms_rndiscmp`. It is a boolean value that is used to select the class/subclass/protocol used by the RNDIS function interface association descriptor. By default, this is 0x02 (Comm), 0x06 (Ethernet), 0xff (None). When the use_ms_rndiscmp attribute is set to true, the values 0xef (Misc), 0x04 (RNDIS), 0x01 (Ethernet) will be used instead. This class/subclass/ protocol combination is 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>
15 lines
306 B
C
15 lines
306 B
C
/*
|
|
* USB Miscellaneous Device Class definitions
|
|
*
|
|
* Ref: http://www.usb.org/developers/defined_class/#BaseClassEFh
|
|
*/
|
|
|
|
#ifndef __UAPI_LINUX_USB_MISC_H
|
|
#define __UAPI_LINUX_USB_MISC_H
|
|
|
|
#define USB_MISC_SUBCLASS_RNDIS 0x04
|
|
|
|
#define USB_MISC_RNDIS_PROTO_ENET 0x01
|
|
|
|
#endif /* __UAPI_LINUX_USB_MISC_H */
|