diff options
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 0d3234875ac5..63e1188d5062 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -530,6 +530,11 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) | |||
530 | void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) | 530 | void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) |
531 | { | 531 | { |
532 | struct ieee80211_local *local = sdata->local; | 532 | struct ieee80211_local *local = sdata->local; |
533 | struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; | ||
534 | |||
535 | ifmsh->mesh_id_len = 0; | ||
536 | ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED); | ||
537 | sta_info_flush(local, NULL); | ||
533 | 538 | ||
534 | del_timer_sync(&sdata->u.mesh.housekeeping_timer); | 539 | del_timer_sync(&sdata->u.mesh.housekeeping_timer); |
535 | del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); | 540 | del_timer_sync(&sdata->u.mesh.mesh_path_root_timer); |
@@ -674,27 +679,6 @@ void ieee80211_mesh_init_sdata(struct ieee80211_sub_if_data *sdata) | |||
674 | ieee80211_mesh_housekeeping_timer, | 679 | ieee80211_mesh_housekeeping_timer, |
675 | (unsigned long) sdata); | 680 | (unsigned long) sdata); |
676 | 681 | ||
677 | ifmsh->mshcfg.dot11MeshRetryTimeout = MESH_RET_T; | ||
678 | ifmsh->mshcfg.dot11MeshConfirmTimeout = MESH_CONF_T; | ||
679 | ifmsh->mshcfg.dot11MeshHoldingTimeout = MESH_HOLD_T; | ||
680 | ifmsh->mshcfg.dot11MeshMaxRetries = MESH_MAX_RETR; | ||
681 | ifmsh->mshcfg.dot11MeshTTL = MESH_TTL; | ||
682 | ifmsh->mshcfg.element_ttl = MESH_DEFAULT_ELEMENT_TTL; | ||
683 | ifmsh->mshcfg.auto_open_plinks = true; | ||
684 | ifmsh->mshcfg.dot11MeshMaxPeerLinks = | ||
685 | MESH_MAX_ESTAB_PLINKS; | ||
686 | ifmsh->mshcfg.dot11MeshHWMPactivePathTimeout = | ||
687 | MESH_PATH_TIMEOUT; | ||
688 | ifmsh->mshcfg.dot11MeshHWMPpreqMinInterval = | ||
689 | MESH_PREQ_MIN_INT; | ||
690 | ifmsh->mshcfg.dot11MeshHWMPnetDiameterTraversalTime = | ||
691 | MESH_DIAM_TRAVERSAL_TIME; | ||
692 | ifmsh->mshcfg.dot11MeshHWMPmaxPREQretries = | ||
693 | MESH_MAX_PREQ_RETRIES; | ||
694 | ifmsh->mshcfg.path_refresh_time = | ||
695 | MESH_PATH_REFRESH_TIME; | ||
696 | ifmsh->mshcfg.min_discovery_timeout = | ||
697 | MESH_MIN_DISCOVERY_TIMEOUT; | ||
698 | ifmsh->accepting_plinks = true; | 682 | ifmsh->accepting_plinks = true; |
699 | ifmsh->preq_id = 0; | 683 | ifmsh->preq_id = 0; |
700 | ifmsh->sn = 0; | 684 | ifmsh->sn = 0; |