From owner-freebsd-current@FreeBSD.ORG Fri Nov 19 00:44:55 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C661D1065672 for ; Fri, 19 Nov 2010 00:44:55 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5D63E8FC13 for ; Fri, 19 Nov 2010 00:44:54 +0000 (UTC) Received: by wyb35 with SMTP id 35so3071924wyb.13 for ; Thu, 18 Nov 2010 16:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=VXVDk7LoduV4wceNmV76396YYY89VdIcCfO82Zssjvs=; b=IxAEvS4C0o+y5GcSsZU6PBL/zyLK6dS26PuWLM2DZLjSAJQ5v9fJYK1TDia/N2B6oD tkbBM59YFiJXlj+2fNx3pbuy8O9ysk1E2EgUWmTosNhzEXAVwRUW3FoD3N/GS28nWbLO TwoCUHlRZGYP02HogkqFJYignCiyzPakTJImE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tloORtE7UNX+MO8qPfEdgsvaWM53UdKT2xLAuRCAWwP5WElHpFdiukEagsnyPd3B2G mHGHVwr5v/BU22sT5RO28LLHF9wJS5Xb7Yz327bg9eq6C7Ga01D+2g6ibYxf308cCM1y sG4fvdd02fgYntsi9/4I0Bt7LAZWWpasbxif0= MIME-Version: 1.0 Received: by 10.216.231.162 with SMTP id l34mr1133179weq.77.1290127494160; Thu, 18 Nov 2010 16:44:54 -0800 (PST) Received: by 10.216.234.82 with HTTP; Thu, 18 Nov 2010 16:44:54 -0800 (PST) In-Reply-To: <20101118072341.V24596@maildrop.int.zabbadoz.net> References: <20101118072341.V24596@maildrop.int.zabbadoz.net> Date: Fri, 19 Nov 2010 00:44:54 +0000 Message-ID: From: Paul B Mahol To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD current mailing list Subject: Re: net.link.log_link_state_change broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2010 00:44:55 -0000 On 11/18/10, Bjoern A. Zeeb wrote: > On Tue, 2 Nov 2010, Paul B Mahol wrote: > > Hi, > >> It appears we do not log such events anymore (at least with wlan >> devices) in console. >> >> I set this sysctl to 0 via sysctl.conf, if I set it to 1, nothing will >> change. >> >> Because I had loging disabled for very long time I encountered this >> problem just now. > > not sure. Might be, might not be. Have you further looked into this? > > I at least see: > ./net80211/ieee80211_freebsd.c: if_link_state_change(ifp, > LINK_STATE_UP); > ./net80211/ieee80211_freebsd.c: if_link_state_change(ifp, > LINK_STATE_DOWN); That part is not problematic, klog part is. Messages of link state changes are not available in console but are available in klog and in console once you open it with cat. Reading comment it appears that logic is inverted in code.