projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5fdde2
)
mac80211: fix error in station state transitions during reconfig
author
Meenakshi Venkataraman
<
[email protected]
>
Wed, 30 May 2012 09:39:33 +0000
(11:39 +0200)
committer
John W. Linville
<
[email protected]
>
Mon, 4 Jun 2012 19:24:56 +0000
(15:24 -0400)
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]
>
net/mac80211/util.c
patch
|
blob
|
history
diff --git
a/net/mac80211/util.c
b/net/mac80211/util.c
index a44c6807df01914a04c5675d1422d765260a8c29..8dd4712620ff53832a212a3d69791e13cd59905f 100644
(file)
--- 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));
}