diff options
| author | Mike Lockwood <lockwood@android.com> | 2010-03-10 17:05:03 -0500 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:38:02 -0800 |
| commit | 5a8743f3f9fc0bcaef3469e4ccc52515ff4d5c8a (patch) | |
| tree | 7b41827e615097138230e256f6713627f67762ec /include/linux/usb | |
| parent | e1c325bdd3e3c5782e0e91b8798e7f880d30b85b (diff) | |
USB: gadget: f_rndis: Add platform data for RNDIS vendor ID and MAC address.
This fixes a kernel panic in rndis.c when receiving the
OID_GEN_VENDOR_DESCRIPTION command.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/android_composite.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/android_composite.h b/include/linux/usb/android_composite.h index 328016813dd5..50889ba138b9 100644 --- a/include/linux/usb/android_composite.h +++ b/include/linux/usb/android_composite.h @@ -18,6 +18,7 @@ #define __LINUX_USB_ANDROID_H #include <linux/usb/composite.h> +#include <linux/if_ether.h> struct android_usb_function { struct list_head list; @@ -80,6 +81,13 @@ struct usb_mass_storage_platform_data { int nluns; }; +/* Platform data for USB ethernet driver. */ +struct usb_ether_platform_data { + u8 ethaddr[ETH_ALEN]; + u32 vendorID; + const char *vendorDescr; +}; + extern void android_usb_set_connected(int on); extern void android_register_function(struct android_usb_function *f); |
