From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 14 19:54:06 2014 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F66C328 for ; Sun, 14 Dec 2014 19:54:06 +0000 (UTC) Received: from mail-yk0-f169.google.com (mail-yk0-f169.google.com [209.85.160.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1040C870 for ; Sun, 14 Dec 2014 19:54:05 +0000 (UTC) Received: by mail-yk0-f169.google.com with SMTP id 79so4459631ykr.0 for ; Sun, 14 Dec 2014 11:53:59 -0800 (PST) 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:date :message-id:subject:from:to:cc:content-type; bh=fOQoEEZNt9FBcQZaiyo363We4gBJgfjL36DC+dFlkfs=; b=fj68WfDJUCF4MKZpbONVrYiPVybntvAKaYTQNnOosRk3Llm2fV+9CQgB2QXh2TgYUj 03ErtK71x6rUSxnZE/p+p1NN4ckNWtr+Bh7pedGOTCk/G6PVKYpkh5qeUu7xd/XuSPtC fSQjKe/HJOTeBQKAxpO5xK+FXaRp468aSgSFZBYEj6WU/Ok4/90ewwtvCkVmofCgTu// RlfR/K6Lk2sE1Hva4fscBDSJrTg1fgyXVzluVIKEgbqwpqgPJg+/cUFkFceV4GzvPcI4 hcKo9G0JWwTL7kgnqBKFZV++HCKikNRUI3eeM9lbUxKw9VLJRT8s1IdBy5osVhFoBVt2 xrjA== X-Gm-Message-State: ALoCoQm/bv6DQ3rn61yXNxbCS4xN8OThCQruH3ZwM4H4VNdIjlxUbjbEDqmXtdiFPy4ZDBZl5nnG MIME-Version: 1.0 X-Received: by 10.236.39.69 with SMTP id c45mr19662264yhb.117.1418586839228; Sun, 14 Dec 2014 11:53:59 -0800 (PST) Received: by 10.170.156.197 with HTTP; Sun, 14 Dec 2014 11:53:59 -0800 (PST) In-Reply-To: References: Date: Sun, 14 Dec 2014 14:53:59 -0500 Message-ID: Subject: Re: Problem with Atheros adapter (TP-LINK TL-WDN4800, AR9380) From: David Blewett To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 14 Dec 2014 19:54:06 -0000 If this would be easier on IRC, I'm BlueAidan on Freenode. Output: (kgdb) list *0xffffffff8045161d 0xffffffff8045161d is in ar9300_ani_ar_poll (/usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c:1180). 1175 */ 1176 if (!DO_ANI(ah)) { 1177 return; 1178 } 1179 1180 ofdm_phy_err_rate = 1181 ani_state->ofdm_phy_err_count * 1000 / ani_state->listen_time; 1182 cck_phy_err_rate = 1183 ani_state->cck_phy_err_count * 1000 / ani_state->listen_time; 1184 Thanks, David Blewett On Sun, Dec 14, 2014 at 2:39 PM, Adrian Chadd wrote: > > Hi! > > Hm, an integer divide by zero fault. Tsk. > > can you do this: > > kgdb /boot/kernel/kernel > list *0xffffffff8045161d > > Thanks! > > > > -adrian > > > On 14 December 2014 at 11:24, David Blewett > wrote: > > Hi All: > > > > I've been having issues with a TP-LINK TL-WDN4800 PCI Express adapter [1] > > that seem to have become worse since upgrading to 10.1-RELEASE. Since > then, > > I've had a couple of kernel panics. I use the adapter in hostapd mode as > my > > main WiFi access point. I would appreciate any help in making my setup > more > > reliable, and am open to trying to just about anything to help > > troubleshoot. > > > > The problems that I see are regular disconnections from a Macbook Pro > > client. When this happens, sometimes the wifi icon says it is connected, > > but I cannot actually transmit anything to the host (i.e., pings fail). > The > > only recourse is to turn the mbp's wifi off, then back on. This *usually* > > succeeds, but sometimes does not. I also have an iPad that has similar > > issues; turning wifi off and back on is usually sufficient to restore > > connectivity. > > > > This is my /etc/rc.conf: > > > > wlans_ath0="wlan0" > > create_args_wlan0="wlanmode hostap bssid" > > ifconfig_wlan0="HOSTAP ssid MiddleEarth mode 11ng channel 2" > > > > and /etc/hostapd-wlan0.conf: > > > > interface=wlan0 > > debug=2 > > ctrl_interface=/var/run/hostapd > > ctrl_interface_group=wheel > > ssid=MiddleEarth > > wpa=2 > > wpa_passphrase=xxxx > > wpa_key_mgmt=WPA-PSK > > wpa_pairwise=CCMP > > > > I see a lot of this in the logs: > > > > ath0: stuck beacon; resetting (bmiss count 8) > > > > However, from what I've read these are due to channel congestion and are > to > > be expected. The kernel panics look like this: > > > > Fatal trap 18: integer divide fault while in kernel mode > > cpuid = 1; apic id = 11 > > instruction pointer = 0x20:0xffffffff8045161d > > stack pointer = 0x28:0xfffffe00e43bb760 > > frame pointer = 0x28:0xfffffe00e43bb7b0 > > code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, long 1, def32 0, gran 1 > > processor eflags = interrupt enabled, ath0: stuck beacon; resetting > > (bmiss count 8) > > resume, IOPL = 0 > > current process = 12 (swi4: clock) > > trap number = 18 > > panic: integer divide fault > > cpuid = 0 > > KDB: stack backtrace: > > #0 0xffffffff80963000 at kdb_backtrace+0x60 > > #1 0xffffffff80928125 at panic+0x155 > > #2 0xffffffff80d24f1f at trap_fatal+0x38f > > #3 0xffffffff80d24b7c at trap+0x75c > > #4 0xffffffff80d0a782 at calltrap+0x8 > > #5 0xffffffff8045b248 at ar9300_ani_poll_freebsd+0x48 > > #6 0xffffffff804093d6 at ath_calibrate+0xf6 > > #7 0xffffffff8093d557 at softclock_call_cc+0x177 > > #8 0xffffffff8093d994 at softclock+0x94 > > #9 0xffffffff808faf4b at intr_event_execute_handlers+0xab > > #10 0xffffffff808fb396 at ithread_loop+0x96 > > #11 0xffffffff808f8b6a at fork_exit+0x9a > > > > Here is the pciconf output: > > > > ath0@pci0:2:0:0: class=0x028000 card=0x3112168c chip=0x0030168c > rev=0x01 > > hdr=0x00 > > vendor = 'Atheros Communications Inc.' > > device = 'AR9300 Wireless LAN adaptor' > > class = network > > > > 1. http://www.tp-link.com/lk/products/details/?model=TL-WDN4800 > > > > Thanks, > > > > David Blewett > > _______________________________________________ > > freebsd-wireless@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to " > freebsd-wireless-unsubscribe@freebsd.org" >