From owner-freebsd-wireless@freebsd.org Sun Dec 4 23:32:45 2016 Return-Path: Delivered-To: freebsd-wireless@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 A0640C673AF for ; Sun, 4 Dec 2016 23:32:45 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 873121D58 for ; Sun, 4 Dec 2016 23:32:45 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from [136.179.10.143] (helo=[10.140.230.85]) by id.bluezbox.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1cDgGx-000AAv-Il for freebsd-wireless@freebsd.org; Sun, 04 Dec 2016 15:32:44 -0800 From: Oleksandr Tymoshenko Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Problem with Intel Centrino Wireless-N 1000 on ARM Message-Id: <9770367E-AEC9-4849-9F9E-47B4E35F724F@bluezbox.com> Date: Sun, 4 Dec 2016 15:32:12 -0800 To: freebsd-wireless@freebsd.org X-Mailer: Apple Mail (2.3251) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Hello, I am trying to get Intel Centrino Wireless-N 1000 working on one of my ARM boards. iwn(4) recognizes it but I can’t associate it with AP or get scan results. I am not sure whether it’s an iwn on ARM problem or this card in general. I’d appreciate any hints on how to debug this issue. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2016 23:32:45 -0000 Hello, I am trying to get Intel Centrino Wireless-N 1000 working on one of my ARM boards. iwn(4) recognizes it but I can=E2=80=99t associate it = with AP or get scan results. I am not sure whether it=E2=80=99s an iwn on ARM = problem or this card in general. I=E2=80=99d appreciate any hints on how to = debug this issue. My test script: sysctl dev.iwn.0.debug=3D0x8007 ifconfig wlan create wlandev iwn0 wlandebug -i wlan0 +dumppkts+scan+debug ifconfig wlan0 up scan Card=E2=80=99s dmesg: Dec 4 23:25:25 jetson-tk1 kernel: iwn0: irq 104 at device 0.0 on pci1 Dec 4 23:25:25 jetson-tk1 kernel: pcib1: allocated initial memory = window of 0x13100000-0x131fffff Dec 4 23:25:25 jetson-tk1 kernel: pcib1: allocated memory range = (0x13100000-0x13101fff) for rid 10 of iwn0 Dec 4 23:25:25 jetson-tk1 kernel: iwn0: Lazy allocation of 0x2000 bytes = rid 0x10 type 3 at 0x13100000 Dec 4 23:25:25 jetson-tk1 kernel: ofw_pci mapdev: start 13100000, len = 8192 Dec 4 23:25:25 jetson-tk1 kernel: iwn0: attempting to allocate 1 MSI = vectors (1 supported) Dec 4 23:25:25 jetson-tk1 kernel: iwn0: using IRQ 106 for MSI Dec 4 23:25:25 jetson-tk1 kernel: iwn0: MIMO 1T2R, BGS, address = 74:e5:0b:53:04:ec Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps = 11Mbps Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps = 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 1T2R Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 11ng MCS 20MHz Dec 4 23:25:25 jetson-tk1 kernel: iwn0: MCS 0-7: 6.5Mbps - 65Mbps Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 11ng MCS 20MHz SGI Dec 4 23:25:25 jetson-tk1 kernel: iwn0: MCS 0-7: 7Mbps - 72Mbps Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 11ng MCS 40MHz: Dec 4 23:25:25 jetson-tk1 kernel: iwn0: MCS 0-7: 13.5Mbps - 135Mbps Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 11ng MCS 40MHz SGI: Dec 4 23:25:25 jetson-tk1 kernel: iwn0: MCS 0-7: 15Mbps - 150Mbps Dec 4 23:25:25 jetson-tk1 kernel: wlan0: bpf attached Dec 4 23:25:25 jetson-tk1 kernel: wlan0: bpf attached Dec 4 23:25:25 jetson-tk1 kernel: wlan0: Ethernet address: = 74:e5:0b:53:04:ec Dec 4 23:25:25 jetson-tk1 kernel: wlan0: start running, 0 vaps running Dec 4 23:25:25 jetson-tk1 kernel: wlan0: ieee80211_start_locked: up = parent iwn0 Dec 4 23:25:25 jetson-tk1 kernel: iwn0: iwn_read_firmware: ucode = rev=3D0x271f0501 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D0; qid 0 idx 0 = flags 0 type 1(UC_READY) len 36 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D1; qid 4 idx 0 = flags 0 type 90(IWN5000_CMD_WIMAX_COEX) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D2; qid 4 idx 1 = flags 0 type 176(IWN_CMD_PHY_CALIB) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D3; qid 4 idx 2 = flags 0 type 101(IWN5000_CMD_CALIB_CONFIG) len 8 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D4; qid 0 idx 1 = flags 0 type 102(IWN5000_CMD_CALIB_RESULT) len 12 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D5; qid 0 idx 2 = flags 0 type 102(IWN5000_CMD_CALIB_RESULT) len 296 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D6; qid 0 idx 3 = flags 0 type 102(IWN5000_CMD_CALIB_RESULT) len 92 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D7; qid 0 idx 4 = flags 0 type 102(IWN5000_CMD_CALIB_RESULT) len 52 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D8; qid 0 idx 5 = flags 0 type 103(IWN5000_CMD_CALIB_COMPLETE) len 8 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D0; qid 0 idx 0 = flags 0 type 1(UC_READY) len 36 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D1; qid 4 idx 0 = flags 0 type 90(IWN5000_CMD_WIMAX_COEX) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D2; qid 4 idx 1 = flags 0 type 176(IWN_CMD_PHY_CALIB) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D3; qid 4 idx 2 = flags 0 type 176(IWN_CMD_PHY_CALIB) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D4; qid 4 idx 3 = flags 0 type 176(IWN_CMD_PHY_CALIB) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D5; qid 4 idx 4 = flags 0 type 176(IWN_CMD_PHY_CALIB) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D6; qid 4 idx 5 = flags 0 type 176(IWN_CMD_PHY_CALIB) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_config: configuring valid TX = chains 0x1 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D7; qid 4 idx 6 = flags 0 type 152(IWN5000_CMD_TX_ANT_CONFIG) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D8; qid 4 idx 7 = flags 0 type 155(IWN_CMD_BT_COEX) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_config: rxchainmask=3D0x3, = nrxchains=3D2 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D9; qid 4 idx 8 = flags 0 type 16(IWN_CMD_RXON) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D10; qid 4 idx 9 = flags 0 type 24(ADD_NODE_DONE) len 8 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D11; qid 4 idx = 10 flags 0 type 78(IWN_CMD_LINK_QUALITY) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn5000_set_txpower: setting TX = power; rev=3D5 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D12; qid 4 idx = 11 flags 0 type 149(IWN_CMD_TXPOWER_DBM) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D13; qid 4 idx = 12 flags 0 type 164(IWN_CMD_SET_CRITICAL_TEMP) len 4 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D14; qid 4 idx = 13 flags 0 type 119(IWN_CMD_SET_POWER_MODE) len 4 Dec 4 23:25:25 jetson-tk1 kernel: wlan0: start running, 1 vaps running Dec 4 23:25:25 jetson-tk1 kernel: iwn_newstate: INIT -> SCAN Than it just goes like this: Dec 4 23:25:25 jetson-tk1 kernel: sending scan command nchan=3D1 Dec 4 23:25:25 jetson-tk1 kernel: wlan0: iwn_notif_intr: cur=3D24; qid = 4 idx 17 flags 0 type 128(IWN_CMD_SCAN) len 8 Dec 4 23:25:25 jetson-tk1 kernel: scan_curchan_task: waiting Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D25; qid 0 idx 8 = flags 0 type 130(START_SCAN) len 24 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: scanning channel 11 = status 1 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D26; qid 0 idx 9 = flags 0 type 131(IWN_CMD_SCAN_RESULTS) len 20 Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D27; qid 0 idx = 10 flags 0 type 132(STOP_SCAN) len 16 Dec 4 23:25:25 jetson-tk1 kernel: scan finished nchan=3D1 status=3D1 = chan=3D11 Dec 4 23:25:25 jetson-tk1 kernel: wlan0: ieee80211_swscan_scan_next: = called Dec 4 23:25:25 jetson-tk1 kernel: wlan0: scan_curchan_task: loop start; = scandone=3D0 Dec 4 23:25:25 jetson-tk1 kernel: wlan0: scan_curchan_task: chan 11g = -> 7g [active, dwell min 20ms max 200ms] Dec 4 23:25:25 jetson-tk1 kernel: iwn_scan: ssid_len=3D0, ssid=3D Dec 4 23:25:25 jetson-tk1 kernel: iwn_scan: chan 7 flags 0x1 rf_gain = 0x28 dsp_gain 0x6e active 33 passive 100 scan_svc_time 16879616 crc = 0xffff isactive=3D0 numssid=3D0 without any RX frames or scan results. Thank you=