diff options
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 5 |
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 | ||
409 | static void ieee80211_set_associated(struct net_device *dev, | 410 | static 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 | ||
452 | static void ieee80211_set_disassoc(struct net_device *dev, | 455 | static void ieee80211_set_disassoc(struct net_device *dev, |