source: branches/backfire/package/mac80211/patches/800-b43-gpio-mask-module-option.patch @ 27431

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

mac80211: backport latest version from trunk as of r27395

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

    a b struct b43_wldev { 
    740740        bool qos_enabled;               /* TRUE, if QoS is used. */ 
    741741        bool hwcrypto_enabled;          /* TRUE, if HW crypto acceleration is enabled. */ 
    742742        bool use_pio;                   /* TRUE if next init should use PIO */ 
     743        int gpiomask;                   /* GPIO LED mask as a module parameter */ 
    743744 
    744745        /* PHY/Radio device. */ 
    745746        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 
    25752580                    & ~B43_MACCTL_GPOUTSMSK); 
    25762581 
    25772582        b43_write16(dev, B43_MMIO_GPIO_MASK, b43_read16(dev, B43_MMIO_GPIO_MASK) 
    2578                     | 0x000F); 
     2583                    | modparam_gpiomask); 
    25792584 
    25802585        mask = 0x0000001F; 
    2581         set = 0x0000000F; 
     2586        set = modparam_gpiomask; 
    25822587        if (dev->dev->chip_id == 0x4301) { 
    25832588                mask |= 0x0060; 
    25842589                set |= 0x0060; 
    static void b43_print_driverinfo(void) 
    51375142        feat_sdio = "S"; 
    51385143#endif 
    51395144        printk(KERN_INFO "Broadcom 43xx driver loaded " 
    5140                "[ Features: %s%s%s%s%s, Firmware-ID: " 
     5145               "[ Features: %s%s%s%s%s, GPIO LED Mask: 0x%04x, Firmware-ID: " 
    51415146               B43_SUPPORTED_FIRMWARE_ID " ]\n", 
    51425147               feat_pci, feat_pcmcia, feat_nphy, 
    5143                feat_leds, feat_sdio); 
     5148               feat_leds, feat_sdio, modparam_gpiomask); 
    51445149} 
    51455150 
    51465151static int __init b43_init(void) 
Note: See TracBrowser for help on using the repository browser.