diff options
author | Meenakshi Venkataraman <[email protected]> | 2012-05-30 11:39:33 +0200 |
---|---|---|
committer | John W. Linville <[email protected]> | 2012-06-04 15:24:56 -0400 |
commit | bd34ab62a3297bd7685da11b0cbe05ae4cd8b02c (patch) | |
tree | 626060c15a9147c1988a3df74b74859acd1deaf4 | |
parent | a5fdde28b4f5fb756032e7ad2c6fcdcffde20958 (diff) |
mac80211: fix error in station state transitions during reconfig
As part of hardware reconfig mac80211 tries
to restore the station state to its values
before the hardware reconfig, but it only
goes to the last-state - 1. Fix this
off-by-one error.
Cc: [email protected] [3.4]
Signed-off-by: Meenakshi Venkataraman <[email protected]>
Reviewed-by: Emmanuel Grumbach <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
-rw-r--r-- | net/mac80211/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index a44c6807df01..8dd4712620ff 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1271,7 +1271,7 @@ int ieee80211_reconfig(struct ieee80211_local *local) enum ieee80211_sta_state state; for (state = IEEE80211_STA_NOTEXIST; - state < sta->sta_state - 1; state++) + state < sta->sta_state; state++) WARN_ON(drv_sta_state(local, sta->sdata, sta, state, state + 1)); } |