mac80211: mesh: flush stations before beacons are stopped
authorMaital Hahn <maitalm@ti.com>
Wed, 13 Jul 2016 11:44:41 +0000 (14:44 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Aug 2016 06:45:15 +0000 (08:45 +0200)
commitc37a54ac37e7fbf8abe2b7b886ac5f1b3e8f8d29
treec86663ea535d7aec412e4456076f9c59cb4251a6
parent4e3f21bc7bfbdc4a348852e4da1540227e1b0171
mac80211: mesh: flush stations before beacons are stopped

Some drivers (e.g. wl18xx) expect that the last stage in the
de-initialization process will be stopping the beacons, similar to AP flow.
Update ieee80211_stop_mesh() flow accordingly.
As peers can be removed dynamically, this would not impact other drivers.

Tested also on Ralink RT3572 chipset.

Signed-off-by: Maital Hahn <maitalm@ti.com>
Signed-off-by: Yaniv Machani <yanivma@ti.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c