From owner-freebsd-wireless@FreeBSD.ORG Wed Oct 19 06:52:01 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2C32106566C for ; Wed, 19 Oct 2011 06:52:01 +0000 (UTC) (envelope-from jdevelop@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6A93B8FC17 for ; Wed, 19 Oct 2011 06:52:01 +0000 (UTC) Received: by eyd10 with SMTP id 10so1748242eyd.13 for ; Tue, 18 Oct 2011 23:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=5opFOP6R0HmtCcT/zE+iXTMPF+wj8djBZ8g+HoTEcjo=; b=fMDiE22cyX2CwceOql2VIpc6rMcW8rluoZLK0povVWmRBWW9agNX1YlveTTET09TOy Lnl38Y4QPwA27/ZLUKLj7EHTq7yw1FMMvK0g0Xf8Ws517Pr9rYV3whYv17b7MsO3CHU1 FGDB/NLsj6GEwjpMb31j0m/MW6TEQ1QpzKyrk= Received: by 10.223.77.77 with SMTP id f13mr1540951fak.19.1319005695470; Tue, 18 Oct 2011 23:28:15 -0700 (PDT) Received: from devbox (untold-steeple.volia.net. [93.72.182.50]) by mx.google.com with ESMTPS id b10sm8102829fam.1.2011.10.18.23.28.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Oct 2011 23:28:14 -0700 (PDT) Received: from bofh by devbox with local (Exim 4.76 (FreeBSD)) (envelope-from ) id 1RGPdN-00019l-8W for freebsd-wireless@freebsd.org; Wed, 19 Oct 2011 09:28:13 +0300 Date: Wed, 19 Oct 2011 09:28:12 +0300 From: Eugene Dzhurinsky To: freebsd-wireless@freebsd.org Message-ID: <20111019062812.GA4207@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Atheros 9285 and low signal level X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 19 Oct 2011 06:52:02 -0000 Hello! I recently get ASUS K43SJ laptop with Atheros wireless card, which is recognized as: >dmesg | grep ath ath0: mem 0xde600000-0xde60ffff irq 17 at device 0.0 on pci3 ath0: [ITHREAD] ath0: AR9285 mac 192.2 RF5133 phy 14.0 >pciconf -lv: ath0@pci0:3:0:0: class=0x028000 card=0x2c371a3b chip=0x002b168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'Atheros AR9285 Wireless LAN 802.11 a/b/g/n Controller (AR928x)' class = network > ifconfig wlan1 wlan1: flags=8843 metric 0 mtu 1500 ether 74:2f:68:ad:a4:34 inet 192.168.1.103 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11g status: associated ssid bofhe channel 6 (2437 MHz 11g) bssid 1c:af:f7:9b:59:0c regdomain 96 indoor ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL >uname -a: FreeBSD devbox 8.2-STABLE FreeBSD 8.2-STABLE #4: Wed Oct 19 00:40:20 EEST 2011 root@devbox:/usr/obj/usr/src/sys/BOFHMOD amd64 The problem with the card is that it loses the connection with AP when it's relatively far from it (like 5 meters), and gets it back again when laptop gets closer to AP. I tried with SONY VAIO laptop - and it easily reports good signal level while ASUS losts it's connection. Additionally, airodump-ng shows only 2 access points around if started at ASUS laptop, but on another host it shows much more stations. So I assume something is wrong with the card on ASUS laptop, how can I debug problems? I tried to set: > wlandebug -i wlan1 +xrate+assoc+auth+scan and watched output: Oct 19 08:54:50 devbox kernel: wlan1: scan set 6g dwell min 20ms max 200ms Oct 19 08:54:50 devbox kernel: wlan1: scan_task: chan 6g -> 6g [active, dwell min 20ms max 200ms] Oct 19 08:54:51 devbox kernel: wlan1: sta_pick_bss: no scan candidate Oct 19 08:54:51 devbox kernel: wlan1: scan_task: done, [ticks 401164, dwell min 20 scanend 2147884610] Oct 19 08:54:51 devbox kernel: wlan1: notify scan done Oct 19 08:54:56 devbox kernel: wlan1: ieee80211_ioctl_scanreq: flags 0x20052 duration 0x7fffffff mindwell 0 maxdwell 0 nssid 1 Oct 19 08:54:56 devbox kernel: wlan1: ieee80211_check_scan: active scan, append, nojoin, once Oct 19 08:54:56 devbox kernel: wlan1: sta_pick_bss: no scan candidate Oct 19 08:54:56 devbox kernel: wlan1: start_scan_locked: active scan, duration 2147483647 mindwell 0 maxdwell 0, desired mode auto, append, nojoin, once Can somebody please advice how to debug and fix the problem? Thank you in advance! -- Eugene N Dzhurinsky