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

Last change on this file since 24655 was 24655, checked in by nbd, 6 years ago

mac80211: update to wireless-testing 2010-12-16

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

    a b struct b43_wldev { 
    718718        bool qos_enabled;               /* TRUE, if QoS is used. */ 
    719719        bool hwcrypto_enabled;          /* TRUE, if HW crypto acceleration is enabled. */ 
    720720        bool use_pio;                   /* TRUE if next init should use PIO */ 
     721        int gpiomask;                   /* GPIO LED mask as a module parameter */ 
    721722 
    722723        /* PHY/Radio device. */ 
    723724        struct b43_phy phy; 
  • drivers/net/wireless/b43/main.c

    a b MODULE_FIRMWARE("b43/ucode15.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 
    25362541                    & ~B43_MACCTL_GPOUTSMSK); 
    25372542 
    25382543        b43_write16(dev, B43_MMIO_GPIO_MASK, b43_read16(dev, B43_MMIO_GPIO_MASK) 
    2539                     | 0x000F); 
     2544                    | modparam_gpiomask); 
    25402545 
    25412546        mask = 0x0000001F; 
    2542         set = 0x0000000F; 
     2547        set = modparam_gpiomask; 
    25432548        if (dev->dev->bus->chip_id == 0x4301) { 
    25442549                mask |= 0x0060; 
    25452550                set |= 0x0060; 
    static void b43_print_driverinfo(void) 
    50965101        feat_sdio = "S"; 
    50975102#endif 
    50985103        printk(KERN_INFO "Broadcom 43xx driver loaded " 
    5099                "[ Features: %s%s%s%s%s, Firmware-ID: " 
     5104               "[ Features: %s%s%s%s%s, GPIO LED Mask: 0x%04x, Firmware-ID: " 
    51005105               B43_SUPPORTED_FIRMWARE_ID " ]\n", 
    51015106               feat_pci, feat_pcmcia, feat_nphy, 
    5102                feat_leds, feat_sdio); 
     5107               feat_leds, feat_sdio, modparam_gpiomask); 
    51035108} 
    51045109 
    51055110static int __init b43_init(void) 
Note: See TracBrowser for help on using the repository browser.