Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
net
/
wireless
/
ath
/
ath9k
/
main.c
diff --git
a/kernel/drivers/net/wireless/ath/ath9k/main.c
b/kernel/drivers/net/wireless/ath/ath9k/main.c
index
d184e68
..
8c5d2cf
100644
(file)
--- a/
kernel/drivers/net/wireless/ath/ath9k/main.c
+++ b/
kernel/drivers/net/wireless/ath/ath9k/main.c
@@
-1550,13
+1550,13
@@
static int ath9k_sta_state(struct ieee80211_hw *hw,
struct ath_common *common = ath9k_hw_common(sc->sc_ah);
int ret = 0;
struct ath_common *common = ath9k_hw_common(sc->sc_ah);
int ret = 0;
- if (old_state == IEEE80211_STA_
AUTH
&&
- new_state == IEEE80211_STA_
ASSOC
) {
+ if (old_state == IEEE80211_STA_
NOTEXIST
&&
+ new_state == IEEE80211_STA_
NONE
) {
ret = ath9k_sta_add(hw, vif, sta);
ath_dbg(common, CONFIG,
"Add station: %pM\n", sta->addr);
ret = ath9k_sta_add(hw, vif, sta);
ath_dbg(common, CONFIG,
"Add station: %pM\n", sta->addr);
- } else if (old_state == IEEE80211_STA_
ASSOC
&&
- new_state == IEEE80211_STA_
AUTH
) {
+ } else if (old_state == IEEE80211_STA_
NONE
&&
+ new_state == IEEE80211_STA_
NOTEXIST
) {
ret = ath9k_sta_remove(hw, vif, sta);
ath_dbg(common, CONFIG,
"Remove station: %pM\n", sta->addr);
ret = ath9k_sta_remove(hw, vif, sta);
ath_dbg(common, CONFIG,
"Remove station: %pM\n", sta->addr);