From owner-freebsd-current@FreeBSD.ORG Sun Nov 21 10:45:48 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 37C7A106566C for ; Sun, 21 Nov 2010 10:45:48 +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 C17C58FC1A for ; Sun, 21 Nov 2010 10:45:47 +0000 (UTC) Received: by wyb35 with SMTP id 35so5223290wyb.13 for ; Sun, 21 Nov 2010 02:45:46 -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=rOLCNLRorsrJ83CpFtUdh9kfU0nGo3vMhrK7lqnQvnM=; b=q7KxJtYMR5SiG976C2hwWCZiRKoacOkvaNaW+wlsaCJMe5GfhlPzI4DIWL8XmkxzIb YB+AvhVZEXBoQ/yO/eLY00wPpC1PaduLKORX2IPruePBf3ebVHt+P7fr2OnM/sFw7Wfd Iqj7s05LD2Gt9DsSLJ9ZtTlmpgdA2TTRU/e1w= 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=MpchLJ25BKah1YajekEFQg0KK6O98mQ7a0t68hnYWuZHEXF7BvJ38JBd3b0biOv0Io QG98yFi+IKIKepyFMKPhg1+lSTyYV71FkeSM7YZrbVq0Dab7IxJtMXNLyKqTJhXpXlGo pxYdm+hHORXT+Aln07MJxjxfYKt+IMMSPYsYc= MIME-Version: 1.0 Received: by 10.216.72.68 with SMTP id s46mr2821248wed.62.1290336346085; Sun, 21 Nov 2010 02:45:46 -0800 (PST) Received: by 10.216.234.82 with HTTP; Sun, 21 Nov 2010 02:45:45 -0800 (PST) In-Reply-To: References: <20101118072341.V24596@maildrop.int.zabbadoz.net> Date: Sun, 21 Nov 2010 10:45:45 +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: Sun, 21 Nov 2010 10:45:48 -0000 On 11/19/10, Paul B Mahol wrote: > 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. kern.consmute=0 caused link state change to never appear (even in dmesg) ...