From: Benoit Papillault Date: Fri, 15 Jan 2010 11:21:37 +0000 (+0100) Subject: mac80211: check that ieee80211_set_power_mgmt only handles STA interfaces. X-Git-Tag: v2.6.33-rc6~29^2~25^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5de30c9bf4a39db9f54c4a373470ce65881ade0;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed