name sercomm-based ar7 images (dg834/compatible) .img instead of .bin, because the...
[openwrt.git] / target / linux / package / ieee80211-dscape / src / ieee80211_led.c
1 /*
2 * Copyright 2002-2004, Instant802 Networks, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9 #include <linux/config.h>
10 #include <linux/netdevice.h>
11 #include <linux/types.h>
12
13 #ifdef CONFIG_OAP_LEDS_WLAN
14 extern void leds_wlan_set(int unit, int tx, int state);
15 #endif
16
17 void ieee80211_rx_led(int state, struct net_device *dev) {
18 #ifdef CONFIG_OAP_LEDS_WLAN
19 static unsigned int count = 0;
20
21 if (state == 2) {
22 leds_wlan_set(0, 0, (++count) & 1);
23 }
24 #endif
25 }
26
27 void ieee80211_tx_led(int state, struct net_device *dev) {
28 #ifdef CONFIG_OAP_LEDS_WLAN
29 leds_wlan_set(0, 1, state);
30 #endif
31 }
32
This page took 0.044069 seconds and 5 git commands to generate.