From b1fa07f3925d73cd6f9fbd7555ad21fb19183e27 Mon Sep 17 00:00:00 2001
From: "sc943313837@gmail.com" <sc943313837@gmail.com>
Date: Mon, 31 Dec 2012 15:39:52 +0000
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0RNDIS?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2579 bbd45198-f89e-11dd-88c7-29a3b14d5316
---
 components/drivers/usb/usbdevice/core/usbdevice.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/components/drivers/usb/usbdevice/core/usbdevice.c b/components/drivers/usb/usbdevice/core/usbdevice.c
index fb7813eeed..42e8664738 100644
--- a/components/drivers/usb/usbdevice/core/usbdevice.c
+++ b/components/drivers/usb/usbdevice/core/usbdevice.c
@@ -88,6 +88,13 @@ rt_err_t rt_usb_device_init(const char* udc_name)
     /* add the class to the configuration */
     rt_usbd_config_add_class(cfg, cls);
 #endif
+#ifdef RT_USB_DEVICE_RNDIS
+    /* create a rndis class object */
+    cls = rt_usbd_class_rndis_create(udevice);
+
+    /* add the class to the configuration */
+    rt_usbd_config_add_class(cfg, cls);
+#endif
 
     /* set device descriptor to the device */
 #ifdef RT_USB_DEVICE_COMPOSITE