Author: rpaulo Date: Wed Oct 21 19:31:23 2009 New Revision: 198346 URL: http://svn.freebsd.org/changeset/base/198346
Log: Don't call the newstate callback as that's dangerous. Rely no ENETRESET to DTRT. MFC after: 3 days Modified: head/sys/net80211/ieee80211_mesh.c Modified: head/sys/net80211/ieee80211_mesh.c ============================================================================== --- head/sys/net80211/ieee80211_mesh.c Wed Oct 21 19:29:05 2009 (r198345) +++ head/sys/net80211/ieee80211_mesh.c Wed Oct 21 19:31:23 2009 (r198346) @@ -388,8 +388,6 @@ mesh_select_proto_path(struct ieee80211v for (i = 0; i < N(mesh_proto_paths); i++) { if (strcasecmp(mesh_proto_paths[i].mpp_descr, name) == 0) { ms->ms_ppath = &mesh_proto_paths[i]; - if (vap->iv_state == IEEE80211_S_RUN) - vap->iv_newstate(vap, IEEE80211_S_INIT, 0); return 0; } } @@ -405,8 +403,6 @@ mesh_select_proto_metric(struct ieee8021 for (i = 0; i < N(mesh_proto_metrics); i++) { if (strcasecmp(mesh_proto_metrics[i].mpm_descr, name) == 0) { ms->ms_pmetric = &mesh_proto_metrics[i]; - if (vap->iv_state == IEEE80211_S_RUN) - vap->iv_newstate(vap, IEEE80211_S_INIT, 0); return 0; } } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"