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>
This commit is contained in:
committed by
Colin Cross
parent
0f63be2175
commit
0d511c4470
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user