diff options
author | Jakub Kicinski <kubakici@wp.pl> | 2012-02-23 02:17:48 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-27 20:06:40 +0100 |
commit | 9d88c7f6709aab0e4342d80fad6fb7d3f7efc7ff (patch) | |
tree | c9e46b2f5e9bc9c1661b2727f243e14e141a870a /net/mac80211 | |
parent | ath9k: Cleanup mci.c (diff) | |
download | linux-9d88c7f6709aab0e4342d80fad6fb7d3f7efc7ff.tar.xz linux-9d88c7f6709aab0e4342d80fad6fb7d3f7efc7ff.zip |
mac80211: use proper sub_if_data on suspend path
Use interface data from sta instead of invalid pointer
to list head in calls to drv_sta_state.
Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index 2b53a5348ace..ef8eba1d736d 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c @@ -102,7 +102,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) state = sta->sta_state; for (; state > IEEE80211_STA_NOTEXIST; state--) - WARN_ON(drv_sta_state(local, sdata, sta, + WARN_ON(drv_sta_state(local, sta->sdata, sta, state, state - 1)); } |