aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2007-09-27 09:10:44 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:54:20 -0400
commit47f0c502209056da728e6a306a43d5e19a37f4fa (patch)
treedb62b1f47c0c37f8c5e7943a1410737721803614 /net/mac80211/ieee80211_sta.c
parentddd3d2be85e3207c47f2b3c431723e6c758b4b0d (diff)
[MAC80211]: Add association LED trigger
Many devices have LEDs to indicate the link status. Export this functionality to drivers. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r--net/mac80211/ieee80211_sta.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index bd9d7aa74083..1641e8fe44b7 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -31,6 +31,7 @@
31#include <net/mac80211.h> 31#include <net/mac80211.h>
32#include "ieee80211_i.h" 32#include "ieee80211_i.h"
33#include "ieee80211_rate.h" 33#include "ieee80211_rate.h"
34#include "ieee80211_led.h"
34 35
35#define IEEE80211_AUTH_TIMEOUT (HZ / 5) 36#define IEEE80211_AUTH_TIMEOUT (HZ / 5)
36#define IEEE80211_AUTH_MAX_TRIES 3 37#define IEEE80211_AUTH_MAX_TRIES 3
@@ -408,8 +409,9 @@ static void ieee80211_sta_send_associnfo(struct net_device *dev,
408 409
409static void ieee80211_set_associated(struct net_device *dev, 410static void ieee80211_set_associated(struct net_device *dev,
410 struct ieee80211_if_sta *ifsta, 411 struct ieee80211_if_sta *ifsta,
411 unsigned int assoc) 412 bool assoc)
412{ 413{
414 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
413 union iwreq_data wrqu; 415 union iwreq_data wrqu;
414 416
415 if (!!(ifsta->flags & IEEE80211_STA_ASSOCIATED) == assoc) 417 if (!!(ifsta->flags & IEEE80211_STA_ASSOCIATED) == assoc)
@@ -447,6 +449,7 @@ static void ieee80211_set_associated(struct net_device *dev,
447 wrqu.ap_addr.sa_family = ARPHRD_ETHER; 449 wrqu.ap_addr.sa_family = ARPHRD_ETHER;
448 wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL); 450 wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
449 ifsta->last_probe = jiffies; 451 ifsta->last_probe = jiffies;
452 ieee80211_led_assoc(local, assoc);
450} 453}
451 454
452static void ieee80211_set_disassoc(struct net_device *dev, 455static void ieee80211_set_disassoc(struct net_device *dev,