mac80211: avoid handling of SMPS for mesh
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Tue, 22 Apr 2014 10:19:25 +0000 (18:19 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Apr 2014 14:38:42 +0000 (16:38 +0200)
The patch "mac80211: implement SMPS for AP" has caused kernel
oops at mesh STA if the peer mesh STA operates in sleep mode
and then becomes active mode. It can be easily reproduced by
setting the following commands at peer mesh STA:

iw mesh0 station set aa:bb:cc:dd:ee:ff mesh_power_mode deep
iw mesh0 station set aa:bb:cc:dd:ee:ff mesh_power_mode active

Kernel oops will happen at mesh STA aa:bb:cc:dd:ee:ff.

Fix this by avoiding SMPS for mesh mode.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c

Simple merge