commit | e5de30c9bf4a39db9f54c4a373470ce65881ade0 | [log] [tgz] |
---|---|---|
author | Benoit Papillault <benoit.papillault@free.fr> | Fri Jan 15 12:21:37 2010 +0100 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Jan 15 16:20:22 2010 -0500 |
tree | 9eaa6e67bdf770ccf6c98497f3a2dec2778fa4db | |
parent | 5f6120335c701ba07d5151206071f4d6ccaa684f [diff] |
mac80211: check that ieee80211_set_power_mgmt only handles STA interfaces. ieee80211_set_power_mgmt is meant for STA interfaces only. Moreover, since sdata->u.mgd.mtx is only initialized for STA interfaces, using this code for any other type of interface (like creating a monitor interface) will result in a oops. Cc: stable@kernel.org Signed-off-by: Benoit Papillault <benoit.papillault@free.fr> Signed-off-by: John W. Linville <linville@tuxdriver.com>