42 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
44 #include <linux/pci.h>
47 #define ATH_SDEVICE(subv, subd) \
48 .vendor = PCI_ANY_ID, .device = PCI_ANY_ID, \
49 .subvendor = (subv), .subdevice = (subd)
51 #define ATH_LED(pin, polarity) .driver_data = (((pin) << 8) | (polarity))
52 #define ATH_PIN(data) ((data) >> 8)
53 #define ATH_POLARITY(data) ((data) & 0xff)
122 ath5k_led_on(led->
ah);
135 led->
led_dev.brightness_set = ath5k_led_brightness_set;
139 ATH5K_WARN(ah,
"could not register LED %s\n", name);
146 ath5k_unregister_led(
struct ath5k_led *led)
157 ath5k_unregister_led(&ah->
rx_led);
158 ath5k_unregister_led(&ah->
tx_led);
165 #ifndef CONFIG_ATHEROS_AR231X
174 #ifdef CONFIG_ATHEROS_AR231X
190 snprintf(name,
sizeof(name),
"ath5k-%s::rx", wiphy_name(hw->
wiphy));
191 ret = ath5k_register_led(ah, &ah->
rx_led, name,
192 ieee80211_get_rx_led_name(hw));
196 snprintf(name,
sizeof(name),
"ath5k-%s::tx", wiphy_name(hw->
wiphy));
197 ret = ath5k_register_led(ah, &ah->
tx_led, name,
198 ieee80211_get_tx_led_name(hw));