From owner-freebsd-net@freebsd.org Fri Jul 28 18:11:14 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 612F0DCB438 for ; Fri, 28 Jul 2017 18:11:14 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3C29C6A858 for ; Fri, 28 Jul 2017 18:11:14 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3B820DCB437; Fri, 28 Jul 2017 18:11:14 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3B25DDCB436 for ; Fri, 28 Jul 2017 18:11:14 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com [IPv6:2607:f8b0:400e:c00::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0DCE36A856 for ; Fri, 28 Jul 2017 18:11:14 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-pf0-x231.google.com with SMTP id q85so98544124pfq.1 for ; Fri, 28 Jul 2017 11:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=ZK+OPI6010Re7N2w+HHmIn2+LQAPKuQSD6Qm/zqU1Hs=; b=awu82u47LdYBdWoTiwkAhX7UIrpsi/JWRm0qM9PugDG2RKyUW7Ne6FFa59Z4LkmSGp 1Xy6RpF6Y8R4lCGAZqByTTc4exxnqnMshbKAUzLHB1GWsThAtJdf6fFdvRNUqLEVP51X SnGxZhOPV43k/P6aAatLo2HZpy2PY+yfCxZBncSoPXomAPGgDSdLR3fLoGJGXIIG/0kM Qudhl42TugLO706uXa4sN/E47+9h+nWPfnBGLQTLbzlYFuHDHn8EENQ7R+uOl/JDd/zE n+UpgdOEwsMZRJdnVfN4Z4ApyJiT1FJd+bahqkaac3pvsw91bkijwJ/N6RZySrZjQbZ1 cLJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=ZK+OPI6010Re7N2w+HHmIn2+LQAPKuQSD6Qm/zqU1Hs=; b=AyYziJ/ZgJvjNr/Zs4SeYIcLtlyF3s/VKrilkX6whqqLbx5ElsUz1HDCdaqMpohUUe vSRj9aSW0tdbqW0piiw2Rin1j+yTS0Vqp+Vi2tqWke714xVlZIbMtrDKfvvAqqnfiRkb GjZ9ufgg/ls2yUX8GyIR9/8ix9iFIajZt3ezbPfgtxYYdL6M8zCNQEGpa/AKrx4b3aR0 GMk5OqjXrKvKuFe+CM+IM+VHYqFqZfc232W6pHIqVapgrgufHTg7r2J1jwujrqcf1h8Q CNUsUp7rrfcDqgAnp229gRWpiX+hae+8h6pgmVN1frtmi3uZOKoNWgkvFC89SESFY0le qBWQ== X-Gm-Message-State: AIVw111uK7csdwA/3oVJ+95BU9a1v9ooZmm54lHugp1N7RPvaO3U7SxK Rn5qEiyE2Z0eZFG0YVgcaGMLYi8Rw8lG X-Received: by 10.84.129.13 with SMTP id 13mr8653942plb.408.1501265473276; Fri, 28 Jul 2017 11:11:13 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.100.165.42 with HTTP; Fri, 28 Jul 2017 11:11:12 -0700 (PDT) From: Kevin Oberman Date: Fri, 28 Jul 2017 11:11:12 -0700 X-Google-Sender-Auth: dEwNgNkS6qFvtsLpduNTBYriQns Message-ID: Subject: Enable 802.11 debug at boot To: FreeBSD Net , Adrian Chadd Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2017 18:11:14 -0000 I am having evere issues with bringing up my network card. I had previously had this and a patch to a locking issued mostly fixed it. (It still popped up now and ten, but moved from "problem" to "annoyance".) Now it is again a problem. System is a Lenovo T520 ThinkPad running 1-STABLE with an Intel WiFi card: iwn0@pci0:3:0:0: class=0x028000 card=0x13118086 chip=0x00858086 rev=0x34$ vendor = 'Intel Corporation' device = 'Centrino Advanced-N 6205 [Taylor Peak]' class = network When the card is brought up at boot time, it has a very hard time getting a connection. It could take over a minute to connect, but the system kept reporting that the card had transitioned from DOWN to UP and DHCP would fire up. After one or two cases of the card showing hung and a firmware reload, it would make a connection and things would be fine. Since about hte start of the 11.1 release cycle, it has gotten much worse and some really odd behavior has appeared. It often seems to fail to scan properly and connects to a neighbor's Xfinity (Comcast) service (very weak signal and low priority in the wpa_supplicant config file) instead of my AP. If I run "ifconfig wlan0 list scan", I don't even see my AP. If I restart, I go through the same connection dance and my eventually connect to my AP. A "list scan" usually does not show any Xfinity SSID. Weird. It now get really weird. I try to re-scan for APs with "ifconig wlan0 scan". It used to take a few seconds to scan before reporting the list of APs, but now comes back instantly, always with an identical list of APs. It never changes. It looks like scan is a no-op. Waiting for background scan to run also never seems to show any change in the list of available APs. Not even slight changes is S/N ratio. My kernel has IWN_DEBUG and IEEE80211_DEBUG, but I am not sure how to get debug enabled at boot. sysctl.conf takes care of dev.iwn.0.debug, but I'm not sure how to do "wlandebug +assoc +auth +state +rate" at boot. Do I need to write a little rc.d script to run after /usr is mounted and before the network starts? Of is there a better way? Thanks! -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683