]> Git Repo - linux.git/commit - net/mac80211/cfg.c
mac80211: check that ieee80211_set_power_mgmt only handles STA interfaces.
authorBenoit Papillault <[email protected]>
Fri, 15 Jan 2010 11:21:37 +0000 (12:21 +0100)
committerJohn W. Linville <[email protected]>
Fri, 15 Jan 2010 21:20:22 +0000 (16:20 -0500)
commite5de30c9bf4a39db9f54c4a373470ce65881ade0
tree9eaa6e67bdf770ccf6c98497f3a2dec2778fa4db
parent5f6120335c701ba07d5151206071f4d6ccaa684f
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: [email protected]
Signed-off-by: Benoit Papillault <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
net/mac80211/cfg.c
This page took 0.045542 seconds and 4 git commands to generate.