source: trunk/package/mac80211/patches/800-b43-gpio-mask-module-option.patch @ 27958

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

mac80211: update to 2011-08-10

File size: 1.8 KB
  • drivers/net/wireless/b43/b43.h

    a b struct b43_wldev { 
    746746        bool qos_enabled;               /* TRUE, if QoS is used. */ 
    747747        bool hwcrypto_enabled;          /* TRUE, if HW crypto acceleration is enabled. */ 
    748748        bool use_pio;                   /* TRUE if next init should use PIO */ 
     749        int gpiomask;                   /* GPIO LED mask as a module parameter */ 
    749750 
    750751        /* PHY/Radio device. */ 
    751752        struct b43_phy phy; 
  • drivers/net/wireless/b43/main.c

    a b MODULE_FIRMWARE("b43/ucode16_mimo.fw"); 
    7575MODULE_FIRMWARE("b43/ucode5.fw"); 
    7676MODULE_FIRMWARE("b43/ucode9.fw"); 
    7777 
     78static int modparam_gpiomask = 0x000F; 
     79module_param_named(gpiomask, modparam_gpiomask, int, 0444); 
     80MODULE_PARM_DESC(gpiomask, 
     81         "GPIO mask for LED control (default 0x000F)"); 
     82 
    7883static int modparam_bad_frames_preempt; 
    7984module_param_named(bad_frames_preempt, modparam_bad_frames_preempt, int, 0444); 
    8085MODULE_PARM_DESC(bad_frames_preempt, 
    static int b43_gpio_init(struct b43_wlde 
    26712676                    & ~B43_MACCTL_GPOUTSMSK); 
    26722677 
    26732678        b43_write16(dev, B43_MMIO_GPIO_MASK, b43_read16(dev, B43_MMIO_GPIO_MASK) 
    2674                     | 0x000F); 
     2679                    | modparam_gpiomask); 
    26752680 
    26762681        mask = 0x0000001F; 
    2677         set = 0x0000000F; 
     2682        set = modparam_gpiomask; 
    26782683        if (dev->dev->chip_id == 0x4301) { 
    26792684                mask |= 0x0060; 
    26802685                set |= 0x0060; 
    static void b43_print_driverinfo(void) 
    54415446        feat_sdio = "S"; 
    54425447#endif 
    54435448        printk(KERN_INFO "Broadcom 43xx driver loaded " 
    5444                "[ Features: %s%s%s%s%s, Firmware-ID: " 
     5449               "[ Features: %s%s%s%s%s, GPIO LED Mask: 0x%04x, Firmware-ID: " 
    54455450               B43_SUPPORTED_FIRMWARE_ID " ]\n", 
    54465451               feat_pci, feat_pcmcia, feat_nphy, 
    5447                feat_leds, feat_sdio); 
     5452               feat_leds, feat_sdio, modparam_gpiomask); 
    54485453} 
    54495454 
    54505455static int __init b43_init(void) 
Note: See TracBrowser for help on using the repository browser.