linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix for mesh beacon update on powersave
@ 2013-11-06 18:04 Javier Lopez
  2013-11-12  9:43 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Javier Lopez @ 2013-11-06 18:04 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, johannes, marco, Javier Lopez

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 <jlopex@cozybit.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac80211: fix for mesh beacon update on powersave
  2013-11-06 18:04 [PATCH] mac80211: fix for mesh beacon update on powersave Javier Lopez
@ 2013-11-12  9:43 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2013-11-12  9:43 UTC (permalink / raw)
  To: Javier Lopez; +Cc: linville, linux-wireless, marco

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-12  9:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06 18:04 [PATCH] mac80211: fix for mesh beacon update on powersave Javier Lopez
2013-11-12  9:43 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).