mac80211: fix for mesh beacon update on powersave
authorJavier Lopez <jlopex@cozybit.com>
Wed, 6 Nov 2013 18:04:29 +0000 (10:04 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 15:50:09 +0000 (16:50 +0100)
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>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c

index 0ec245120a638aa9d0ba291862e9b0e1dfe13a55..9e7e68d7b1a7c4b1e933ff35bb939407e54aba9d 100644 (file)
@@ -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
        }