Commit 3f8f4a18 authored by Giridhar Pemmasani's avatar Giridhar Pemmasani Committed by Greg Kroah-Hartman

[PATCH] usbcore: Fix broken RNDIS config selection

RNDIS devices don't get configured owing to a typo in
choose_configuration().  This patch from Giridhar Pemmasani fixes the
typo.

From: Giridhar Pemmasani <giri@lmc.cs.sunysb.edu>
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1fbe75e1
...@@ -1241,7 +1241,7 @@ static int choose_configuration(struct usb_device *udev) ...@@ -1241,7 +1241,7 @@ static int choose_configuration(struct usb_device *udev)
&& desc->bInterfaceClass == USB_CLASS_COMM && desc->bInterfaceClass == USB_CLASS_COMM
&& desc->bInterfaceSubClass == 2 && desc->bInterfaceSubClass == 2
&& desc->bInterfaceProtocol == 0xff) { && desc->bInterfaceProtocol == 0xff) {
#ifndef CONFIG_USB_NET_RNDIS #ifndef CONFIG_USB_NET_RNDIS_HOST
continue; continue;
#else #else
best = c; best = c;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment