diff -urN hcfusbmodem-1.06powerpcfull/modules/GPL/oscompat.h hcfusbmodem-1.06powerpcfull-USB_byteorder/modules/GPL/oscompat.h --- hcfusbmodem-1.06powerpcfull/modules/GPL/oscompat.h 2005-06-20 15:18:46.000000000 -0400 +++ hcfusbmodem-1.06powerpcfull-USB_byteorder/modules/GPL/oscompat.h 2005-08-16 13:09:36.000000000 -0400 @@ -89,6 +89,7 @@ #include #include #include +#include #if LINUX_VERSION_CODE == KERNEL_VERSION(2,4,9) /* get rid of non-standard min/max macros */ @@ -543,4 +544,10 @@ #define PCI_SLOT_NAME(x) (x)->dev.bus_id #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) +#define USB_BYTEORDER16(x) (__cpu_to_le16(x)) +#else +#define USB_BYTEORDER16(x) (x) +#endif + #endif /* __OSCOMPAT_H */ diff -urN hcfusbmodem-1.06powerpcfull/modules/cnxthwusb_common.c hcfusbmodem-1.06powerpcfull-USB_byteorder/modules/cnxthwusb_common.c --- hcfusbmodem-1.06powerpcfull/modules/cnxthwusb_common.c 2004-12-14 02:50:07.000000000 -0500 +++ hcfusbmodem-1.06powerpcfull-USB_byteorder/modules/cnxthwusb_common.c 2005-08-16 11:59:22.000000000 -0400 @@ -79,10 +79,10 @@ dbg("%s: pUsbDevice=%p ifnum=%d id=%p bConfigurationValue=%d", __FUNCTION__, pUsbDevice, ifnum, id, pUsbDevice->config[0].bConfigurationValue); - if (((pUsbDevice->descriptor.idVendor != USB_AAPL_VENDOR_ID) && - (pUsbDevice->descriptor.idVendor != USB_CNXT_VENDOR_ID)) || - ((pUsbDevice->descriptor.idProduct != USB_AAPL_PRODUCT_ID) && - (pUsbDevice->descriptor.idProduct != USB_CNXT_PRODUCT_ID))) { + if (((pUsbDevice->descriptor.idVendor != USB_BYTEORDER16(USB_AAPL_VENDOR_ID)) && + (pUsbDevice->descriptor.idVendor != USB_BYTEORDER16(USB_CNXT_VENDOR_ID))) || + ((pUsbDevice->descriptor.idProduct != USB_BYTEORDER16(USB_AAPL_PRODUCT_ID)) && + (pUsbDevice->descriptor.idProduct != USB_BYTEORDER16(USB_CNXT_PRODUCT_ID)))) { err("Not the one we are interested about"); goto exit; }