Am Donnerstag, 19. April 2007 14:07 schrieb Mark Glassberg:
> I installed a 2.6.21-rc7 kernel with USB_DEBUG=y and USB_NET_RNDIS_HOST=y.
> Unfortunately, my dsl modem/router is not yet installed.  Attached are the
> dmesg output, the detailed lsusb output, and the related section of the
> /proc/bus/usb/devices file.  The latter shows no driver for the device,
> but dmesg shows the device's option selected and rndis installed.  The
> cdc_ether problem noted in dmesg may be the key, but I do not know how to
> correct it.

It fails here:
        /* Microsoft ActiveSync based RNDIS devices lack the CDC descriptors,
         * so we'll hard-wire the interfaces and not check for descriptors.
         */
        if (is_activesync(&intf->cur_altsetting->desc) && !info->u) {
                info->control = usb_ifnum_to_if(dev->udev, 0);
                info->data = usb_ifnum_to_if(dev->udev, 1);
                if (!info->control || !info->data) {
                        dev_dbg(&intf->dev,
                                "activesync: master #0/%p slave #1/%p\n",
                                info->control,
                                info->data);
                        goto bad_desc;
                }

        } else if (!info->header || !info->u || (!rndis && !info->ether)) {
                dev_dbg(&intf->dev, "missing cdc %s%s%sdescriptor\n",
                        info->header ? "" : "header ",
                        info->u ? "" : "union ",
                        info->ether ? "" : "ether ");
                goto bad_desc;
        }

Change this:

static int is_activesync(struct usb_interface_descriptor *desc)
{
        return desc->bInterfaceClass == USB_CLASS_MISC
                && desc->bInterfaceSubClass == 1
                && desc->bInterfaceProtocol == 1;
}

to:

return 1;

        Regards
                Oliver
-- 
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
This signature is a legal requirement

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to