Changeset 11898


Ignore:
Timestamp:
2008-07-21T22:36:16+02:00 (10 years ago)
Author:
thepeople
Message:

This series of patches closes the support gap on one of the explicitly
supported platforms (WRT54G3G) by adding direct support for the Sierra
Wireless 3G modems.
Signed-off-by: RB <aoz.syn@…>

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/comgt/files/3g.sh

    r10774 r11898  
    4040         
    4141        config_get device "$config" device 
     42        config_get maxwait "$config" maxwait 
     43        maxwait=${maxwait:-20} 
     44        while [ ! -e "$device" -a $maxwait -gt 0 ];do # wait for driver loading to catch up 
     45                maxwait=$(($maxwait - 1)) 
     46                sleep 1 
     47        done 
    4248 
    4349        for module in slhc ppp_generic ppp_async; do 
     
    4551        done 
    4652 
    47         config_get apn "$cfg" apn 
    48         config_get service "$cfg" service 
    49         config_get pincode "$cfg" pincode 
    50         config_get mtu "$cfg" mtu 
     53        config_get apn "$config" apn 
     54        config_get service "$config" service 
     55        config_get pincode "$config" pincode 
     56        config_get mtu "$config" mtu 
    5157 
    5258        set_3g_led 1 0 1 
     
    7581                 
    7682                PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || { 
    77                         echo "$cfg(3g): Failed to set the PIN code." 
     83                        echo "$config(3g): Failed to set the PIN code." 
    7884                        set_3g_led 0 0 0 
    7985                        return 1 
  • trunk/package/kernel/modules/usb.mk

    r11549 r11898  
    362362 
    363363define KernelPackage/usb-serial-sierrawireless 
    364   $(call usbdep,kmod-usb-serial @LINUX_2_6) 
     364  $(call usbdep,kmod-usb-serial) 
    365365  TITLE:=Support for Sierra Wireless devices 
    366366  KCONFIG:=CONFIG_USB_SERIAL_SIERRAWIRELESS 
  • trunk/target/linux/generic-2.4/patches/802-usb_serial_3g_cards.patch

    r11213 r11898  
    88  
    99-static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */ 
    10 +static struct usb_device_id generic_device_ids[10]; /* Initially all zeroes. */ 
     10+static struct usb_device_id generic_device_ids[9]; /* Initially all zeroes. */ 
    1111  
    1212 /* All of the device info needed for the Generic Serial Converter */ 
    1313 static struct usb_serial_device_type generic_device = { 
    14 @@ -1836,6 +1836,34 @@ static int __init usb_serial_init(void) 
     14@@ -1836,6 +1836,30 @@ static int __init usb_serial_init(void) 
    1515        generic_device_ids[0].idVendor = vendor; 
    1616        generic_device_ids[0].idProduct = product; 
     
    3232+       generic_device_ids[4].idProduct = 0x0112; 
    3333+       generic_device_ids[4].match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT; 
    34 +       /* Sierra Wireless AirCard 875 */ 
    35 +       generic_device_ids[5].idVendor = 0x1199; 
    36 +       generic_device_ids[5].idProduct = 0x6820; 
    37 +       generic_device_ids[5].match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT; 
    3834+       /* Huawei E600 */ 
    3935+       generic_device_ids[6].idVendor = 0x12d1; 
Note: See TracChangeset for help on using the changeset viewer.