From owner-freebsd-wireless@freebsd.org Mon Dec 5 02:41:33 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 6CBD2C66109 for ; Mon, 5 Dec 2016 02:41:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (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 36C531D21 for ; Mon, 5 Dec 2016 02:41:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x233.google.com with SMTP id c21so530569335ioj.1 for ; Sun, 04 Dec 2016 18:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DX0TR7BlHGIQiPeim/RCDPum3NLz+Gl061dX31Eo1io=; b=Sg0M2zLzlaYvEl5c32l6oAId19Yaw7cDL3cEfLgwZrS3UEbr0hFegOljgUoh/d7SWA vqmO88qgIDrU1r4zN6zVUJJRfGpok1n/LiKuShlbr8AKRzci1JsGTNgDnSxzodldkOim spP/v4WVR36ZFoAMFmG17I3CaqK8exkTya2vkUKn1KItnI+7Ri/uinjPMt6NBkX9VPrW Qr8lrPwmKOKpDF/tSRwgUYzP9lCvFtARe1BtGwh7ZfPY3H4n/tLEvnYru61b+cVtiwuq 03F2+v2avom4eziuHR/M9Hmm7pw+qYn545ABLG9mKrgpjoEUWTBs7Ls14KhvIrRuxHgY cnnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DX0TR7BlHGIQiPeim/RCDPum3NLz+Gl061dX31Eo1io=; b=YKDrqkP0X9l7DAghLKlcCLBHfJj3CzIaeSKiwoy4FTOksLnfhcQUKkk1xHIMtj4e+/ eXosfYzPYpQwI954g1l2a8i8xfqMpfZO2nSpDwd7pVYYQZiJO2Tk1XD5F4mlb0w+enoQ AyyNMBu3h5d7yil643wyNyYsu+T+sGx09rV00iAr6JsLTkttrvMeixtJBdL+Vh28yeiM tg/Tzxplo+i8siTaLLZReX65mYvjchPKP1QYW4/Na38JJVPQy2Za7foh4m2jSzjoyRmr 9m3F8br23TnIb3cJeoC3xJCpEYMn3pAo5vIITpdLBSVeI4fIWCifo0XTmFauEgRy3wwa 1lqQ== X-Gm-Message-State: AKaTC00Ii+EfqDnnhiPHUpNuv2bZhdI/AbD7EtSTsTlJOlyCFIhb8JCHmOTdVWD7xkT7gY1AIAGu64CZJb6L8g== X-Received: by 10.36.91.134 with SMTP id g128mr6637263itb.78.1480905692486; Sun, 04 Dec 2016 18:41:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.150.129 with HTTP; Sun, 4 Dec 2016 18:41:31 -0800 (PST) In-Reply-To: <9770367E-AEC9-4849-9F9E-47B4E35F724F@bluezbox.com> References: <9770367E-AEC9-4849-9F9E-47B4E35F724F@bluezbox.com> From: Adrian Chadd Date: Sun, 4 Dec 2016 18:41:31 -0800 Message-ID: Subject: Re: Problem with Intel Centrino Wireless-N 1000 on ARM To: Oleksandr Tymoshenko Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Mon, 05 Dec 2016 02:41:33 -0000 hiya, it's totally possible some endian clean stuff is missing from the driver :( -adrian On 4 December 2016 at 15:32, Oleksandr Tymoshenko wrot= e: > 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 (0x13100= 000-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 81= 92 > Dec 4 23:25:25 jetson-tk1 kernel: iwn0: attempting to allocate 1 MSI vec= tors (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 1= 1Mbps > Dec 4 23:25:25 jetson-tk1 kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 1= 1Mbps 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:0= 4: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 pare= nt iwn0 > Dec 4 23:25:25 jetson-tk1 kernel: iwn0: iwn_read_firmware: ucode rev=3D0= x271f0501 > Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D0; qid 0 idx 0 f= lags 0 type 1(UC_READY) len 36 > Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D1; qid 4 idx 0 f= lags 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 f= lags 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 f= lags 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 f= lags 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 f= lags 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 f= lags 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 f= lags 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 f= lags 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 f= lags 0 type 1(UC_READY) len 36 > Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D1; qid 4 idx 0 f= lags 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 f= lags 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 f= lags 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 f= lags 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 f= lags 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 f= lags 0 type 176(IWN_CMD_PHY_CALIB) len 4 > Dec 4 23:25:25 jetson-tk1 kernel: iwn_config: configuring valid TX chain= s 0x1 > Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D7; qid 4 idx 6 f= lags 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 f= lags 0 type 155(IWN_CMD_BT_COEX) len 4 > Dec 4 23:25:25 jetson-tk1 kernel: iwn_config: rxchainmask=3D0x3, nrxchai= ns=3D2 > Dec 4 23:25:25 jetson-tk1 kernel: iwn_notif_intr: cur=3D9; qid 4 idx 8 f= lags 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 st= atus 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 cha= n=3D11 > Dec 4 23:25:25 jetson-tk1 kernel: wlan0: ieee80211_swscan_scan_next: cal= led > 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 0x2= 8 dsp_gain 0x6e active 33 passive 100 scan_svc_time 16879616 crc 0xffff isa= ctive=3D0 numssid=3D0 > > 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-unsubscribe@freebsd.or= g"