From owner-freebsd-current@FreeBSD.ORG Sun Nov 21 10:47:16 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 4168C106564A for ; Sun, 21 Nov 2010 10:47:16 +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 CA7108FC08 for ; Sun, 21 Nov 2010 10:47:15 +0000 (UTC) Received: by wyb35 with SMTP id 35so5223944wyb.13 for ; Sun, 21 Nov 2010 02:47:15 -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:content-type; bh=iNiAgW6Qt1GwVF1e/irS/rFEnx5NN9CP+wXD8Jh1PYI=; b=ovVd4Z5vKI6A51PXQigXyQwtoW/VV1Mhpzr9M58DyWsbrSpjgJUBuXZZ9jm8u9RAg9 VRF/serhn1CX5wLXrRcXKfUC3rnYBzNv4qWnLV+5/wSzaFOCX3dyFczSwSc6E9o74fZe 1uCav+C8KKu215mFnrwYHDKfKACKHyim6ABRQ= 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 :content-type; b=cvE8/vWZgnBqdUSAGqXFgmzN5Rmt5Bnc10BbT+pfXBjrPbNQq0oNxE4YJZMBhlVwtN 0zOwvm4NqxzTXyYPdwTgwgAQB1cWq4F6VyUxjrWpf1yJ77BGQxDy/IJQ4oZIr7g5UWLq R+GTDwE6Fb/DU9Hiwaui/goL+l1Efy4ytAqf0= MIME-Version: 1.0 Received: by 10.216.238.130 with SMTP id a2mr1703179wer.77.1290336434608; Sun, 21 Nov 2010 02:47:14 -0800 (PST) Received: by 10.216.234.82 with HTTP; Sun, 21 Nov 2010 02:47:14 -0800 (PST) In-Reply-To: References: <20101118072341.V24596@maildrop.int.zabbadoz.net> Date: Sun, 21 Nov 2010 10:47:14 +0000 Message-ID: From: Paul B Mahol To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: 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:47:16 -0000 On 11/21/10, Paul B Mahol wrote: > 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) > ... ^kern.consmute=1