]> rtime.felk.cvut.cz Git - linux-imx.git/commit
mac80211: fix unnecessary beacon update after peering status change
authorMarco Porsch <marco.porsch@etit.tu-chemnitz.de>
Wed, 8 Aug 2012 05:58:43 +0000 (07:58 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Aug 2012 19:28:34 +0000 (15:28 -0400)
commitdf32381896f5f0c78a371df2e49ab7c776b1a5ba
treed0a5cd8f8a7a6bddfab28c4adc735a65c7b3e696
parentfaa97bd4a43ac69a55029e3b07708bdff0959c07
mac80211: fix unnecessary beacon update after peering status change

ieee80211_bss_info_change_notify is called everytime a peer link is established
or closed, because the accepting_plinks flag in the meshconf IE *might* have changed.

With this patch the corresponding functions return the BSS_CHANGED_BEACON flag when a beacon update is necessary.

Also it makes mesh_accept_plinks_update the common place to update the accepting_plinks flag.
mesh_accept_plinks_update is called upon plink change and also periodically from ieee80211_mesh_housekeeping.
Thus, it also picks up changes of local->num_sta.

Signed-off-by: Marco Porsch <marco.porsch@etit.tu-chemnitz.de>
Acked-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_plink.c