From 767a6400de3f6e709a6a453ea3c90422a316a598 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 6 Apr 2011 01:51:07 +0000 Subject: Attach mem mgmt fault handle if MPU is enabled git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3471 42af7a65-404d-4744-a932-0658087f49c3 --- misc/drivers/rtl8187x/rtl8187x.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'misc') diff --git a/misc/drivers/rtl8187x/rtl8187x.c b/misc/drivers/rtl8187x/rtl8187x.c index 7504008c7..7433f08f0 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. */ -- cgit v1.2.3