mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
USB: gadget: Disable RNDIS function by default if CONFIG_USB_ANDROID_RNDIS is set
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
committed by
Arve Hjønnevåg
parent
65eb4c8d6e
commit
cb75368573
@@ -826,6 +826,11 @@ int __init rndis_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN])
|
||||
rndis->port.func.setup = rndis_setup;
|
||||
rndis->port.func.disable = rndis_disable;
|
||||
|
||||
#ifdef CONFIG_USB_ANDROID_RNDIS
|
||||
/* start disabled */
|
||||
rndis->port.func.hidden = 1;
|
||||
#endif
|
||||
|
||||
status = usb_add_function(c, &rndis->port.func);
|
||||
if (status) {
|
||||
kfree(rndis);
|
||||
|
||||
Reference in New Issue
Block a user