]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mac80211: allow disable power save in mesh"
authorBob Copeland <me@bobcopeland.com>
Tue, 29 Oct 2013 22:11:59 +0000 (18:11 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 15:50:00 +0000 (16:50 +0100)
commit4823196b8c41fd10c3978b04f7789c5442b65e8a
tree2e2dc56a96b43a55db998382f5e56facf2d44032
parent226f6642dd1a33abc20ca589ee8283667be91bb0
Revert "mac80211: allow disable power save in mesh"

This reverts commit ca44b850efca21c6b8249d97a5424d3dede27871.

The aformentioned commit added a check to allow
'iw wlan0 set power_save off' to work for mesh interfaces.

However, this is problematic because it also allows
'iw wlan0 set power_save on', which will crash in short order
because all of the subsequent code manipulates sdata->u.mgd.

The power-saving states for mesh interfaces can be manipulated
through the mesh config, e.g:
'iw wlan0 set mesh_param mesh_power_save=active' (which,
despite the name, actualy disables power saving since the
setting refers to the type of sleep the interface undergoes).

Cc: stable@vger.kernel.org
Fixes: ca44b850efca ("mac80211: allow disable power save in mesh")
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c