summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorJakub Kicinski <kubakici@wp.pl>2012-02-23 02:17:48 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-02-27 14:06:40 -0500
commit9d88c7f6709aab0e4342d80fad6fb7d3f7efc7ff (patch)
treec9e46b2f5e9bc9c1661b2727f243e14e141a870a /net/mac80211
parent682dd04b37bc6b36356adda31e5435da8a246499 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
index 2b53a5348ac..ef8eba1d736 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));
}