diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2009-10-21 19:31:23 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2009-10-21 19:31:23 +0000 |
commit | 3b4a9a1844e2c7d7391e40f790c053392aa4eb09 (patch) | |
tree | 8d3a681ea91e1f82ac2770f70262fa958ad416a1 | |
parent | bc6b0275a0a07a65ea4c7b8e801de652d99307a0 (diff) | |
download | FreeBSD-src-3b4a9a1844e2c7d7391e40f790c053392aa4eb09.zip FreeBSD-src-3b4a9a1844e2c7d7391e40f790c053392aa4eb09.tar.gz |
Don't call the newstate callback as that's dangerous. Rely no ENETRESET
to DTRT.
MFC after: 3 days
-rw-r--r-- | sys/net80211/ieee80211_mesh.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/net80211/ieee80211_mesh.c b/sys/net80211/ieee80211_mesh.c index 432ce23..d662269 100644 --- a/sys/net80211/ieee80211_mesh.c +++ b/sys/net80211/ieee80211_mesh.c @@ -388,8 +388,6 @@ mesh_select_proto_path(struct ieee80211vap *vap, const char *name) 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 ieee80211vap *vap, const char *name) 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; } } |