2013-11-06 18:04:47

by Javier Lopez

[permalink] [raw]
Subject: [PATCH] mac80211: fix for mesh beacon update on powersave

Mesh beacon was not being rebuild after user triggered a mesh
powersave change.

To solve this issue use ieee80211_mbss_info_change_notify instead
of ieee80211_bss_info_change_notify. This helper function forces
mesh beacon to be rebuild and then notifies the driver about the
beacon change.

Signed-off-by: Javier Lopez <[email protected]>
---
net/mac80211/cfg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 95667b0..ad2889f 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1368,7 +1368,7 @@ static int sta_apply_parameters(struct ieee80211_local *local,
changed |=
ieee80211_mps_set_sta_local_pm(sta,
params->local_pm);
- ieee80211_bss_info_change_notify(sdata, changed);
+ ieee80211_mbss_info_change_notify(sdata, changed);
#endif
}

--
1.7.9.5



2013-11-12 09:43:24

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix for mesh beacon update on powersave

On Wed, 2013-11-06 at 10:04 -0800, Javier Lopez wrote:
> Mesh beacon was not being rebuild after user triggered a mesh
> powersave change.
>
> To solve this issue use ieee80211_mbss_info_change_notify instead
> of ieee80211_bss_info_change_notify. This helper function forces
> mesh beacon to be rebuild and then notifies the driver about the
> beacon change.

Applied.

johannes