aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2018-04-22 16:08:12 +1000
committerDean Camera <dean@fourwalledcubicle.com>2018-04-22 16:08:12 +1000
commite9d9fcde04411001ba8dff07b512fdc46ce13e47 (patch)
tree41d1c6919e49dd49c6fb1426d7ff6a6aa708643b /Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
parent086975bd9442e86693fce2d16f003c4ad170cdac (diff)
downloadlufa-e9d9fcde04411001ba8dff07b512fdc46ce13e47.tar.gz
lufa-e9d9fcde04411001ba8dff07b512fdc46ce13e47.tar.bz2
lufa-e9d9fcde04411001ba8dff07b512fdc46ce13e47.zip
Add MS OS Compatibility descriptors to RNDIS demos for driverless install on Windows.
Diffstat (limited to 'Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c')
-rw-r--r--Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
index f963d48e1..cfe90ccd7 100644
--- a/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
+++ b/Demos/Device/ClassDriver/RNDISEthernet/RNDISEthernet.c
@@ -174,6 +174,9 @@ void EVENT_USB_Device_ConfigurationChanged(void)
/** Event handler for the library USB Control Request reception event. */
void EVENT_USB_Device_ControlRequest(void)
{
+ /* Send MS OS Compatibility descriptor if requested by the host. */
+ CheckIfMSCompatibilityDescriptorRequest();
+
RNDIS_Device_ProcessControlRequest(&Ethernet_RNDIS_Interface);
}