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

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

b43: merge ad-hoc beacon fix

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 
    26792684                    & ~B43_MACCTL_GPOUTSMSK); 
    26802685 
    26812686        b43_write16(dev, B43_MMIO_GPIO_MASK, b43_read16(dev, B43_MMIO_GPIO_MASK) 
    2682                     | 0x000F); 
     2687                    | modparam_gpiomask); 
    26832688 
    26842689        mask = 0x0000001F; 
    2685         set = 0x0000000F; 
     2690        set = modparam_gpiomask; 
    26862691        if (dev->dev->chip_id == 0x4301) { 
    26872692                mask |= 0x0060; 
    26882693                set |= 0x0060; 
Note: See TracBrowser for help on using the repository browser.