From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 13 08:40:13 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FE6C106564A for ; Tue, 13 Dec 2011 08:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 62DC98FC16 for ; Tue, 13 Dec 2011 08:40:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBD8eD1E065826 for ; Tue, 13 Dec 2011 08:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBD8eD42065825; Tue, 13 Dec 2011 08:40:13 GMT (envelope-from gnats) Resent-Date: Tue, 13 Dec 2011 08:40:13 GMT Resent-Message-Id: <201112130840.pBD8eD42065825@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gustau Pérez Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8DBE1065672 for ; Tue, 13 Dec 2011 08:32:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A86168FC18 for ; Tue, 13 Dec 2011 08:32:57 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBD8Wvsd029408 for ; Tue, 13 Dec 2011 08:32:57 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pBD8Wveq029407; Tue, 13 Dec 2011 08:32:57 GMT (envelope-from nobody) Message-Id: <201112130832.pBD8Wveq029407@red.freebsd.org> Date: Tue, 13 Dec 2011 08:32:57 GMT From: Gustau Pérez To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/163237: AR5416 as HostAP. Delays among clients when X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2011 08:40:13 -0000 >Number: 163237 >Category: kern >Synopsis: AR5416 as HostAP. Delays among clients when >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 13 08:40:13 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Gustau Pérez >Release: FreeBSD 10.0-CURRENT #31 r227346 >Organization: >Environment: FreeBSD harkserver 9.9-CURRENT FreeBSD 10.0-CURRENT #31 r227364: Thu Nov 24 18:04:08 CET 2011 root@harkserver:/usr/obj/root/deviant2/sys/CUSTOM amd64 >Description: This is the environment: I'm using an AR5416 card acting as an AP with hostap in 11g mode. I'm running g mode because I did not have time to test the 11n work yet. The box is running CURRENT/AMD64. These are the symptoms: A few days ago I began to see very big delays between the AP and my laptop (which has an AR9287 with FreeBSD/AMD64 CURRENT). I tried a simple icmp with 1 second between pings. It is quite curious thing that the delays increase from 30ms until around 100ms (those times are in the same order of magnitude of a ping to google) and then they fall til 30ms again. It did not work like that. I tested with different clients (an iPhone, a laptop running FreeBSD with an Intel 3945, an asus eeePC laptop with windows7 and other devices). All of them showed the same behavior. No matter if I'm accessing the HostAP box or trying to access internet, everything takes long. The bisect lead me to commit r227364, which is one quite large. Running the previous commit fixes it. >How-To-Repeat: Compile a custom kernel with r227364 in a box with an AR5416 and use the box as an AP. >Fix: >Release-Note: >Audit-Trail: >Unformatted: