summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-04-06 01:51:07 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-04-06 01:51:07 +0000
commit55540073dc3d5842e1f1e30d880682f0bb5ec11b (patch)
tree174d0d75436a2dbf8b0e2381a7173c7bad7f9336 /misc
parent89316d0ee9b59ebf92a6e72d18aaf0d3cda310f5 (diff)
Attach mem mgmt fault handle if MPU is enabled
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3471 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/drivers/rtl8187x/rtl8187x.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/misc/drivers/rtl8187x/rtl8187x.c b/misc/drivers/rtl8187x/rtl8187x.c
index 7504008c71..7433f08f0f 100755
--- a/misc/drivers/rtl8187x/rtl8187x.c
+++ b/misc/drivers/rtl8187x/rtl8187x.c
@@ -389,13 +389,22 @@ static int rtl8187x_netuninitialize(FAR struct rtl8187x_state_s *priv);
* used to associate the USB class driver to a connected USB device.
*/
-static const const struct usbhost_id_s g_id =
+static const const struct usbhost_id_s g_id[2] =
{
- USB_CLASS_VENDOR_SPEC, /* base */
- 0xff, /* subclass */
- 0xff, /* proto */
- CONFIG_USB_WLAN_VID, /* vid */
- CONFIG_USB_WLAN_PID /* pid */
+ {
+ USB_CLASS_VENDOR_SPEC, /* base */
+ 0xff, /* subclass */
+ 0xff, /* proto */
+ CONFIG_USB_WLAN_VID, /* vid */
+ CONFIG_USB_WLAN_PID /* pid */
+ },
+ {
+ 0, /* base */
+ 0, /* subclass */
+ 0, /* proto */
+ CONFIG_USB_WLAN_VID, /* vid */
+ CONFIG_USB_WLAN_PID /* pid */
+ }
};
/* This is the USB host wireless LAN class's registry entry */
@@ -404,8 +413,8 @@ static struct usbhost_registry_s g_wlan =
{
NULL, /* flink */
rtl8187x_create, /* create */
- 1, /* nids */
- &g_id /* id[] */
+ 2, /* nids */
+ g_id /* id[] */
};
/* This is a bitmap that is used to allocate device names /dev/wlana-z. */