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

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

mac80211: update to wireless-testing 2011-09-14

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

    a b struct b43_wldev { 
    753753        bool qos_enabled;               /* TRUE, if QoS is used. */ 
    754754        bool hwcrypto_enabled;          /* TRUE, if HW crypto acceleration is enabled. */ 
    755755        bool use_pio;                   /* TRUE if next init should use PIO */ 
     756        int gpiomask;                   /* GPIO LED mask as a module parameter */ 
    756757 
    757758        /* PHY/Radio device. */ 
    758759        struct b43_phy phy; 
  • drivers/net/wireless/b43/main.c

    a b MODULE_FIRMWARE("b43/ucode16_mimo.fw"); 
    7676MODULE_FIRMWARE("b43/ucode5.fw"); 
    7777MODULE_FIRMWARE("b43/ucode9.fw"); 
    7878 
     79static int modparam_gpiomask = 0x000F; 
     80module_param_named(gpiomask, modparam_gpiomask, int, 0444); 
     81MODULE_PARM_DESC(gpiomask, 
     82         "GPIO mask for LED control (default 0x000F)"); 
     83 
    7984static int modparam_bad_frames_preempt; 
    8085module_param_named(bad_frames_preempt, modparam_bad_frames_preempt, int, 0444); 
    8186MODULE_PARM_DESC(bad_frames_preempt, 
    static int b43_gpio_init(struct b43_wlde 
    26782683                    & ~B43_MACCTL_GPOUTSMSK); 
    26792684 
    26802685        b43_write16(dev, B43_MMIO_GPIO_MASK, b43_read16(dev, B43_MMIO_GPIO_MASK) 
    2681                     | 0x000F); 
     2686                    | modparam_gpiomask); 
    26822687 
    26832688        mask = 0x0000001F; 
    2684         set = 0x0000000F; 
     2689        set = modparam_gpiomask; 
    26852690        if (dev->dev->chip_id == 0x4301) { 
    26862691                mask |= 0x0060; 
    26872692                set |= 0x0060; 
Note: See TracBrowser for help on using the repository browser.