From owner-freebsd-wireless@FreeBSD.ORG Mon Dec 30 19:53:41 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3549CBE9; Mon, 30 Dec 2013 19:53:41 +0000 (UTC) Received: from kuller.raad.tartu.ee (kuller.raad.tartu.ee [213.184.43.8]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C10961928; Mon, 30 Dec 2013 19:53:40 +0000 (UTC) Received: from kuller.raad.tartu.ee (localhost [127.0.0.1]) by kuller.raad.tartu.ee (Postfix) with ESMTP id 50AE139821; Mon, 30 Dec 2013 21:53:38 +0200 (EET) X-Virus-Scanned: amavisd-new at post.raad.tartu.ee Received: from kuller.raad.tartu.ee ([127.0.0.1]) by kuller.raad.tartu.ee (kuller.raad.tartu.ee [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qzRS-Lu3Lw90; Mon, 30 Dec 2013 21:53:34 +0200 (EET) Received: by kuller.raad.tartu.ee (Postfix, from userid 80) id 71BAB39840; Mon, 30 Dec 2013 21:53:33 +0200 (EET) Received: from 76.20.190.90.dyn.estpak.ee (76.20.190.90.dyn.estpak.ee [90.190.20.76]) by webmail.raad.tartu.ee (Horde Framework) with HTTP; Mon, 30 Dec 2013 21:53:33 +0200 Message-ID: <20131230215333.14922qizl4ug0qqs@webmail.raad.tartu.ee> Date: Mon, 30 Dec 2013 21:53:33 +0200 From: Toomas Aas To: Adrian Chadd Subject: Re: TP-Link TL-WN727N V3 - cannot scan or connect to anything References: <20131230203659.957651ynumecyn40@webmail.raad.tartu.ee> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3.7) X-Originating-IP: 90.190.20.76 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.17 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, 30 Dec 2013 19:53:41 -0000 Hello Adrian! Thanks for the idea. I tried with just "ifconfig wlan0 up". Indeed it seems that the "scan" =20 is redundant, as wlandebug output shows that a scan is started =20 immediately after I issue the "ifconfig wlan0 up" command. Alas, the =20 scan result is still the same as in my original message, and "ifconfig =20 wlan0 list scan" shows no results. On Mon, 30 Dec 2013 Adrian Chadd wrote: > Don't do up scan. > > Just do > > ifconfig wlan0 up > > ifconfig wlan0 list scan > > There may be some stupid race conditions there. > > -a > > > On 30 December 2013 10:36, Toomas Aas wrote: >> Hello! >> >> I posted a request on the FreeBSD forums on this topic, but got no >> responses: >> http://forums.freebsd.org/viewtopic.php?f=3D46&t=3D43895 >> >> So, I'll repeat it here hoping that it may catch the attention of some >> experts who are maybe not following the forums. >> >> I'm trying to get TP-Link TL-WN727N V3 USB wifi adapter working with my >> FreeBSD 9.2-STABLE amd64 system (r259472). It seems to me that this adap= ter >> uses Ralink RT5370 chipset, and support for this was merged to 9-STABLE = in >> r259457. >> >> I plug in the adapter and it seems to be recognized: >> >> Dec 18 18:13:15 kernel: ugen2.2: at usbus2 >> Dec 18 18:13:15 kernel: run0: <1.0> on usbus2 >> Dec 18 18:13:15 kernel: run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MI= MO >> 1T1R), address f8:1a:67:19:40:24 >> >> I create the wlan device: >> >> # ifconfig wlan0 create wlandev run0 >> >> Then I try to scan, but both of the below commands return immediately >> without any result: >> >> # ifconfig wlan0 up scan >> # ifconfig wlan0 list scan >> >> I tried running wlandebug -i wlan0 +scan, and an endless supply of follo= wing >> is recorded in /var/log/messages: >> >> Dec 18 21:47:26 kernel: wlan0: ieee80211_check_scan: active scan, append >> Dec 18 21:47:26 kernel: wlan0: ieee80211_scanreq: flags 0x1b duration >> 0x7fffffff mindwell 0 maxdwell 0 nssid 0 >> Dec 18 21:47:26 kernel: wlan0: scan_update_locked: current scanner is >> , switch to >> Dec 18 21:47:26 kernel: wlan0: start_scan_locked: active scan, duration >> 2147483647 mindwell 0 maxdwell 0, desired mode auto, flush >> Dec 18 21:47:26 kernel: wlan0: scan set 1g, 6g, 11g, 7g, 2g, 3g, 4g, 5g,= 8g, >> 9g, 10g dwell min 20ms max 200ms >> Dec 18 21:47:26 kernel: wlan0: start_scan_locked: active scan already in >> progress >> Dec 18 21:47:26 kernel: wlan0: scan_task: chan 1b -> 1g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:26 kernel: wlan0: scan_task: chan 1g -> 6g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:27 kernel: wlan0: scan_task: chan 6g -> 11g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:27 kernel: wlan0: scan_task: chan 11g -> 7g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:27 kernel: wlan0: scan_task: chan 7g -> 2g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:27 kernel: wlan0: scan_task: chan 2g -> 3g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:27 kernel: wlan0: scan_task: chan 3g -> 4g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:28 kernel: wlan0: scan_task: chan 4g -> 5g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:28 kernel: wlan0: scan_task: chan 5g -> 8g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:28 kernel: wlan0: scan_task: chan 8g -> 9g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:28 kernel: wlan0: scan_task: chan 9g -> 10g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:29 kernel: wlan0: sta_pick_bss: no scan candidate >> Dec 18 21:47:29 kernel: wlan0: scan_task: done, restart [ticks 1706420, >> dwell min 20 scanend 2149187524] >> Dec 18 21:47:29 kernel: wlan0: scan_task: chan 10g -> 1g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:29 kernel: wlan0: scan_task: chan 1g -> 6g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:29 kernel: wlan0: scan_task: chan 6g -> 11g [active, dwe= ll >> min 20ms max 200ms] >> Dec 18 21:47:29 kernel: wlan0: scan_task: chan 11g -> 7g [active, dwe= ll >> min 20ms max 200ms] >> >> I've watched this output for 10 minutes and it just seems to go on >> indefinitely. I'm not sure what to think of this. There are several acce= ss >> points near me that the scan should find, but it doesn't. When I plug in= the >> same adapter to a laptop with Windows 7, it successfully shows the nearb= y >> access points and allows me to connect to one, so the adapter is not bro= ken. >> Any ideas for further troubleshooting are welcome. >> >> -- >> Toomas Aas >> >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.o= rg" > --=20 Toomas Aas Tartu linnakantselei arvutiv=F5rgu peaspetsialist tel 736 1274 mob 513 6493