Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2016 15:32:12 -0800
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        freebsd-wireless@freebsd.org
Subject:   Problem with Intel Centrino Wireless-N 1000 on ARM
Message-ID:  <9770367E-AEC9-4849-9F9E-47B4E35F724F@bluezbox.com>

next in thread | raw e-mail | index | archive | help
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: <Intel Centrino Wireless-N =
1000> 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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9770367E-AEC9-4849-9F9E-47B4E35F724F>