source: trunk/package/sierra-directip/patches/100-sierra_net_endian.patch @ 28635

Last change on this file since 28635 was 28635, checked in by nbd, 5 years ago

add sierra-directip, a package based on the latest DirectIP capable sierra wireless drivers + some fixes

File size: 1.1 KB
  • sierra_net.c

    a b static int sierra_net_bind(struct usbnet 
    840840        init_timer(&priv->sync_timer); 
    841841        /* verify fw attributes */ 
    842842        status = sierra_net_get_fw_attr(dev, &fwattr); 
    843         dev_dbg(&dev->udev->dev, "Fw attr: %x\n", fwattr);  
    844         if (status == sizeof(fwattr) && (fwattr & SWI_GET_FW_ATTR_APM)) { 
     843        dev_dbg(&dev->udev->dev, "Fw attr: %x\n", cpu_to_le16(fwattr)); 
     844        if (status == sizeof(fwattr) && (cpu_to_le16(fwattr) & SWI_GET_FW_ATTR_APM)) { 
    845845/*******************************************************************************  
    846846 * If you want the default /sys/bus/usb/devices/.../.../power/level to be forced 
    847847 * to auto, the following needs to be compiled in. 
    static int sierra_net_bind(struct usbnet 
    856856                usb_disable_autosuspend(dev->udev); 
    857857        } 
    858858        /* test whether firmware supports DHCP */ 
    859         if (!(status == sizeof(fwattr) && (fwattr & SWI_GET_FW_ATTR_MASK))) { 
     859        if (!(status == sizeof(fwattr) && (cpu_to_le16(fwattr) & SWI_GET_FW_ATTR_MASK))) { 
    860860                /* found incompatible firmware version */ 
    861861                dev_err(&dev->udev->dev, "Incompatible driver and firmware" 
    862862                        " versions\n"); 
Note: See TracBrowser for help on using the repository browser.