From owner-freebsd-net@FreeBSD.ORG Mon Jan 3 20:05:13 2011 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E38A1065675; Mon, 3 Jan 2011 20:05:13 +0000 (UTC) (envelope-from bschmidt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E3FB8FC20; Mon, 3 Jan 2011 20:05:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p03K5DmP037932; Mon, 3 Jan 2011 20:05:13 GMT (envelope-from bschmidt@freefall.freebsd.org) Received: (from bschmidt@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p03K5DQ5037928; Mon, 3 Jan 2011 20:05:13 GMT (envelope-from bschmidt) Date: Mon, 3 Jan 2011 20:05:13 GMT Message-Id: <201101032005.p03K5DQ5037928@freefall.freebsd.org> To: kubito@gmail.com, bschmidt@FreeBSD.org, freebsd-net@FreeBSD.org, bschmidt@FreeBSD.org From: bschmidt@FreeBSD.org Cc: Subject: Re: kern/153594: [iwn] Network keeps disconnecting when /etc/rc.d/netif restart is run X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2011 20:05:13 -0000 Synopsis: [iwn] Network keeps disconnecting when /etc/rc.d/netif restart is run State-Changed-From-To: open->suspended State-Changed-By: bschmidt State-Changed-When: Mon Jan 3 19:59:38 UTC 2011 State-Changed-Why: This is known issue. There is race in devd and our rc-subsystem if wpa_supplicant is involved effectivly resulting in starting wpa_supplicant twice. Both instances try to take over the wlan device which results in what you are seeing. I have no idea how to fix this right now, so this has to wait until I'm able to think of proper fix. As a workaround, don't use netif restart but kldunload if_iwn; kldload if_iwn instead. Responsible-Changed-From-To: freebsd-net->bschmidt Responsible-Changed-By: bschmidt Responsible-Changed-When: Mon Jan 3 19:59:38 UTC 2011 Responsible-Changed-Why: over to me http://www.freebsd.org/cgi/query-pr.cgi?pr=153594