diff options
author | Javier Cardona <javier@cozybit.com> | 2009-08-10 15:15:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:14:01 -0400 |
commit | 5b365834255d7c90fc724b032c814dfa297aacf9 (patch) | |
tree | a8b1898a81427143b6f29d9e53e2947576341508 /net/mac80211/mesh.c | |
parent | 5815814bfad5b3f88ff58ab90aaf09dd69ab8da2 (diff) |
mac80211: Assign a default mesh beaconing interval.
The mesh stack was enabling beaconing without specifying an interval. This
patch defines a default beaconing interval of 1s.
Incidentally, this fixes mesh beaconing in mac80211_hwsim devices.
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 10d93386042a..25d0065778ef 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -525,9 +525,11 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) | |||
525 | struct ieee80211_local *local = sdata->local; | 525 | struct ieee80211_local *local = sdata->local; |
526 | 526 | ||
527 | ifmsh->housekeeping = true; | 527 | ifmsh->housekeeping = true; |
528 | ieee80211_queue_work(&local->hw, &ifmsh->work); | 528 | queue_work(local->hw, &ifmsh->work); |
529 | sdata->vif.bss_conf.beacon_int = MESH_DEFAULT_BEACON_INTERVAL; | ||
529 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON | | 530 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON | |
530 | BSS_CHANGED_BEACON_ENABLED); | 531 | BSS_CHANGED_BEACON_ENABLED | |
532 | BSS_CHANGED_BEACON_INT); | ||
531 | } | 533 | } |
532 | 534 | ||
533 | void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) | 535 | void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) |