diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-06 01:51:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-06 01:51:07 +0000 |
commit | 767a6400de3f6e709a6a453ea3c90422a316a598 (patch) | |
tree | 174d0d75436a2dbf8b0e2381a7173c7bad7f9336 /misc | |
parent | 808d6faee2744a707579aec30bc34f60229acfc9 (diff) | |
download | px4-nuttx-767a6400de3f6e709a6a453ea3c90422a316a598.tar.gz px4-nuttx-767a6400de3f6e709a6a453ea3c90422a316a598.tar.bz2 px4-nuttx-767a6400de3f6e709a6a453ea3c90422a316a598.zip |
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
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/drivers/rtl8187x/rtl8187x.c | 25 |
1 files changed, 17 insertions, 8 deletions
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. */ |