Skip to content

Commit

Permalink
mac80211: use proper sub_if_data on suspend path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Kicinski authored and John W. Linville committed Feb 27, 2012
1 parent 682dd04 commit 9d88c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 9d88c7f

Please sign in to comment.