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.

My test script:
sysctl dev.iwn.0.debug=0x8007
ifconfig wlan create wlandev iwn0
wlandebug -i wlan0 +dumppkts+scan+debug
ifconfig wlan0 up scan

Card’s 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=0x271f0501
Dec  4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=0; qid 0 idx 0 flags 0 
type 1(UC_READY) len 36
Dec  4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=1; 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=2; 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=3; 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=4; 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=5; 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=6; 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=7; 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=8; 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=0; qid 0 idx 0 flags 0 
type 1(UC_READY) len 36
Dec  4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=1; 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=2; 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=3; 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=4; 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=5; 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=6; 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=7; 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=8; 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=0x3, nrxchains=2
Dec  4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=9; 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=10; 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=11; 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=5
Dec  4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=12; 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=13; 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=14; 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=1
Dec  4 23:25:25 jetson-tk1 kernel: wlan0: iwn_notif_intr: cur=24; 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=25; 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=26; 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=27; qid 0 idx 10 flags 0 
type 132(STOP_SCAN) len 16
Dec  4 23:25:25 jetson-tk1 kernel: scan finished nchan=1 status=1 chan=11
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=0
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=0, ssid=
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=0 numssid=0

without any RX frames or scan results.

Thank you
_______________________________________________
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"

Reply via email to