From owner-svn-src-head@FreeBSD.ORG Wed Oct 21 19:31:23 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E95DE1065676; Wed, 21 Oct 2009 19:31:23 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D9A038FC15; Wed, 21 Oct 2009 19:31:23 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n9LJVNWl008532; Wed, 21 Oct 2009 19:31:23 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n9LJVN1R008530; Wed, 21 Oct 2009 19:31:23 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <200910211931.n9LJVN1R008530@svn.freebsd.org> From: Rui Paulo Date: Wed, 21 Oct 2009 19:31:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r198346 - head/sys/net80211 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 19:31:24 -0000 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; } }