From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 02:11:25 2012 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 98D66106564A; Sun, 29 Jul 2012 02:11:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 58AE18FC12; Sun, 29 Jul 2012 02:11:25 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so7947116pbb.13 for ; Sat, 28 Jul 2012 19:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9XtxftE5fEH45fwvBVdYhWUTJdNT/7S3hzzFq/ME35Y=; b=I26SK1XS4/Ia4vUj7nSL/8QNTDpukuiNCTr/dYc4K/od6iKlJtW5Ce6pJGdSyZUDm/ upCLPZMgzLd/yXi+MFzKzGnEbApDJIiz6rOLl1Mf8iXjxaJ0LtGbouOEP7nvMokgrSDE rjrZv4qKZccDF4Bl+S+MRauf5fHlTmdD629nbnRsKz/2h+8vQZl+M4iDOFZrYNqlTeMV qxpgRQtPX/5ZnCWKwPh3tbk77vWBBfViHxhWETJZ2+rzq8PzIPSWbxWM9Mbbtna5Bjt3 3LKzWqGbdgOcWVqPA+NXpqeTtBLz0OVd4QtZynd4rwAPlnpB3zk+ZfzReIvqy4MfsNz1 WObg== MIME-Version: 1.0 Received: by 10.68.223.164 with SMTP id qv4mr24972775pbc.20.1343527884911; Sat, 28 Jul 2012 19:11:24 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Sat, 28 Jul 2012 19:11:24 -0700 (PDT) In-Reply-To: <201207270548.q6R5mgiS070136@svn.freebsd.org> References: <201207270548.q6R5mgiS070136@svn.freebsd.org> Date: Sat, 28 Jul 2012 19:11:24 -0700 X-Google-Sender-Auth: RPiMqVoi9jWsPqj5aifDPYCf5kA Message-ID: From: Adrian Chadd To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: svn commit: r238824 - head/sys/dev/ath 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: Sun, 29 Jul 2012 02:11:25 -0000 Hi, This broke -HEAD. Let me go and figure out what I need to do to fix the descriptor offset math. It only showed up under heavy iperf testing. Ping wasn't enough to trigger the crash. :( Adrian On 26 July 2012 22:48, Adrian Chadd wrote: > Author: adrian > Date: Fri Jul 27 05:48:42 2012 > New Revision: 238824 > URL: http://svn.freebsd.org/changeset/base/238824 > > Log: > Migrate the descriptor allocation function to not care about the number > of buffers, only the number of descriptors. > > This involves: > > * Change the allocation function to not use nbuf at all; > * When calling it, pass in "nbuf * ndesc" to correctly update how many > descriptors are being allocated. > > Whilst here, fix the descriptor allocation code to correctly allocate > a larger buffer size if the Merlin 4KB WAR is required. It overallocates > descriptors when allocating a block that doesn't ever have a 4KB boundary > being crossed, but that can be fixed at a later stage. > > Modified: > head/sys/dev/ath/if_ath.c > head/sys/dev/ath/if_ath_misc.h > > Modified: head/sys/dev/ath/if_ath.c > ============================================================================== > --- head/sys/dev/ath/if_ath.c Fri Jul 27 05:37:01 2012 (r238823) > +++ head/sys/dev/ath/if_ath.c Fri Jul 27 05:48:42 2012 (r238824) > @@ -2773,7 +2773,7 @@ ath_load_cb(void *arg, bus_dma_segment_t > int > ath_descdma_alloc_desc(struct ath_softc *sc, > struct ath_descdma *dd, ath_bufhead *head, > - const char *name, int ds_size, int nbuf, int ndesc) > + const char *name, int ds_size, int ndesc) > { > #define DS2PHYS(_dd, _ds) \ > ((_dd)->dd_desc_paddr + ((caddr_t)(_ds) - (caddr_t)(_dd)->dd_desc)) > @@ -2785,11 +2785,11 @@ ath_descdma_alloc_desc(struct ath_softc > dd->dd_descsize = ds_size; > > DPRINTF(sc, ATH_DEBUG_RESET, > - "%s: %s DMA: %u buffers %u desc/buf, %d bytes per descriptor\n", > - __func__, name, nbuf, ndesc, dd->dd_descsize); > + "%s: %s DMA: %u desc, %d bytes per descriptor\n", > + __func__, name, ndesc, dd->dd_descsize); > > dd->dd_name = name; > - dd->dd_desc_len = dd->dd_descsize * nbuf * ndesc; > + dd->dd_desc_len = dd->dd_descsize * ndesc; > > /* > * Merlin work-around: > @@ -2797,8 +2797,8 @@ ath_descdma_alloc_desc(struct ath_softc > * Assume one skipped descriptor per 4KB page. > */ > if (! ath_hal_split4ktrans(sc->sc_ah)) { > - int numdescpage = 4096 / (dd->dd_descsize * ndesc); > - dd->dd_desc_len = (nbuf / numdescpage + 1) * 4096; > + int numpages = dd->dd_desc_len / 4096; > + dd->dd_desc_len += ds_size * numpages; > } > > /* > @@ -2834,7 +2834,7 @@ ath_descdma_alloc_desc(struct ath_softc > &dd->dd_dmamap); > if (error != 0) { > if_printf(ifp, "unable to alloc memory for %u %s descriptors, " > - "error %u\n", nbuf * ndesc, dd->dd_name, error); > + "error %u\n", ndesc, dd->dd_name, error); > goto fail1; > } > > @@ -2883,7 +2883,7 @@ ath_descdma_setup(struct ath_softc *sc, > > /* Allocate descriptors */ > error = ath_descdma_alloc_desc(sc, dd, head, name, ds_size, > - nbuf, ndesc); > + nbuf * ndesc); > > /* Assume any errors during allocation were dealt with */ > if (error != 0) { > > Modified: head/sys/dev/ath/if_ath_misc.h > ============================================================================== > --- head/sys/dev/ath/if_ath_misc.h Fri Jul 27 05:37:01 2012 (r238823) > +++ head/sys/dev/ath/if_ath_misc.h Fri Jul 27 05:48:42 2012 (r238824) > @@ -86,7 +86,7 @@ extern void ath_setslottime(struct ath_s > > extern int ath_descdma_alloc_desc(struct ath_softc *sc, > struct ath_descdma *dd, ath_bufhead *head, const char *name, > - int ds_size, int nbuf, int ndesc); > + int ds_size, int ndesc); > extern int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, > ath_bufhead *head, const char *name, int ds_size, int nbuf, > int ndesc); From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 02:25:46 2012 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 BDF46106564A for ; Sun, 29 Jul 2012 02:25:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 90F128FC0A for ; Sun, 29 Jul 2012 02:25:46 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so7959197pbb.13 for ; Sat, 28 Jul 2012 19:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gplvH3IiS5DDBFYOaBDxN5Qk3oV3j7Ia2dW9xc333m8=; b=YgWoLXts/bMXHn5ZP/urjV4xhsyXJfnN5yZRi9ftQrzdVvI2aClcjQ/fdPe6VcWr4z RgK0kUiNTOy24EEUVUSIZvIno5zCtO/Ycl60HHRKpgB1r9CgcGRtP4jX7Jp5rThYbhqR lIcoNZO8WHmYRo+0oa1ShuhS/pciBf94WXNonoqnx6CA8HxoduiSkSvKjr/Sk0qDpXJ0 Jr87gC2whUDJ/BTVgLnZ3zl4aNYqbkLD1tT6bQciyyR7iuu3FNKLmYiV8VkbcuTfTP9G 9wZOdaTwJoY1+YZxaC/MP2FjH3VS82u7lQ3f/vY4pEbuEgW6FnGWSZG776zCOEd6USpx 82iw== MIME-Version: 1.0 Received: by 10.66.88.39 with SMTP id bd7mr15337012pab.50.1343528746351; Sat, 28 Jul 2012 19:25:46 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sat, 28 Jul 2012 19:25:46 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Jul 2012 19:25:46 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath lor 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: Sun, 29 Jul 2012 02:25:46 -0000 Hi everyone, I'd really appreciate some help with this LOR. Specifically, at least explicitly mapping out the different entry points into these two locks that can/do cause issues, so we can see whether the LOR can be worked around by ensuring the problematic locking doesn't occur in parallel. I don't have the time to do all of the net80211 locking fixes that are required _and_ port new Atheros 802.11n support _and_ implement hostap power save / filtered frames support _and_ fix up the aggregation session hangs that people see. I really, really could do with some help here. I'll provide free, cool wifi hardware to anyone who tackles and fixes any of the above issues. :-) Thanks, Adrian On 27 July 2012 12:33, Adrian Chadd wrote: > .. hm, so. This is quite annoying, really. > > ieee80211_iterate_nodes() is called from hostap_newstate() to do a > bunch of things, including: > > * calling sta_diassoc() on each STA; > * handling CSA for each STA (for DFS channel change) via sta_csa(); > * dropping stations when doing a CSA (via sta_drop()); > > Now, at this point the _newstate() routine has the comlock > (IEEE80211_LOCK()) held. > > So, any function that is passed to ieee80211_iterate_nodes() that also > tries to grab the comlock is going to silently fail. > > It may _be_ that the only sensible thing to do here is to force the > comlock is held before calling ieee80211_iterate_nodes(), and then > update all the functions that it calls to require the comlock be held. > > So, that'd currently be (in net80211, ignoring what are in drivers atm): > > * sta_leave() > * load_ucastkey() > * sta_disassoc() > * sta_csa() > * sta_drop() > * get_sta_space() > * get_sta_info() > * domlme() > * mesh_vdetach_peers() > * mesh_checkid() > * get_adhoc_rssi() > * get_hostap_rssi() > * get_mesh_rssi() > > .. and that's kind of scary, because a lot of those will call into the > driver and do things like transmit frames; and we absolutely can't > hold the comlock when doing that or all kinds of bad LORs will occur. > > Fixing this is going to take a little more time/patience. I'm open to > other ideas/suggestions on this. > > > > Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 02:36:38 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6EA9D106564A for ; Sun, 29 Jul 2012 02:36:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4063D8FC08 for ; Sun, 29 Jul 2012 02:36:38 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so7968356pbb.13 for ; Sat, 28 Jul 2012 19:36:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ojuXbsqF9xCnydlbq5RDSJwNIthzZkR9XDgVKWGegyc=; b=k1NLnmYJdWhLD68LjkTDkcd1Jy2622J7UpM9Te3HsExY4gP0/KrNgR3veHyph//2pm uUTZm5y+ftC5ubsuHCN9u1PE7B2AZ9JSTaLrJtnkVcy1NpK/nEzhiZBCjraOpKbTn67J aBwoD9wg8rII8Xh6kHtqZrT0IhXcMHA/x4xJpbG8EwAW354YLtDGXXK2gwuYyl+XCmwF T6/hGFlz3OlEjHLChsQ3SylH+rJdiuVtCRvEtw6LcOGSd+GzKc7lS7RULsAnGDVTIsgA d8vDQKqqLxYq0Ws8eWxx5uO46RvwsafjWEtP3B2iIoO+WdBA+/Dd1zxg3COI+09PYkTV CxYw== MIME-Version: 1.0 Received: by 10.68.223.164 with SMTP id qv4mr25065497pbc.20.1343529398062; Sat, 28 Jul 2012 19:36:38 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sat, 28 Jul 2012 19:36:38 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Jul 2012 19:36:38 -0700 Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath lor 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: Sun, 29 Jul 2012 02:36:38 -0000 Hm, if someone's up for a bit of coding, here's my suggestIon: * create an iterator struct which just contains an array of ieee80211_node entries; * write an iterator function that _just_ populates that iterator struct with ieee80211 node entries, but after having locked them; * then, once the call to ieee80211_iterate_node() is done, the iterator struct will have a list of nodes to iterate over; * then just call the original callback over each member of that iterator struct node array, derefing nodes as you go along. That avoids calling any callbacks with the iterator node table lock held. It's dirty and I would prefer the use of something more modern, like transactional memory or generation counts, but I'd really like this bug squished so kim and others can continue hacking/testing this stuff. It'd also eliminate a rather annoying LOR from the TODO list. So, the hard bit is done. Can someone please do the easy bit for me? :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 10:52:01 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 79CB8106566C for ; Sun, 29 Jul 2012 10:52:01 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 24F208FC0A for ; Sun, 29 Jul 2012 10:52:01 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:9db0:4615:f8f5:e1a7]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 0485E4AC32; Sun, 29 Jul 2012 14:51:59 +0400 (MSK) Date: Sun, 29 Jul 2012 14:51:52 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <978320748.20120729145152@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> <1214412854.20120722020752@serebryakov.spb.r u> <1468023399.20120723175744@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org 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, 29 Jul 2012 10:52:01 -0000 Hello, Adrian. You wrote 23 =E8=FE=EB=FF 2012 =E3., 23:04:24: AC> .. and please file a PR with all the details to date and let me know AC> the PR number. kern/170254 But without association debugging yet. --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 11:23:31 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AF45106567B; Sun, 29 Jul 2012 11:23:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id DC22D8FC08; Sun, 29 Jul 2012 11:23:30 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so8463553pbb.13 for ; Sun, 29 Jul 2012 04:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=PjSorLsWG+p3O7JDiz6kzdAcE4EedrwaaRbB97tKRDE=; b=PkD4FyzttoZeop2tuBe1d7Kv//mztqQH6KznJopKNzfGueZQq+Pv4AaqG6x9gm5A4j V2IztBOoa+Y3TVmUrSszyOIr7LuOreJ4WEF7q+hP1J7CCModQkuAAckqWhM7tO9xKzaw YMFAJXzXmxvekeYlaxf7zCcY0VJRSTVcNW1P3+vfcbUdicdtg2Lvk8R4SJ2x7fJ5/qwb EN1TM0NnxPnUxqB8PdCHJXvnONSzjekpIs0EleofCNMsbzOAjyZznSnq+3eAEdQDZWBs KAZ7ZYgLIxXYt9KxBn6BCiFEP+3jK/+Y6Vx5vo7MDRhaHFaBYAviQEgYbeRoprFoLEkT ZI8g== MIME-Version: 1.0 Received: by 10.66.81.232 with SMTP id d8mr17339534pay.66.1343561010460; Sun, 29 Jul 2012 04:23:30 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 04:23:30 -0700 (PDT) In-Reply-To: <978320748.20120729145152@serebryakov.spb.ru> References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> <1468023399.20120723175744@serebryakov.spb.ru> <978320748.20120729145152@serebryakov.spb.ru> Date: Sun, 29 Jul 2012 04:23:30 -0700 Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client 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: Sun, 29 Jul 2012 11:23:31 -0000 On 29 July 2012 03:51, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 23 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 23:04:24: > > AC> .. and please file a PR with all the details to date and let me know > AC> the PR number. > kern/170254 > But without association debugging yet. I saw, thanks. Please enable reset debugging too - sysctl dev.ath.X.debug=3D0x20. Also, hm: Jul 27 04:24:09 gateway kernel: ath0: ath_bar_response: called; tap=3D0xc48c32b8, atid=3D0xc48c4df4, txa_tid=3D0, atid->tid=3D0, status=3D1= , attempts=3D50 Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: tid=3D0xc48c4df4, called Jul 27 04:24:09 gateway kernel: ath0: ath_bar_response: called; tap=3D0xc48c32b8, atid=3D0xc48c4df4, txa_tid=3D0, atid->tid=3D0, status=3D1= , attempts=3D50 Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: tid=3D0xc48c4df4, called Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: bar_tx=3D0, bar_wait=3D0: ? That's very odd. I wonder if I broke that specific handling @ attempt=3D50. adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 11:39:40 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C26DA10656AB for ; Sun, 29 Jul 2012 11:39:40 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6C4DA8FC1F for ; Sun, 29 Jul 2012 11:39:40 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:9db0:4615:f8f5:e1a7]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id A421B4AC2D; Sun, 29 Jul 2012 15:39:38 +0400 (MSK) Date: Sun, 29 Jul 2012 15:39:30 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <402841776.20120729153930@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> <1468023399.20120723175744@serebryakov.spb.ru> <978320748.20120729145152@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org 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, 29 Jul 2012 11:39:40 -0000 Hello, Adrian. You wrote 29 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 15:23:30: AC> I saw, thanks. AC> Please enable reset debugging too - sysctl dev.ath.X.debug=3D0x20. Done :) I'll post new debug messages as soon as they'll appear. BTW, I've tried association debugging and got a TONS of such messages when client (Blackberry PlayBook) goes to sleep (but it is still associated): Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupancy= change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 I've turned assotiation debugging off (and posted folloup to PR). AC> Jul 27 04:24:09 gateway kernel: ath0: ath_bar_response: called; AC> tap=3D0xc48c32b8, atid=3D0xc48c4df4, txa_tid=3D0, atid->tid=3D0, status= =3D1, AC> attempts=3D50 AC> Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: AC> tid=3D0xc48c4df4, called AC> Jul 27 04:24:09 gateway kernel: ath0: ath_bar_response: called; AC> tap=3D0xc48c32b8, atid=3D0xc48c4df4, txa_tid=3D0, atid->tid=3D0, status= =3D1, AC> attempts=3D50 AC> Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: AC> tid=3D0xc48c4df4, called AC> Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: AC> bar_tx=3D0, bar_wait=3D0: ? AC> That's very odd. I wonder if I broke that specific handling @ attempt= =3D50. As side note: I'm sure, that client was sleeping at this time, as I was sleeping for sure :) --=20 // Black Lion AKA Lev Serebryakov From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 17:39:49 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 27E47106566C for ; Sun, 29 Jul 2012 17:39:49 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EF5728FC12 for ; Sun, 29 Jul 2012 17:39:48 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so8868686pbb.13 for ; Sun, 29 Jul 2012 10:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:x-priority:x-has-attach:x-mailer:mime-version :message-id:content-type:content-transfer-encoding; bh=7sRkXymC1tzCnh4ZmrfV0odhkMgZOjhD085E5Ef0Rew=; b=Fa1Lyd67DGo+t/xjuYPSwXDl+hoEfuuEiMR0+cAdZM/z9aQHeB6voREW4XbUBkHquM OwTPGVEiBWlHC0YbG/mFTGD59U1T/PNvN+cutWtb33CukNTf8zpyO7GknJoOsyU2UC5C EBGNZ9FT37Alyv6DPJoaCVxPyzZJTE8ddC8yyfyCkeRKSrUwPqmEe+qErvw+FWA4Rdfw boIbHGtyplW3b9WVFpMfR0SpgC0/d47SqjUQs1OJ1BfPk0HFVzoIJb6mHnZG5tc3FwW1 TgdyD50on/DlzVwKoCwFHSZBvjSH+k+FC4Mosq+lKapBTB/osREqbqQcJtmWT7e3zEWn 1sWg== Received: by 10.66.76.196 with SMTP id m4mr19221651paw.61.1343583587660; Sun, 29 Jul 2012 10:39:47 -0700 (PDT) Received: from HonestQiaoNB ([123.119.71.65]) by mx.google.com with ESMTPS id ru10sm6166790pbc.50.2012.07.29.10.39.38 (version=SSLv3 cipher=OTHER); Sun, 29 Jul 2012 10:39:46 -0700 (PDT) Date: Mon, 30 Jul 2012 01:39:36 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: freebsd-wireless X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[cn] Mime-Version: 1.0 Message-ID: <201207300139326668335@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Sun, 29 Jul 2012 17:57:49 +0000 Subject: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Sun, 29 Jul 2012 17:39:49 -0000 SSBoYXZlIGEgbGVub3ZvIHRoaW5rcGFkIHgyMDFpIHdoaWNoIG9zIGlzIEZyZWVCU0Q5LjEtcHJl cmVsZWFzZS9hbWQ2NC4NCkl0cyB3aXJlbGVzcyBjYXJkIGlzIEludGVsIFdpcmVsZXNzIE4tMTAw MCwgYW5kIGRyaXZlciBpcyBpd24vaXduZncuDQoNCkFuZCBJIGhhdmUgYW4gaG9tZSB3aXJlbGVz cyByb3V0ZSB3aGljaCBpcyBUUC1MSU5LIFRMLVdSODQzTi4NCldoZW4gSSBzZXQgV1I4NDNOIGFz IFdQQTItUFNLL0FFUyBtb2RlLCBteSBCU0QgY2FuJ3QgY29ubmVjdCB0byBpdC4NClNldDogMi40 RyAvIDExYmduIG1peGVkIC8gNDBNSHogLyBjaGw6MTEgLyAzMDBNYnBzIA0KI2lmY29uZmlnIHds YW4wIGRvd24NCiNpZmNvbmZpZyB3bGFuMCB1cCBzY2FuDQojaWZjb25maWcgd2xhbjAgbGlzdCBz Y2FuDQpJdCB3aWxsIGxpc3QgV1I4NDNOIGFzIGEgV0VQIEFQLCBzbyBpdCBjYW50IGNvbm5lY3Qg dG8gQVAuDQpCdXQgb3RoZXIgbGFwdG9yIHdoaWNoIG9zIGlzIHdpbmRvd3M3IGNhbiBjb25uZWN0 IHRvIEFQIGNvcnJlY3QuDQpBbmQgTXkgTW9iaWxlUGhvbmUgd2hpY2ggb3MgaXMgYW5kcm9pZCA0 IGNhbiBhbGFvIGNvbm5lY3QgdG8gQVAuDQoNCldoZW4gSSBzZXQgV1I4NDNOIGFzIFdFUCBtb2Rl LCBteSBCU0QgY2FuIGNvbm5lY3QgdG8gaXQuDQpBbmQgSSBjYW4gY29ubmVjdCB0byBteSBjb21w YW55J3MgV29ya1N0YXRpb24gQVAgd2hpY2ggbW9kZSBpcyBXUEEyLVBTSy9BRVMuDQoNCk90aGVy IGluZm86DQpNeSBCU0QgY2FudCBnZXQgcmlnaHQgQVAgbmFtZSBvZiBteSBXUjg0M04uDQpUaGUg bmFtZSBvZiBXUjg0M04gaXMgMHguLi4uLi4uLi4uLi4uLi4uDQpPdGhlciBlbGVjdHJvbmljIGRl dmljZXMgY2FuIGdldCBpdCBjb3JyZWN0Lg0KDQpJIGFsc28gdXNlIHRoZSBzY3JpcHQgbmFtZWQg d2lmaW1nciBpbiBpbnN0YWxsIGlzbyBvZiBmcmVlYnNkOSwgYW5kIHVzZSB3aWZpbWdyIGluIHBv cnRzLg0KQnV0IHRoZSByZXN1bHRzIG9idGFpbmVkIGFyZSBpZGVudGljYWwuDQoNCkFueSBvbmUg Y2FuIHRlbGwgbWUgaG93IHRvIGRlYnVnIGl0LCBvciBmb3JjZSBNeSBCU0QgdG8gY29ycmVjdGx5 IHJlY29nbml6ZWQgV1BBMi1QU0svQUVTIG1vZGUgb2YgV1I4NDNOPw0KDQotLS0tLS0tLS0tLS0t LQ0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0K SG9uZXN0UWlhby/Hx7P+IA0KaHR0cDovL3d3dy5jb3Jlc2Vlay5jbi8gDQo9PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 19:01:12 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D7831065674 for ; Sun, 29 Jul 2012 19:01:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id F393A8FC20 for ; Sun, 29 Jul 2012 19:01:11 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so8950143pbb.13 for ; Sun, 29 Jul 2012 12:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=c1gRcqoMSvfyYOUWQ0+wdx0eyh44jbl2j5gknvRGBwk=; b=Uicorn112FVVnRfqHjNt22nV9tAJ02mjnYNiWYUv2eBd6kCkBhm5tnpiPXoQHgvNkR Bsjx7g51jTCoBfLDTjQGABwGANZ8QZNuTpWdY9k7FCIWE8EYnUdAdtZZX5ru9iLQ4Huo JaWl7GQ06pTkLxQ0KF336naXZ68A+xrAyQ0WhXcgkKkNfaZmxmsGtU6V3uJWNH4nuvc3 ncpwSBdg1r90gaqlopDlOwjcGAtkDrAymYYS5zAmVRBpq9MZuQmwA4tvQJQCwcs5gGHE rjUTe+J/giK3Hiu7wnMO5iYdlO6q1ZoifE6eOe8htXT+caN0xPgadeOu8h+xRCByqeYQ 7InA== MIME-Version: 1.0 Received: by 10.66.74.69 with SMTP id r5mr19505250pav.56.1343588470706; Sun, 29 Jul 2012 12:01:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 12:01:10 -0700 (PDT) In-Reply-To: <201207300139326668335@gmail.com> References: <201207300139326668335@gmail.com> Date: Sun, 29 Jul 2012 12:01:10 -0700 X-Google-Sender-Auth: r9Be3CGvOBI_CWQgeTB4IkHhIjQ Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Sun, 29 Jul 2012 19:01:12 -0000 Hi, What's your /etc/wpa_supplicant.conf file look like? And what's the output of 'ifconfig wlan0 list scan' look like? Adrian On 29 July 2012 10:39, =E4=B9=94=E6=A5=9A/HonestQiao = wrote: > I have a lenovo thinkpad x201i which os is FreeBSD9.1-prerelease/amd64. > Its wireless card is Intel Wireless N-1000, and driver is iwn/iwnfw. > > And I have an home wireless route which is TP-LINK TL-WR843N. > When I set WR843N as WPA2-PSK/AES mode, my BSD can't connect to it. > Set: 2.4G / 11bgn mixed / 40MHz / chl:11 / 300Mbps > #ifconfig wlan0 down > #ifconfig wlan0 up scan > #ifconfig wlan0 list scan > It will list WR843N as a WEP AP, so it cant connect to AP. > But other laptor which os is windows7 can connect to AP correct. > And My MobilePhone which os is android 4 can alao connect to AP. > > When I set WR843N as WEP mode, my BSD can connect to it. > And I can connect to my company's WorkStation AP which mode is WPA2-PSK/A= ES. > > Other info: > My BSD cant get right AP name of my WR843N. > The name of WR843N is 0x................ > Other electronic devices can get it correct. > > I also use the script named wifimgr in install iso of freebsd9, and use w= ifimgr in ports. > But the results obtained are identical. > > Any one can tell me how to debug it, or force My BSD to correctly recogni= zed WPA2-PSK/AES mode of WR843N? > > -------------- > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > HonestQiao/=E4=B9=94=E6=A5=9A > http://www.coreseek.cn/ > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" > From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 19:37:14 2012 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 69DA1106564A for ; Sun, 29 Jul 2012 19:37:14 +0000 (UTC) (envelope-from stl@koffein.net) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by mx1.freebsd.org (Postfix) with ESMTP id 41E718FC14 for ; Sun, 29 Jul 2012 19:37:14 +0000 (UTC) Received: from homiemail-a38.g.dreamhost.com (caiajhbdccah.dreamhost.com [208.97.132.207]) by hapkido.dreamhost.com (Postfix) with ESMTP id 12659DCDC0 for ; Sun, 29 Jul 2012 12:37:14 -0700 (PDT) Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id E30BD10AFAB for ; Sun, 29 Jul 2012 12:37:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=koffein.net; h=content-type:from :subject:to:date:message-id:content-transfer-encoding; q=dns; s= koffein.net; b=eeroaYBr2FLv60NYzaeBDExwlKFifP7DWc5mLYGvvvRtzDuwX RQSJMRV82cFhvvEMzc0maey+xST87+aWuNnx1rO1WZJ0V65TOP4dYZ4mRiAgAk5c VwnrMbaeKPqHiKXs3VvJ+t6/TAmp+LcC/X3ImLrBs1R2A4tpTZQS1riCuU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=koffein.net; h= content-type:from:subject:to:date:message-id: content-transfer-encoding; s=koffein.net; bh=DmzJRTE5MlNbcdyqDJj seRP4LDs=; b=PaKT+d3OdITNHP7KZeJxSzIwwfjEBp3ffVDPdBUDZEbixeff/DS GTCnXhSA1u0cqZy/HlevCX87gXcmoHKvt5UeaPwC+ld2XwMTMsQjHviaLeJfPjly 5skc4S1yMVXr2Qvh3deX7RQaBNGvDZEBAVhaGz2sALFUJFSXXrlNVKPk= Received: from localhost (c220-237-87-178.ipswc3.qld.optusnet.com.au [220.237.87.178]) (Authenticated sender: stl@koffein.net) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPA id 75E7A10AFA1 for ; Sun, 29 Jul 2012 12:37:07 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 From: Steven Lawrance To: freebsd-wireless Date: Sun, 29 Jul 2012 21:37:31 +0200 Message-Id: <1343589599-sup-3228@soma.koffein.net> User-Agent: Sup/git Content-Transfer-Encoding: quoted-printable Subject: Testing 802.11n hostap on AR9220 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: Sun, 29 Jul 2012 19:37:14 -0000 Greetings, I thought I'd do some testing with a recently acquired AR9220 MiniPCI card (a Compex WLM200NX) in AP mode. It seemed to be fine for an SSH session but locked up as soon as I tried some bigger transfers. I'm not sure what I should be prodding to get further details -- nothing relevant turned up in dmesg. At bootup: ath0: mem 0xe0080000-0xe008ffff irq 9 at device 12.0 on pc= i0 [ath] enabling AN_TOP2_FIXUP ath0: [HT] enabling HT modes ath0: [HT] 2 RX streams; 2 TX streams ath0: AR9280 mac 128.2 RF5133 phy 13.0 ath1: mem 0xe00c0000-0xe00cffff irq 11 at device 14.0 on p= ci0 ath1: AR5212 mac 5.9 RF2112 phy 4.3 # ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu = 1500 ether 00:80:48:72:63:5f inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 inet6 fe80::280:48ff:fe72:635f%wlan0 prefixlen 64 scopeid 0xa=20 nd6 options=3D29 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running ssid testap channel 4 (2427 MHz 11g ht/20) bssid 00:80:48:72:63:5f regdomain ETSI2 country AT ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst dtimperiod 1 -dfs Kernel config: device ath =20 device ath_hal =20 device ath_pci =20 options AH_SUPPORT_AR5416 =20 device ath_rate_sample=20 options ATH_DIAGAPI options ATH_ENABLE_11N The (Linux) client reported a bit rate of 108Mb/s. cheers, --=20 Steven Lawrance stl@koffein.net From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 20:36:05 2012 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 5DBD5106566B for ; Sun, 29 Jul 2012 20:36:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2E1998FC16 for ; Sun, 29 Jul 2012 20:36:05 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9045725pbb.13 for ; Sun, 29 Jul 2012 13:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=WPTekJOSvUSTkK2pLW5CWbYCmrM51Fns8cx8qo7JuBQ=; b=jLj2dFqq2KhuNVM7U8eZGnm227X6eQohbQ5Ta7jnTpsKBdwez+NpFtn1rTDc46AcBr OgUU9hE9QtGJ+0PG3ZYebZPMl8r0gYQDOsAej9SYPaYEY3FVBRbr+mt7fhKrxOd/sKqj Rwxe2jL4SWPOPKwsaAYx5A/uTrf1er8GF3RnC5mXryUfY8BPWS5PmrQlY2F2vXlASt8j ZnJ8wlnNxJath4aNe4YcvL2I3zf8Pi0VklvLaf3vOao79shqxjEd0TRrY6VlkG25V+Hp vBsWelwHBEj7OYuoL1oGhridacgdZUj4Q29lM1BRaf/JbKw9GuJVHj7oiP0HqXtzjwwb 2XfA== MIME-Version: 1.0 Received: by 10.68.218.7 with SMTP id pc7mr29656170pbc.88.1343594164778; Sun, 29 Jul 2012 13:36:04 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 13:36:04 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 13:36:04 -0700 (PDT) In-Reply-To: <1343589599-sup-3228@soma.koffein.net> References: <1343589599-sup-3228@soma.koffein.net> Date: Sun, 29 Jul 2012 13:36:04 -0700 Message-ID: From: Adrian Chadd To: Steven Lawrance Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless Subject: Re: Testing 802.11n hostap on AR9220 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: Sun, 29 Jul 2012 20:36:05 -0000 Sounds like a hanging aggregatipn session. Which freebsd version and linux os/niv? On Jul 29, 2012 12:37 PM, "Steven Lawrance" wrote: > Greetings, > > I thought I'd do some testing with a recently acquired AR9220 MiniPCI > card (a Compex WLM200NX) in AP mode. It seemed to be fine for an SSH > session but locked up as soon as I tried some bigger transfers. I'm not > sure what I should be prodding to get further details -- nothing > relevant turned up in dmesg. > > At bootup: > > ath0: mem 0xe0080000-0xe008ffff irq 9 at device 12.0 on pci0 > [ath] enabling AN_TOP2_FIXUP > ath0: [HT] enabling HT modes > ath0: [HT] 2 RX streams; 2 TX streams > ath0: AR9280 mac 128.2 RF5133 phy 13.0 > ath1: mem 0xe00c0000-0xe00cffff irq 11 at device 14.0 on > pci0 > ath1: AR5212 mac 5.9 RF2112 phy 4.3 > > # ifconfig wlan0 > wlan0: flags=8843 metric 0 mtu 1500 > ether 00:80:48:72:63:5f > inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 > inet6 fe80::280:48ff:fe72:635f%wlan0 prefixlen 64 scopeid 0xa > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng > status: running > ssid testap channel 4 (2427 MHz 11g ht/20) bssid 00:80:48:72:63:5f > regdomain ETSI2 country AT ecm authmode OPEN privacy OFF txpower 30 > scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme > burst dtimperiod 1 -dfs > > Kernel config: > > device ath > device ath_hal > device ath_pci > options AH_SUPPORT_AR5416 > device ath_rate_sample > options ATH_DIAGAPI > options ATH_ENABLE_11N > > The (Linux) client reported a bit rate of 108Mb/s. > > cheers, > -- > Steven Lawrance > stl@koffein.net > _______________________________________________ > 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 > " > From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 21:15:35 2012 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 227B5106564A for ; Sun, 29 Jul 2012 21:15:35 +0000 (UTC) (envelope-from stl@koffein.net) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by mx1.freebsd.org (Postfix) with ESMTP id EC8778FC12 for ; Sun, 29 Jul 2012 21:15:34 +0000 (UTC) Received: from homiemail-a1.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by hapkido.dreamhost.com (Postfix) with ESMTP id 1A7D9144 for ; Sun, 29 Jul 2012 14:15:33 -0700 (PDT) Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id E913834806E; Sun, 29 Jul 2012 14:15:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=koffein.net; h=content-type :in-reply-to:subject:references:from:cc:to:date:message-id: content-transfer-encoding; q=dns; s=koffein.net; b=Bt1DD5JCzUzae mVM2wpALAp0Qc6LGTSrwGAXYHcsa3N8X/m3RuGPFnckvGRa1L9GnbyxPh9VTIWpe C7E/daCbLDj1xUI99K7t8OQiwoDwja8etHeseDJaPJW6ikTYAqanNk5AUlQMJWQo yg/MNIUoujKSipDGUSvZiudY6+1e2I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=koffein.net; h= content-type:in-reply-to:subject:references:from:cc:to:date :message-id:content-transfer-encoding; s=koffein.net; bh=fy4bRmu Y2NO1roY25EhzSa5nCK4=; b=uBAOXDO4sFLCgbNNohXlFi2GOtYI0kITWMZR3Bx i+A4yiyGHt4O1/53HywDJ906GVVGBijEcrEztQK8LyJ29odAvo0L26dvhUe/OpBg 5l3st7BErRCvqMSzSL9APiyzx1zO9T8yWLjt1LznG0QeypAwW9QYO2FdZY69S5Xd uUPU= Received: from localhost (c220-237-87-178.ipswc3.qld.optusnet.com.au [220.237.87.178]) (Authenticated sender: stl@koffein.net) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPA id 6F5CC34806C; Sun, 29 Jul 2012 14:15:26 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 In-reply-to: References: <1343589599-sup-3228@soma.koffein.net> From: Steven Lawrance To: Adrian Chadd Date: Sun, 29 Jul 2012 23:15:50 +0200 Message-Id: <1343596229-sup-970@soma.koffein.net> User-Agent: Sup/git Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Testing 802.11n hostap on AR9220 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: Sun, 29 Jul 2012 21:15:35 -0000 Excerpts from Adrian Chadd's message of Sun Jul 29 22:36:04 +0200 2012: > Sounds like a hanging aggregatipn session. Which freebsd version and li= nux > os/niv? The host is running a build from a fresh svn checkout of head from a few hours prior; the Linux client is arch with an up-to-date kernel (3.4.6-1)= , Broadcom Corporation BCM43224 802.11a/b/g/n (rev 01). --=20 Steven Lawrance stl@koffein.net From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 21:18:53 2012 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 7B325106566C for ; Sun, 29 Jul 2012 21:18:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4AF3B8FC0A for ; Sun, 29 Jul 2012 21:18:53 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9085497pbb.13 for ; Sun, 29 Jul 2012 14:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CSvnTyCo11tpEXmbJ6HGYVVv81wGthJKjJeqUDw8uQA=; b=dbAhzAtsvdeyloSWR9YEK0KGqjUiZkbElfF3Yqiqs4okkHzlJqismLQ1lzMIt+ZtUu G8LpTUZBsitFe0e5BiZhoVYodYQWOFyxMvI8JvwiHS9pmFjG1kPOD8zp+uCx5lXvneQo Mv3xyy9mdETU0uE+I6wcz/k0IPqpHcfed0LLFk9LOV/7QPBLgT6QDiVgq7zh7UlSD+Ow ++p1faAKZsp9bzOcDMN7xnRPoTiUL5uKjaRrOxHcXYy53/Pmr/qlLOCFF992m8pTTsqq 3nAhGVnmlu5TsgelPxDoOFon4QlcYlmaP3hBMOzOa5o4kA015jHB1hvnslm2dK4sAnBk h0Pg== MIME-Version: 1.0 Received: by 10.68.228.2 with SMTP id se2mr30349023pbc.109.1343596733062; Sun, 29 Jul 2012 14:18:53 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 14:18:53 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 14:18:53 -0700 (PDT) In-Reply-To: <1343596229-sup-970@soma.koffein.net> References: <1343589599-sup-3228@soma.koffein.net> <1343596229-sup-970@soma.koffein.net> Date: Sun, 29 Jul 2012 14:18:53 -0700 Message-ID: From: Adrian Chadd To: Steven Lawrance Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless Subject: Re: Testing 802.11n hostap on AR9220 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: Sun, 29 Jul 2012 21:18:53 -0000 Try updating. I fixed a descriptor bug a few hours ago. Also, enable 11n debugging and see : wlandebug +11n On Jul 29, 2012 2:15 PM, "Steven Lawrance" wrote: > Excerpts from Adrian Chadd's message of Sun Jul 29 22:36:04 +0200 2012: > > Sounds like a hanging aggregatipn session. Which freebsd version and > linux > > os/niv? > > The host is running a build from a fresh svn checkout of head from a few > hours prior; the Linux client is arch with an up-to-date kernel (3.4.6-1), > Broadcom Corporation BCM43224 802.11a/b/g/n (rev 01). > > -- > Steven Lawrance > stl@koffein.net > From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 22:12:12 2012 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 BE1D1106566B for ; Sun, 29 Jul 2012 22:12:12 +0000 (UTC) (envelope-from stl@koffein.net) Received: from homiemail-a62.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by mx1.freebsd.org (Postfix) with ESMTP id 954268FC0C for ; Sun, 29 Jul 2012 22:12:12 +0000 (UTC) Received: from homiemail-a62.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTP id 5C3A7634073; Sun, 29 Jul 2012 15:12:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=koffein.net; h=content-type :in-reply-to:subject:references:from:cc:to:date:message-id: content-transfer-encoding; q=dns; s=koffein.net; b=AUdH4u3/BN6fN RZqDi7Gjxid/vGsrFsWZFNBKotPQ+ZGeyiISvOeqoiY7BprG8WjPcE8aF50RG2i/ OqgqjBW6Dop5Hn3aRoN5FVwQwjalniBKq0wha1Cv7hrQYwSRrL0cf3YNkg4c8p0T vYsvA4cTSaYyP+Er0UMZ4/lfw2ZF0o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=koffein.net; h= content-type:in-reply-to:subject:references:from:cc:to:date :message-id:content-transfer-encoding; s=koffein.net; bh=D8YVxQU j4IxvVMvQh5GjBTdeb74=; b=QrtXUFs+4ZeJ4beu2PjISUDxCRy47LEZqWPTFDx VEMAZ75uQKkAKqTfkEcK8qCRam/Mv9TKKxN+6FXrgY36feAoGK7ivi1FA5ViTQiV tsn5HLV/XzzfD/p8lnvXmApxd2aDRsIzQwJxZZp3Y7jacZSNhQAGcMOTdoOxreYK VElo= Received: from localhost (c220-237-87-178.ipswc3.qld.optusnet.com.au [220.237.87.178]) (Authenticated sender: stl@koffein.net) by homiemail-a62.g.dreamhost.com (Postfix) with ESMTPA id ED13B63406F; Sun, 29 Jul 2012 15:12:10 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 In-reply-to: References: <1343589599-sup-3228@soma.koffein.net> <1343596229-sup-970@soma.koffein.net> From: Steven Lawrance To: Adrian Chadd Date: Mon, 30 Jul 2012 00:12:34 +0200 Message-Id: <1343599741-sup-3942@soma.koffein.net> User-Agent: Sup/git Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Testing 802.11n hostap on AR9220 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: Sun, 29 Jul 2012 22:12:12 -0000 Excerpts from Adrian Chadd's message of Sun Jul 29 23:18:53 +0200 2012: > Try updating. I fixed a descriptor bug a few hours ago. The update didn't fix it; here are the messages around when it broke: wlan0: [20:10:7a:3e:3f:5c] recv ADDBA request: dialogtoken 6 baparamset 0= x1002 (tid 0 bufsiz 64) batimeout 5000 baseqctl 53:0 wlan0: [20:10:7a:3e:3f:5c] send ADDBA response: dialogtoken 6 status 0 ba= paramset 0x1002 (tid 0) batimeout 0x0 baseqctl 0x0 wlan0: [20:10:7a:3e:3f:5c] enable AMPDU on WME_AC_BE, avgpps 158 pkts 1 wlan0: [20:10:7a:3e:3f:5c] send ADDBA request: dialogtoken 1 status 0 bap= aramset 0x1002 (tid 0) batimeout 0x0 baseqctl 0x2a20 wlan0: [20:10:7a:3e:3f:5c] recv ADDBA response: dialogtoken 1 code 0 bapa= ramset 0x1002 (tid 0 bufsiz 64) batimeout 0 wlan0: [20:10:7a:3e:3f:5c] recv DELBA: baparamset 0x800 (tid 0 initiator = 1) code 37 (The enable AMPDU being the odd one out -- plenty of the others.) --=20 Steven Lawrance stl@koffein.net From owner-freebsd-wireless@FreeBSD.ORG Sun Jul 29 23:06:27 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2BE1C106564A for ; Sun, 29 Jul 2012 23:06:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id E79818FC16 for ; Sun, 29 Jul 2012 23:06:26 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9185566pbb.13 for ; Sun, 29 Jul 2012 16:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Yvj1NyAi4gUumCPEcnZw6Nrui18UdPcD8vckink10AI=; b=kwtjTxczAXGyhmvP/kIpXtYFuYUojxWIi+lzvtfAh4xKfqQRYvjvK6iTJxGnTIrNit qsLJFYBREUBVVEw1plg5hn+vax3mOb/2mR2lqltJasN/2WZXBlLyHhDLa2BTh865Alra n2b27n15E1HaNTE1nkk5i24+d0GHSF410llxpPe9GdhcLTnp6EcPI9LdtE/196vb9Kpt nxpFm7vDPyxkRyaQSJRL2/qg0Rt//yhKklaDkRQHgVTqnpH/Hwy4Xllg90gWRmnbVzCp YY/jclDYdOflsJ82Gv6s19ZhenUdDmqSpivu2EGzFOFjzw2v2m5c9Mey3XylNAXVMRKM fCNg== MIME-Version: 1.0 Received: by 10.68.228.2 with SMTP id se2mr30756148pbc.109.1343603186526; Sun, 29 Jul 2012 16:06:26 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 16:06:26 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 16:06:26 -0700 (PDT) In-Reply-To: <1343599741-sup-3942@soma.koffein.net> References: <1343589599-sup-3228@soma.koffein.net> <1343596229-sup-970@soma.koffein.net> <1343599741-sup-3942@soma.koffein.net> Date: Sun, 29 Jul 2012 16:06:26 -0700 Message-ID: From: Adrian Chadd To: Steven Lawrance Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless Subject: Re: Testing 802.11n hostap on AR9220 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: Sun, 29 Jul 2012 23:06:27 -0000 Ok. It looks like aggregation aetup is happening badly. Lets narrow it down . Do ifconfig wlanX -ampdutx and retry. Then enable ampdutx and -ampdurx. Lets see whixh breaks it. Do you have a freebsd 11n Sta that can be used in mpnitor mode? Adrian On Jul 29, 2012 3:12 PM, "Steven Lawrance" wrote: > Excerpts from Adrian Chadd's message of Sun Jul 29 23:18:53 +0200 2012: > > Try updating. I fixed a descriptor bug a few hours ago. > > The update didn't fix it; here are the messages around when it broke: > > wlan0: [20:10:7a:3e:3f:5c] recv ADDBA request: dialogtoken 6 baparamset > 0x1002 (tid 0 bufsiz 64) batimeout 5000 baseqctl 53:0 > wlan0: [20:10:7a:3e:3f:5c] send ADDBA response: dialogtoken 6 status 0 > baparamset 0x1002 (tid 0) batimeout 0x0 baseqctl 0x0 > wlan0: [20:10:7a:3e:3f:5c] enable AMPDU on WME_AC_BE, avgpps 158 pkts 1 > wlan0: [20:10:7a:3e:3f:5c] send ADDBA request: dialogtoken 1 status 0 > baparamset 0x1002 (tid 0) batimeout 0x0 baseqctl 0x2a20 > wlan0: [20:10:7a:3e:3f:5c] recv ADDBA response: dialogtoken 1 code 0 > baparamset 0x1002 (tid 0 bufsiz 64) batimeout 0 > wlan0: [20:10:7a:3e:3f:5c] recv DELBA: baparamset 0x800 (tid 0 initiator > 1) code 37 > > (The enable AMPDU being the odd one out -- plenty of the others.) > > -- > Steven Lawrance > stl@koffein.net > From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 00:23:34 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E161E1065673; Mon, 30 Jul 2012 00:23:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9DF628FC0A; Mon, 30 Jul 2012 00:23:34 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9266232pbb.13 for ; Sun, 29 Jul 2012 17:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=JQhVurWKAxC6+/eg7VpTPpo87/VFMmjzd3Ct7+/+U7U=; b=RFzQQCgPZrT01CxtOKOUt71q5Iw3G1RksV1u/rRx8daM3aHykd2QwqWKYxfgdBpTIF 2nqF1doHjqKXK1UcOHdT5DegxNWcawnaCrUFOIXFFQHmn2gmBiVaLrZsqK1snPjmwApU CDqsh6I2odiETVz2tJxxSoLw9LMQ/SR6H7Xfer1l365mSF4nn6I+MBzj90ncIyCq99Gl MAeYzgP9HnWpeNSNHe88OLbaxvCMWrcwa9Fplrj4VZzqsr46dSmP7lKO1Dx1wX2ciiNE vBylWnl0/es5zBsJWtzqQAy+WzKg1623fJC5md2hnhajV1/3E/D3f/cRUL+OR7kz3eZT ktSw== MIME-Version: 1.0 Received: by 10.68.212.138 with SMTP id nk10mr31149280pbc.93.1343607814227; Sun, 29 Jul 2012 17:23:34 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Sun, 29 Jul 2012 17:23:34 -0700 (PDT) In-Reply-To: <402841776.20120729153930@serebryakov.spb.ru> References: <298155894.20120709002844@serebryakov.spb.ru> <1491344515.20120709013411@serebryakov.spb.ru> <1252921508.20120709132351@serebryakov.spb.ru> <802688919.20120709140808@serebryakov.spb.ru> <1966637204.20120713194935@serebryakov.spb.ru> <5862675.20120713203432@serebryakov.spb.ru> <7750188.20120716011053@serebryakov.spb.ru> <1468023399.20120723175744@serebryakov.spb.ru> <978320748.20120729145152@serebryakov.spb.ru> <402841776.20120729153930@serebryakov.spb.ru> Date: Sun, 29 Jul 2012 17:23:34 -0700 Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: wireless@freebsd.org Subject: Re: ath0: device timeout with 802.11n client 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: Mon, 30 Jul 2012 00:23:35 -0000 Hm, I've seen that bss occupancy change spam. There's another project for someone to figure out. Why is it flipping so quickly? On 29 July 2012 04:39, Lev Serebryakov wrote: > Hello, Adrian. > You wrote 29 =D0=B8=D1=8E=D0=BB=D1=8F 2012 =D0=B3., 15:23:30: > > AC> I saw, thanks. > AC> Please enable reset debugging too - sysctl dev.ath.X.debug=3D0x20. > Done :) I'll post new debug messages as soon as they'll appear. > > BTW, I've tried association debugging and got a TONS of such > messages when client (Blackberry PlayBook) goes to sleep (but it is > still associated): > > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x11 > Jul 29 15:29:05 gateway kernel: wlan0: [00:0c:42:64:69:92] HT bss occupan= cy change: 1 sta, 1 ht, 0 ht40, non-HT sta present, HT protmode now 0x13 > > I've turned assotiation debugging off (and posted folloup to PR). > > AC> Jul 27 04:24:09 gateway kernel: ath0: ath_bar_response: called; > AC> tap=3D0xc48c32b8, atid=3D0xc48c4df4, txa_tid=3D0, atid->tid=3D0, stat= us=3D1, > AC> attempts=3D50 > AC> Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: > AC> tid=3D0xc48c4df4, called > AC> Jul 27 04:24:09 gateway kernel: ath0: ath_bar_response: called; > AC> tap=3D0xc48c32b8, atid=3D0xc48c4df4, txa_tid=3D0, atid->tid=3D0, stat= us=3D1, > AC> attempts=3D50 > AC> Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: > AC> tid=3D0xc48c4df4, called > AC> Jul 27 04:24:09 gateway kernel: ath0: ath_tx_tid_bar_unsuspend: > AC> bar_tx=3D0, bar_wait=3D0: ? > AC> That's very odd. I wonder if I broke that specific handling @ attempt= =3D50. > As side note: I'm sure, that client was sleeping at this time, as I > was sleeping for sure :) > > -- > // Black Lion AKA Lev Serebryakov > From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 02:11:41 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F28C91065672; Mon, 30 Jul 2012 02:11:40 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5FFF8FC14; Mon, 30 Jul 2012 02:11:40 +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 q6U2Berg014555; Mon, 30 Jul 2012 02:11:40 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6U2Be0p014551; Mon, 30 Jul 2012 02:11:40 GMT (envelope-from linimon) Date: Mon, 30 Jul 2012 02:11:40 GMT Message-Id: <201207300211.q6U2Be0p014551@freefall.freebsd.org> To: adrian@freebsd.org, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/170265: Re: [ath] Atheros 9220 device timeouts. 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: Mon, 30 Jul 2012 02:11:41 -0000 Synopsis: Re: [ath] Atheros 9220 device timeouts. State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Mon Jul 30 02:10:53 UTC 2012 State-Changed-Why: Misfiled followup to kern/170254; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Mon Jul 30 02:10:53 UTC 2012 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=170265 From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 09:16:59 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3ADA7106566C for ; Mon, 30 Jul 2012 09:16:59 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm19.bullet.mail.sp2.yahoo.com (nm19.bullet.mail.sp2.yahoo.com [98.139.91.89]) by mx1.freebsd.org (Postfix) with SMTP id 0D32F8FC12 for ; Mon, 30 Jul 2012 09:16:59 +0000 (UTC) Received: from [98.139.91.65] by nm19.bullet.mail.sp2.yahoo.com with NNFMP; 30 Jul 2012 09:16:53 -0000 Received: from [208.71.42.195] by tm5.bullet.mail.sp2.yahoo.com with NNFMP; 30 Jul 2012 09:16:53 -0000 Received: from [127.0.0.1] by smtp206.mail.gq1.yahoo.com with NNFMP; 30 Jul 2012 09:16:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1343639813; bh=0l8jISC7Qzt4FrczTlU/rZ7rMgV7B0tFoDBd8foDbnQ=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=6cCZ9NEuPISUN+JXebxMnvo2CZ041CCWapbnAV2NV7tEgop4Gpy8r1QzOMKyn7KNJt6SdBiJRhb5DHLErwjaCEN0ME4OZdS7gndirVokHbp5dcXlbwuuoxFlB/9w580ySUh6OCN4qpM7DY9h/xFvuSe4WeVaGahdjMANHh6MAgg= X-Yahoo-Newman-Id: 195197.18797.bm@smtp206.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: cA.5VT8VM1kuzxgWUHN58kMB8hS4o.ngL9AoQEHM9kyZbeF 2iGiYn_KZysf7G_tlkkB_ImryFSX5EhspHMq6Qux6DQzh8yPNfYafoPqloaf s.evSn9Y2RTsksIXTM1WSbQDX6XBz32tyifbJ.o0aHKje6bTBSrcq_og330f sXFfnltx2_FqeCKGqXi8k5jAjc1va.cZOZihYgGZql8v5Q.SICBWWJAIBWIw 5oyGsfrUimE6GSEhmirqUmyOxZyYMX_sTLNJ8J6duIsDoIkJciaJu_HqyL3P LjCezFLv6fKz8ctFKtxH6XpzH_OaJlN1OGU70U6URgGMWxCy0Ta0JN8V0gBD 61ie9gpQO03kBqEOL1gG0dcfyKYedEibcCWJf3zAEQxfYAjmV5Yw8JbJdGhu 6ZZ6_7kV4QvmXosVlXGWNVfYzZpEuDN271H9mKt7ZPeTLjQsizbD8wE97Kyy NF5_2qJrTQWgOX8m36aMNS8crPJ82ii5ls53SGruIgHO_P3E0TyZa6jjK2BL 7BvwJ0TpqNcxyEUp2P6eK_JgZ1ve_kAad3IiCcfpXOLWQ8UsTM9s- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vc0-f182.google.com (moonlightakkiy@209.85.220.182 with plain) by smtp206.mail.gq1.yahoo.com with SMTP; 30 Jul 2012 02:16:53 -0700 PDT Received: by vcbgb22 with SMTP id gb22so5312672vcb.13 for ; Mon, 30 Jul 2012 02:16:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.148.210 with SMTP id q18mr10332095vcv.6.1343639812248; Mon, 30 Jul 2012 02:16:52 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Mon, 30 Jul 2012 02:16:52 -0700 (PDT) Date: Mon, 30 Jul 2012 03:16:52 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd , Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath lor 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: Mon, 30 Jul 2012 09:16:59 -0000 > ------------------------------ > > Message: 3 > Date: Sat, 28 Jul 2012 19:36:38 -0700 > From: Adrian Chadd > Subject: Re: ath lor > To: Kim Culhan > Cc: freebsd-wireless@freebsd.org > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > Hm, if someone's up for a bit of coding, here's my suggestIon: > > * create an iterator struct which just contains an array of > ieee80211_node entries; > * write an iterator function that _just_ populates that iterator > struct with ieee80211 node entries, but after having locked them; > * then, once the call to ieee80211_iterate_node() is done, the > iterator struct will have a list of nodes to iterate over; > * then just call the original callback over each member of that > iterator struct node array, derefing nodes as you go along. > Do you want to change the above to C code? I can do that if no one does it. Do you want an iterator struct node *array* or a linked list? The standard allows 2007 stations to associate an AP, so the array will be that big. Or, use even dirtier trick to make the array size variable? > That avoids calling any callbacks with the iterator node table lock held. > > It's dirty and I would prefer the use of something more modern, like > transactional memory or generation counts, but I'd really like this > bug squished so kim and others can continue hacking/testing this > stuff. It'd also eliminate a rather annoying LOR from the TODO list. > We still need to look after comlock LOR. LOR between scanlock and comlock is the original problem of this thread. And, comlock is causing dead locks all over run(4). I've been working on it, but kinda stuck. Hence no solution, yet. Also, for USB devices, because usbd_do_request_flags() may sleep, hopefully ieee80211 stack understands the driver has to unlock or call taskqueue, even though comlock (or other locks) need to be held during driver functions being executed. http://fxr.watson.org/fxr/source/dev/usb/usb_request.c#L346 AK From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 11:07:30 2012 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 793B4106566C for ; Mon, 30 Jul 2012 11:07:30 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 631368FC1A for ; Mon, 30 Jul 2012 11:07:30 +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 q6UB7U1R001984 for ; Mon, 30 Jul 2012 11:07:30 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6UB7TfT001980 for freebsd-wireless@FreeBSD.org; Mon, 30 Jul 2012 11:07:29 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Jul 2012 11:07:29 GMT Message-Id: <201207301107.q6UB7TfT001980@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-wireless@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-wireless@FreeBSD.org 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: Mon, 30 Jul 2012 11:07:30 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/170098 wireless [ath] [net80211] VAPs (Virtual access points) with Ath o kern/170066 wireless [ral] ral(4) rt61pci Linksys freezes the machine as so o kern/169433 wireless [iwn] iwn(4) doesn't support 6235 chip. o kern/169432 wireless [ath] BAR TX hang when aggregation session is reset du p kern/169362 wireless [ath] AR5416: radar pulse PHY errors sometimes include o kern/169336 wireless [ath] ANI isn't triggering in a busy/noisy environment o kern/169199 wireless [ath] Cannot set up static ip addresses for wireless w o kern/169084 wireless [ath] suspend/resume doesn't cause a rescan; the assoc o kern/168530 wireless [ath] Broken WEP probably o kern/168393 wireless AR9285: suspend/resume sometimes fails o kern/168170 wireless [net80211] ieee80211_send_bar() doesn't complete corre o kern/167870 wireless [ath] adhoc wifi client does not join an existing IBSS o kern/167834 wireless [ath] kickpcu; 'handled 0 packets' o kern/167828 wireless [iwn] iwn(4) doesn't recover automatically after firmw o kern/167798 wireless ifconfig(8): problem with "ifconfig list scan" command o kern/167491 wireless [ath] TID != hardware queue TID in ath_tx_aggr_comp_ag o kern/167113 wireless [ath] AR5210: "stuck" TX seems to be occuring, without o kern/167080 wireless [ath] channel switch on another VAP break channel setu o kern/166684 wireless [ath] [net80211] mgmtrate/mcastrate isn't updated base p kern/166642 wireless [ieee80211] [patch] in 802.11n mode for FreeBSD AP, ha o kern/166641 wireless [ieee80211] [patch] mbuf/cluster leak in AP mode in 80 p kern/166357 wireless [ath] 802.11n TX stall when the first frame in the BAW o kern/166286 wireless [net80211] [ath] initial switch to HT40 isn't causing p kern/166190 wireless [ath] TX hangs and frames stuck in TX queue o kern/166086 wireless [Patch][ath] Reflect state of rfkill switch in a sysct o kern/165969 wireless [ath] Slower performance in adhoc mode vs Client/AP mo o kern/165966 wireless [ath] ath0: device timeout on SMP machines due to race o kern/165895 wireless [ath] overly busy cabq can tie up all tx buffers o kern/165870 wireless [bwn] bwn driver does not attach on HP Pavilion dv9420 o kern/165866 wireless [ath] TX hangs, requiring a "scan" to properly reset t o kern/165849 wireless [ath] [hang] network ath driver freeze o kern/165595 wireless [ipw] ipw(4): Can't load firmare for ipw2200bg o kern/165543 wireless [ath] ath0 endless scanning of channels without connec o kern/165517 wireless [net80211] bgscan isn't triggered when invalid beacons o kern/165475 wireless [ath] operational mode change doesn't poke the underly o kern/165382 wireless [kernel] taskqueue_unblock doesn't unblock currently q o kern/165306 wireless [ath] race conditions between scanning and beacon time o kern/165220 wireless [ath] "ath_rx_tasklet: sc_inreset_cnt > 0; skipping" m o kern/165214 wireless [ieee80211] Kernel panic in ieee80211_output.c:2505 o kern/165212 wireless [ath] No WiFi on Acer Aspire One 751h (Atheros AR5BHB6 o kern/165149 wireless [ath] [net80211] Ping with data length more than iv_fr o kern/165146 wireless [net80211] Net802.11 Fragment number is assigned 1 (sh o kern/165060 wireless [ath] vap->iv_bss race conditions causing crashes insi o kern/165021 wireless [ath] ath device timeout during scan/attach, if wlan_c o kern/164721 wireless [ath] ath device timeouts o kern/164499 wireless [wi] [patch] if_wi needs fix for big endian architectu o kern/164382 wireless [ath] crash when down/deleting a vap - inside ieee8021 o kern/164365 wireless [iwi] iwi0: UP/DOWN in o bin/164102 wireless hostapd not configured for 802.11n o kern/163759 wireless [ath] ath(4) "stops working" in hostap mode o kern/163724 wireless [mwl] [patch] NULL check before dereference o kern/163719 wireless [ath] ath interface do not receive multicast o kern/163689 wireless [ath] TX timeouts when sending probe/mgmt frames durin o kern/163574 wireless [net80211] overly-frequent HT occupancy changes o kern/163573 wireless [ath] hostap mode TX buffer hang o kern/163559 wireless [ath] kernel panic AH_DEBUG o kern/163318 wireless [ath] ath(4) stops working p kern/163312 wireless [panic] [ath driver] kernel panic: page fault with ath o kern/163237 wireless [ath] AR5416 as HostAP. Delays among clients when a cl o kern/163082 wireless [ath] ar9285 diversity fixes o kern/162648 wireless [ath] AR9227 ADC DC calibration failure o kern/162647 wireless [ath] 11n TX aggregation session / TX hang o kern/161293 wireless [iwn] hang at startup when starting network o kern/161035 wireless [ieee80211] Incorrect number describing 11ng MCS rate o kern/160391 wireless [ieee80211] [patch] Panic in mesh mode o kern/160296 wireless [zyd] [panic] 802.11 usb device reboots system on 'ifc o misc/160176 wireless [mips] [panic] Kernel panic on AR7161 platform with AR o kern/157449 wireless [ath] MAC address conflict causes system to freeze o kern/157243 wireless [ath] investigate beacon TX (AP) / RX (STA) when under o kern/156904 wireless [ath] AR9285 antenna diversity algorithm is buggy and o kern/156884 wireless [ath] ath instablity o kern/156327 wireless [bwn] bwn driver causes 20%-50% packet loss o kern/156322 wireless [wpi] no ahdemo support for if_wpi o kern/156321 wireless [ath] ahdemo doesn't work with if_ath o kern/155498 wireless [ral] ral(4) needs to be resynced with OpenBSD's to ga o kern/155100 wireless [ath] ath driver on busy channel: "stuck beacon" p kern/154598 wireless [ath] Atheros 5424/2424 can't connect to WPA network o kern/154567 wireless [ath] ath(4) lot of bad series(0) o kern/154327 wireless [ath] AR5416 in station mode hangs when transmitting f o kern/154284 wireless [ath] Modern ath wifi cards (such as AR9285) have miss o kern/154153 wireless [ath] AR5213 + MIPS + WPA group key packet corruption o kern/153594 wireless [wlan] netif/devd race o kern/153448 wireless [ath] ath networking device loses association after a o kern/152750 wireless [ath] ath0 lot of bad series hwrate o kern/151198 wireless [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: o kern/149786 wireless [bwn] bwn on Dell Inspiron 1150: connections stall o kern/149516 wireless [ath] ath(4) hostap with fake MAC/BSSID results in sta o kern/149373 wireless [realtek/atheros]: None of my network card working o kern/148322 wireless [ath] Triggering atheros wifi beacon misses in hostap o kern/148317 wireless [ath] FreeBSD 7.x hostap memory leak in net80211 or At o kern/148078 wireless [ath] wireless networking stops functioning o kern/146426 wireless [mwl] 802.11n rates not possible on mwl o kern/146425 wireless [mwl] mwl dropping all packets during and after high u o kern/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o kern/144755 wireless [wlan] netif/devd race o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o conf/143079 wireless hostapd(8) startup missing multi wlan functionality p kern/140567 wireless [ath] [patch] ath is not worked on my notebook PC o kern/140245 wireless [ath] [panic] Kernel panic during network activity on o kern/137592 wireless [ath] panic - 7-STABLE (Aug 7, 2009 UTC) crashes on ne p bin/137484 wireless [patch] Integer overflow in wpa_supplicant(8) base64 e o kern/136943 wireless [wpi] [lor] wpi0_com_lock / wpi0 o kern/136836 wireless [ath] atheros card stops functioning after about 12 ho o kern/132722 wireless [ath] Wifi ath0 associates fine with AP, but DHCP or I o bin/131549 wireless ifconfig(8) can't clear 'monitor' mode on the wireless o kern/126475 wireless [ath] [panic] ath pcmcia card inevitably panics under o kern/125721 wireless [ath] Terrible throughput/high ping latency with Ubiqu o kern/125617 wireless [ath] [panic] ath(4) related panic o kern/125501 wireless [ath] atheros cardbus driver hangs o kern/125332 wireless [ath] [panic] crash under any non-tiny networking unde o kern/124767 wireless [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 wireless [ieee80211] net80211 discards power-save queue packets o docs/120456 wireless ath(4) needs to specify requirement on wlan_scan_sta o kern/119513 wireless [ath] [irq] inserting dlink dwl-g630 wireless card res o kern/116747 wireless [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile f kern/105348 wireless [ath] ath device stopps TX 117 problems total. From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 16:32:48 2012 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 6A3301065672; Mon, 30 Jul 2012 16:32:48 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 342C18FC16; Mon, 30 Jul 2012 16:32:48 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so10558901pbb.13 for ; Mon, 30 Jul 2012 09:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=KWsKx+00mfb1H41ofXEylKPbOPL1ptjFUJIcpwo1OYc=; b=Nf6UXPFKgX+uzXV0dQ6mqZzeDXDgxUOmk8JVA6lAKi7FvBQkoe9HhW0s423WmSE7Cc DY+E0jx/VhAKKoJzW+FFqouiMdHNFqy8qpLTeY4w4rP/CveyI00NUWT46VdKolT4qzm2 zgXlHcEEjXn0QPHuEioqh/q5NHI/DNAk9Rl4h9lcsF8kma5G4KsfCc9TJs410sJoOzIg JW6yZR5PMtA4frjd0hYrak35yqD8hDNliS1Bdi1omYjsJvQZC9eJaxuCIvGAN4yXshkq Kh2zVBIwyjx1NxO97dUAfv0lSucohnYbzdzJy18n+4oV2ErxwDjygi3FF4gXOA3FiRkd oMXw== Received: by 10.68.228.102 with SMTP id sh6mr22113704pbc.134.1343665967924; Mon, 30 Jul 2012 09:32:47 -0700 (PDT) Received: from HonestQiaoNB ([123.114.249.243]) by mx.google.com with ESMTPS id tv6sm8212585pbc.24.2012.07.30.09.32.43 (version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 09:32:47 -0700 (PDT) Date: Tue, 31 Jul 2012 00:32:39 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[cn] Mime-Version: 1.0 Message-ID: <201207310032346632212@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Mon, 30 Jul 2012 17:05:21 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Mon, 30 Jul 2012 16:32:48 -0000 T24gMzAgSnVseSAyMDEyIDAzOjAxLCBBZHJpYW4gQ2hhZGQgPGFkcmlhbkBmcmVlYnNkLm9yZz4g d3JvdGU6DQo+SGksDQo+DQo+V2hhdCdzIHlvdXIgL2V0Yy93cGFfc3VwcGxpY2FudC5jb25mIGZp bGUgbG9vayBsaWtlPw0KPg0KPkFuZCB3aGF0J3MgdGhlIG91dHB1dCBvZiAnaWZjb25maWcgd2xh bjAgbGlzdCBzY2FuJyBsb29rIGxpa2U/DQo+DQo+DQo+QWRyaWFuDQo+DQo+DQoNCioqKioqKioq KioqKioqKioqKioqIEluIENvbXBhbnkgKioqKioqKioqKioqKioqKioqDQojaWZjb25maWcgaXdu MA0KaXduMDogZmxhZ3M9ODg0MzxVUCxCUk9BRENBU1QsUlVOTklORyxTSU1QTEVYLE1VTFRJQ0FT VD4gbWV0cmljIDAgbXR1IDIyOTANCglldGhlciA4Yzp4eDo4Mjp5eTo0MTp6eg0KCW5kNiBvcHRp b25zPTI5PFBFUkZPUk1OVUQsSUZESVNBQkxFRCxBVVRPX0xJTktMT0NBTD4NCgltZWRpYTogSUVF RSA4MDIuMTEgV2lyZWxlc3MgRXRoZXJuZXQgYXV0b3NlbGVjdCBtb2RlIDExbmcNCglzdGF0dXM6 IGFzc29jaWF0ZWQNCiNpZmNvbmZpZyB3bGFuMA0Kd2xhbjA6IGZsYWdzPTg4NDM8VVAsQlJPQURD QVNULFJVTk5JTkcsU0lNUExFWCxNVUxUSUNBU1Q+IG1ldHJpYyAwIG10dSAxNTAwDQoJZXRoZXIg OGM6eHg6ODI6eXk6NDE6enoNCglpbmV0IDE5Mi4xNjguNjEuMTcxIG5ldG1hc2sgMHhmZmZmZmYw MCBicm9hZGNhc3QgMTkyLjE2OC42MS4yNTUNCgluZDYgb3B0aW9ucz0yOTxQRVJGT1JNTlVELElG RElTQUJMRUQsQVVUT19MSU5LTE9DQUw+DQoJbWVkaWE6IElFRUUgODAyLjExIFdpcmVsZXNzIEV0 aGVybmV0IE9GRE0vNTRNYnBzIG1vZGUgMTFuZw0KCXN0YXR1czogYXNzb2NpYXRlZA0KCXNzaWQg Q09NUEFOWS1BUCBjaGFubmVsIDIgKDI0MTcgTUh6IDExZyBodC8yMCkgYnNzaWQgYzA6eHg6MjA6 eXk6Njk6enoNCgljb3VudHJ5IFVTIGF1dGhtb2RlIFdQQTIvODAyLjExaSBwcml2YWN5IE9OIGRl ZnR4a2V5IFVOREVGDQoJQUVTLUNDTSAyOjEyOC1iaXQgdHhwb3dlciAxNCBibWlzcyAxMCBzY2Fu dmFsaWQgNDUwIGJnc2Nhbg0KCWJnc2NhbmludHZsIDMwMCBiZ3NjYW5pZGxlIDI1MCByb2FtOnJz c2kgNyByb2FtOnJhdGUgNjQgcHJvdG1vZGUgQ1RTDQoJYW1wZHVsaW1pdCA2NGsgYW1wZHVkZW5z aXR5IDggLWFtc2R1dHggYW1zZHVyeCBzaG9ydGdpIHdtZQ0KCXJvYW1pbmcgTUFOVUFMDQojaWZj b25maWcgd2xhbjAgbGlzdCBzY2FuDQpTU0lEL01FU0ggSUQgICAgQlNTSUQgICAgICAgICAgICAg IENIQU4gUkFURSAgIFM6TiAgICAgSU5UIENBUFMNCkNPTVBBTlktQVAgICAgICAgICBjMDp4eDoy MDp5eTo2OTp6eiAgICAyICAgNTRNIC02ODotOTUgIDEwMCBFUFMgIFdNRSBIVENBUCBSU04NCiNj YXQgL2V0Yy93cGFfc3VwcGxpY2FudC5jb25mDQojIC9ldGMvd3BhX3N1cHBsaWNhbnQuY29uZiB3 cml0dGVuIGJ5IHdpZmltZ3IoOCkNCg0KCWN0cmxfaW50ZXJmYWNlPS92YXIvcnVuL3dwYV9zdXBw bGljYW50DQoJY3RybF9pbnRlcmZhY2VfZ3JvdXA9d2hlZWwNCg0KbmV0d29yaz17DQoJc3NpZD0i Q09NUEFOWS1BUCINCgkjKyBhbnlfYnNzaWQNCglrZXlfbWdtdD1XUEEtUFNLDQoJcHJvdG89UlNO DQoJcHNrPSJXaWZpLXB3ZCINCn0NCg0KKioqKioqKioqKioqKioqKioqKiogSW4gSG9tZS9XRVAg KioqKioqKioqKioqKioqKioqDQojaWZjb25maWcgaXduMA0KaXduMDogZmxhZ3M9ODg0MzxVUCxC Uk9BRENBU1QsUlVOTklORyxTSU1QTEVYLE1VTFRJQ0FTVD4gbWV0cmljIDAgbXR1IDIyOTANCgll dGhlciA4Yzp4eDo4Mjp5eTo0MTp6eg0KCW5kNiBvcHRpb25zPTI5PFBFUkZPUk1OVUQsSUZESVNB QkxFRCxBVVRPX0xJTktMT0NBTD4NCgltZWRpYTogSUVFRSA4MDIuMTEgV2lyZWxlc3MgRXRoZXJu ZXQgYXV0b3NlbGVjdCBtb2RlIDExZw0KCXN0YXR1czogYXNzb2NpYXRlZA0KI2lmY29uZmlnIHds YW4wDQp3bGFuMDogZmxhZ3M9ODg0MzxVUCxCUk9BRENBU1QsUlVOTklORyxTSU1QTEVYLE1VTFRJ Q0FTVD4gbWV0cmljIDAgbXR1IDE1MDANCglldGhlciA4Yzp4eDo4Mjp5eTo0MTp6eg0KCWluZXQg MTkyLjE2OC4xLjExIG5ldG1hc2sgMHhmZmZmZmYwMCBicm9hZGNhc3QgMTkyLjE2OC4xLjI1NQ0K CW5kNiBvcHRpb25zPTI5PFBFUkZPUk1OVUQsSUZESVNBQkxFRCxBVVRPX0xJTktMT0NBTD4NCglt ZWRpYTogSUVFRSA4MDIuMTEgV2lyZWxlc3MgRXRoZXJuZXQgT0ZETS81NE1icHMgbW9kZSAxMWcN CglzdGF0dXM6IGFzc29jaWF0ZWQNCglzc2lkIE9wZW5CU0QgY2hhbm5lbCAxMSAoMjQ2MiBNSHog MTFnKSBic3NpZCA4Yzp4eDowYTp5eTplZjp6eg0KCWNvdW50cnkgVVMgYXV0aG1vZGUgT1BFTiBw cml2YWN5IE9OIGRlZnR4a2V5IDEgd2Vwa2V5IDE6MTA0LWJpdA0KCXR4cG93ZXIgMTQgYm1pc3Mg MTAgc2NhbnZhbGlkIDQ1MCBiZ3NjYW4gYmdzY2FuaW50dmwgMzAwDQoJYmdzY2FuaWRsZSAyNTAg cm9hbTpyc3NpIDcgcm9hbTpyYXRlIDUgcHJvdG1vZGUgQ1RTIHdtZSByb2FtaW5nIE1BTlVBTA0K I2lmY29uZmlnIHdsYW4wIGxpc3Qgc2Nhbg0KU1NJRC9NRVNIIElEICAgIEJTU0lEICAgICAgICAg ICAgICBDSEFOIFJBVEUgICBTOk4gICAgIElOVCBDQVBTDQpPcGVuQlNEICAgICAgICAgOGM6eHg6 MGE6eXk6ZWY6enogICAxMSAgIDU0TSAtNjQ6LTk1ICAxMDAgRVBTICBXTUUgQVRIIFdQUw0KI2Nh dCAvZXRjL3dwYV9zdXBwbGljYW50LmNvbmYNCiMgL2V0Yy93cGFfc3VwcGxpY2FudC5jb25mIHdy aXR0ZW4gYnkgd2lmaW1ncig4KQ0KDQoJY3RybF9pbnRlcmZhY2U9L3Zhci9ydW4vd3BhX3N1cHBs aWNhbnQNCgljdHJsX2ludGVyZmFjZV9ncm91cD13aGVlbA0KDQpuZXR3b3JrPXsNCgkjOiBIb213 QVAtV0VQDQoJc3NpZD0iT3BlbkJTRCINCglic3NpZD04Yzp4eDowYTp5eTplZjp6eg0KCWtleV9t Z210PU5PTkUNCgl3ZXBfdHhfa2V5aWR4PTANCgl3ZXBfa2V5MD0iMTIzNDU2Nzg5MDEyMyINCn0N Cg0KI3dwYV9zdXBwbGljYW50IC1pIHdsYW4wIC1jIC9ldGMvd3BhX3N1cHBsaWNhbnQuY29uZg0K d3BhX3N1cHBsaWNhbnQgLWkgd2xhbjAgLWMgL2V0Yy93cGFfc3VwcGxpY2FudC5jb25mDQpUcnlp bmcgdG8gYXNzb2NpYXRlIHdpdGggOGM6eHg6MGE6eXk6ZWY6enogKFNTSUQ9J09wZW5CU0QnIGZy ZXE9MjQ2MiBNSHopDQpBc3NvY2lhdGVkIHdpdGggOGM6eHg6MGE6eXk6ZWY6enoNCkNUUkwtRVZF TlQtQ09OTkVDVEVEIC0gQ29ubmVjdGlvbiB0byA4Yzp4eDowYTp5eTplZjp6eiBjb21wbGV0ZWQg KGF1dGgpIFtpZD0wIGlkX3N0cj1dDQoNCg0KKioqKioqKioqKioqKioqKioqKiogSW4gSG9tZS9X QVAtUFNLICoqKioqKioqKioqKioqKioqKg0KI2lmY29uZmlnIGl3bjANCml3bjA6IGZsYWdzPTg4 NDM8VVAsQlJPQURDQVNULFJVTk5JTkcsU0lNUExFWCxNVUxUSUNBU1Q+IG1ldHJpYyAwIG10dSAy MjkwDQoJZXRoZXIgOGM6eHg6ODI6eXk6NDE6enoNCgluZDYgb3B0aW9ucz0yOTxQRVJGT1JNTlVE LElGRElTQUJMRUQsQVVUT19MSU5LTE9DQUw+DQoJbWVkaWE6IElFRUUgODAyLjExIFdpcmVsZXNz IEV0aGVybmV0IGF1dG9zZWxlY3QgbW9kZSAxMWcNCglzdGF0dXM6IGFzc29jaWF0ZWQNCiNpZmNv bmZpZyB3bGFuMA0Kd2xhbjA6IGZsYWdzPTg4NDM8VVAsQlJPQURDQVNULFJVTk5JTkcsU0lNUExF WCxNVUxUSUNBU1Q+IG1ldHJpYyAwIG10dSAxNTAwDQoJZXRoZXIgOGM6eHg6ODI6eXk6NDE6enoN CgluZDYgb3B0aW9ucz0yOTxQRVJGT1JNTlVELElGRElTQUJMRUQsQVVUT19MSU5LTE9DQUw+DQoJ bWVkaWE6IElFRUUgODAyLjExIFdpcmVsZXNzIEV0aGVybmV0IGF1dG9zZWxlY3QgKGF1dG9zZWxl Y3QpDQoJc3RhdHVzOiBubyBjYXJyaWVyDQoJc3NpZCAiIiBjaGFubmVsIDEyICgyNDY3IE1IeiAx MWcpDQoJY291bnRyeSBVUyBhdXRobW9kZSBXUEExK1dQQTIvODAyLjExaSBwcml2YWN5IE9GRiBk ZWZ0eGtleSAxDQoJdHhwb3dlciAxNCBibWlzcyAxMCBzY2FudmFsaWQgNjAgYmdzY2FuIGJnc2Nh bmludHZsIDMwMCBiZ3NjYW5pZGxlIDI1MA0KCXJvYW06cnNzaSA3IHJvYW06cmF0ZSA1IHByb3Rt b2RlIENUUyB3bWUNCiNpZmNvbmZpZyB3bGFuMCBsaXN0IHNjYW4NClNTSUQvTUVTSCBJRCAgICBC U1NJRCAgICAgICAgICAgICAgQ0hBTiBSQVRFICAgUzpOICAgICBJTlQgQ0FQUw0KMHgwYjA3MTcw MDAuLi4gIDhjOnh4OjBhOnl5OmVmOnp6ICAgMTEgICA1NE0gLTY1Oi05NSAgMTAwIEVQUyAgUlNO IEhUQ0FQIE1FU0hDT05GIFdNRSBBVEggV1BTDQojY2F0IC9ldGMvd3BhX3N1cHBsaWNhbnQuY29u Zg0KIyAvZXRjL3dwYV9zdXBwbGljYW50LmNvbmYgd3JpdHRlbiBieSB3aWZpbWdyKDgpDQoNCglj dHJsX2ludGVyZmFjZT0vdmFyL3J1bi93cGFfc3VwcGxpY2FudA0KCWN0cmxfaW50ZXJmYWNlX2dy b3VwPXdoZWVsDQoNCm5ldHdvcms9ew0KCSM6IEhvbWVBUC1XUEENCglzc2lkPSIweDBiMDcxNzAw MDAwMDAwMDAwMDAwIiAjVHJ5IHRvIHNldCAiT3BlbkJTRCIsIGJ1dCBubyBlZmZlY3QuDQoJYnNz aWQ9OGM6eHg6MGE6eXk6ZWY6enoNCglrZXlfbWdtdD1XUEEtUFNLDQoJcHJvdG89UlNODQoJcHNr PSIxMjM0NTY3ODkwIg0KfQ0KDQojd3BhX3N1cHBsaWNhbnQgLWRkIC1pIHdsYW4wIC1jIC9ldGMv d3BhX3N1cHBsaWNhbnQuY29uZg0KSW5pdGlhbGl6aW5nIGludGVyZmFjZSAnd2xhbjAnIGNvbmYg Jy9ldGMvd3BhX3N1cHBsaWNhbnQuY29uZicgZHJpdmVyICdkZWZhdWx0JyBjdHJsX2ludGVyZmFj ZSAnTi9BJyBicmlkZ2UgJ04vQScNCkNvbmZpZ3VyYXRpb24gZmlsZSAnL2V0Yy93cGFfc3VwcGxp Y2FudC5jb25mJyAtPiAnL2V0Yy93cGFfc3VwcGxpY2FudC5jb25mJw0KUmVhZGluZyBjb25maWd1 cmF0aW9uIGZpbGUgJy9ldGMvd3BhX3N1cHBsaWNhbnQuY29uZicNCmN0cmxfaW50ZXJmYWNlPScv dmFyL3J1bi93cGFfc3VwcGxpY2FudCcNCmN0cmxfaW50ZXJmYWNlX2dyb3VwPSd3aGVlbCcNCkxp bmU6IDYgLSBzdGFydCBvZiBhIG5ldyBuZXR3b3JrIGJsb2NrDQpzc2lkIC0gaGV4ZHVtcF9hc2Np aShsZW49Nyk6DQogICAgIDRmIDcwIDY1IDZlIDQyIDUzIDQ0ICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgT3BlbkJTRCAgICAgICAgIA0KQlNTSUQgLSBoZXhkdW1wKGxlbj02KTogOGMgeHgg MGEgeXkgZWYgenoNCmtleV9tZ210OiAweDINCnByb3RvOiAweDINClBTSyAoQVNDSUkgcGFzc3Bo cmFzZSkgLSBoZXhkdW1wX2FzY2lpKGxlbj0xMSk6IFtSRU1PVkVEXQ0KUFNLIChmcm9tIHBhc3Nw aHJhc2UpIC0gaGV4ZHVtcChsZW49MzIpOiBbUkVNT1ZFRF0NClByaW9yaXR5IGdyb3VwIDANCiAg IGlkPTAgc3NpZD0nT3BlbkJTRCcNCk93biBNQUMgYWRkcmVzczogOGM6eHg6ODI6eXk6NDE6enoN CndwYV9kcml2ZXJfYnNkX2RlbF9rZXk6IGtleWlkeD0wDQp3cGFfZHJpdmVyX2JzZF9kZWxfa2V5 OiBrZXlpZHg9MQ0Kd3BhX2RyaXZlcl9ic2RfZGVsX2tleToga2V5aWR4PTINCndwYV9kcml2ZXJf YnNkX2RlbF9rZXk6IGtleWlkeD0zDQp3cGFfZHJpdmVyX2JzZF9zZXRfY291bnRlcm1lYXN1cmVz OiBlbmFibGVkPTANClJTTjogZmx1c2hpbmcgUE1LSUQgbGlzdCBpbiB0aGUgZHJpdmVyDQpTZXR0 aW5nIHNjYW4gcmVxdWVzdDogMCBzZWMgMTAwMDAwIHVzZWMNCkVBUE9MOiBTVVBQX1BBRSBlbnRl cmluZyBzdGF0ZSBESVNDT05ORUNURUQNCkVBUE9MOiBTdXBwbGljYW50IHBvcnQgc3RhdHVzOiBV bmF1dGhvcml6ZWQNCkVBUE9MOiBLRVlfUlggZW50ZXJpbmcgc3RhdGUgTk9fS0VZX1JFQ0VJVkUN CkVBUE9MOiBTVVBQX0JFIGVudGVyaW5nIHN0YXRlIElOSVRJQUxJWkUNCkVBUDogRUFQIGVudGVy aW5nIHN0YXRlIERJU0FCTEVEDQpFQVBPTDogU3VwcGxpY2FudCBwb3J0IHN0YXR1czogVW5hdXRo b3JpemVkDQpFQVBPTDogU3VwcGxpY2FudCBwb3J0IHN0YXR1czogVW5hdXRob3JpemVkDQpjdHJs X2ludGVyZmFjZV9ncm91cD0wIChmcm9tIGdyb3VwIG5hbWUgJ3doZWVsJykNCkFkZGVkIGludGVy ZmFjZSB3bGFuMA0KU3RhdGU6IERJU0NPTk5FQ1RFRCAtPiBTQ0FOTklORw0KU3RhcnRpbmcgQVAg c2NhbiBmb3Igd2lsZGNhcmQgU1NJRA0KUmVjZWl2ZWQgNDI0IGJ5dGVzIG9mIHNjYW4gcmVzdWx0 cyAoMSBCU1NlcykNCkJTUzogU3RhcnQgc2NhbiByZXN1bHQgdXBkYXRlIDENCkJTUzogQWRkIG5l dyBpZCAwIEJTU0lEIDhjOnh4OjBhOnl5OmVmOnp6IFNTSUQgJ09wZW5CU0QnDQpOZXcgc2NhbiBy ZXN1bHRzIGF2YWlsYWJsZQ0KU2VsZWN0aW5nIEJTUyBmcm9tIHByaW9yaXR5IGdyb3VwIDANClRy eSB0byBmaW5kIFdQQS1lbmFibGVkIEFQDQowOiA4Yzp4eDowYTp5eTplZjp6eiBzc2lkPSdPcGVu QlNEJyB3cGFfaWVfbGVuPTAgcnNuX2llX2xlbj0wIGNhcHM9MHgzMQ0KICAgc2tpcCAtIG5vIFdQ QS9SU04gSUUNClRyeSB0byBmaW5kIG5vbi1XUEEgQVANCjA6IDhjOnh4OjBhOnl5OmVmOnp6IHNz aWQ9J09wZW5CU0QnIHdwYV9pZV9sZW49MCByc25faWVfbGVuPTAgY2Fwcz0weDMxDQogICBza2lw IC0gbm9uLVdQQSBuZXR3b3JrIG5vdCBhbGxvd2VkDQpObyBzdWl0YWJsZSBuZXR3b3JrIGZvdW5k DQpTZXR0aW5nIHNjYW4gcmVxdWVzdDogNSBzZWMgMCB1c2VjDQpFQVBPTDogZGlzYWJsZSB0aW1l ciB0aWNrDQpFQVBPTDogU3VwcGxpY2FudCBwb3J0IHN0YXR1czogVW5hdXRob3JpemVkDQpTdGFy dGluZyBBUCBzY2FuIGZvciB3aWxkY2FyZCBTU0lEDQpSZWNlaXZlZCA2MTIgYnl0ZXMgb2Ygc2Nh biByZXN1bHRzICgyIEJTU2VzKQ0KQlNTOiBTdGFydCBzY2FuIHJlc3VsdCB1cGRhdGUgMg0KQlNT OiBBZGQgbmV3IGlkIDEgQlNTSUQgMDA6MWQ6MGY6OTA6MWQ6YzggU1NJRCAnVFAtTElOSycNCk5l dyBzY2FuIHJlc3VsdHMgYXZhaWxhYmxlDQpTZWxlY3RpbmcgQlNTIGZyb20gcHJpb3JpdHkgZ3Jv dXAgMA0KVHJ5IHRvIGZpbmQgV1BBLWVuYWJsZWQgQVANCjA6IDAwOjFkOjBmOjkwOjFkOmM4IHNz aWQ9J1RQLUxJTksnIHdwYV9pZV9sZW49MjYgcnNuX2llX2xlbj0yNCBjYXBzPTB4MzENCiAgIHNr aXAgLSBTU0lEIG1pc21hdGNoDQoxOiA4Yzp4eDowYTp5eTplZjp6eiBzc2lkPSdPcGVuQlNEJyB3 cGFfaWVfbGVuPTAgcnNuX2llX2xlbj0wIGNhcHM9MHgzMQ0KICAgc2tpcCAtIG5vIFdQQS9SU04g SUUNClRyeSB0byBmaW5kIG5vbi1XUEEgQVANCjA6IDAwOjFkOjBmOjkwOjFkOmM4IHNzaWQ9J1RQ LUxJTksnIHdwYV9pZV9sZW49MjYgcnNuX2llX2xlbj0yNCBjYXBzPTB4MzENCiAgIHNraXAgLSBT U0lEIG1pc21hdGNoDQoxOiA4Yzp4eDowYTp5eTplZjp6eiBzc2lkPSdPcGVuQlNEJyB3cGFfaWVf bGVuPTAgcnNuX2llX2xlbj0wIGNhcHM9MHgzMQ0KICAgc2tpcCAtIG5vbi1XUEEgbmV0d29yayBu b3QgYWxsb3dlZA0KTm8gc3VpdGFibGUgbmV0d29yayBmb3VuZA0KU2V0dGluZyBzY2FuIHJlcXVl c3Q6IDUgc2VjIDAgdXNlYw0KQ1RSTC1FVkVOVC1URVJNSU5BVElORyAtIHNpZ25hbCAyIHJlY2Vp dmVkDQpSZW1vdmluZyBpbnRlcmZhY2Ugd2xhbjANCk5vIGtleXMgaGF2ZSBiZWVuIGNvbmZpZ3Vy ZWQgLSBza2lwIGtleSBjbGVhcmluZw0KU3RhdGU6IFNDQU5OSU5HIC0+IERJU0NPTk5FQ1RFRA0K RUFQT0w6IEV4dGVybmFsIG5vdGlmaWNhdGlvbiAtIHBvcnRFbmFibGVkPTANCkVBUE9MOiBTdXBw bGljYW50IHBvcnQgc3RhdHVzOiBVbmF1dGhvcml6ZWQNCkVBUE9MOiBFeHRlcm5hbCBub3RpZmlj YXRpb24gLSBwb3J0VmFsaWQ9MA0KRUFQT0w6IFN1cHBsaWNhbnQgcG9ydCBzdGF0dXM6IFVuYXV0 aG9yaXplZA0Kd3BhX2RyaXZlcl9ic2Rfc2V0X2NvdW50ZXJtZWFzdXJlczogZW5hYmxlZD0wDQpO byBrZXlzIGhhdmUgYmVlbiBjb25maWd1cmVkIC0gc2tpcCBrZXkgY2xlYXJpbmcNCkJTUzogUmVt b3ZlIGlkIDEgQlNTSUQgMDA6MWQ6MGY6OTA6MWQ6YzggU1NJRCAnVFAtTElOSycNCkJTUzogUmVt b3ZlIGlkIDAgQlNTSUQgOGM6eHg6MGE6eXk6ZWY6enogU1NJRCAnT3BlbkJTRCcNCkNhbmNlbGxp bmcgc2NhbiByZXF1ZXN0DQpDYW5jZWxsaW5nIGF1dGhlbnRpY2F0aW9uIHRpbWVvdXQNCndwYV9k cml2ZXJfYnNkX3NldF93cGFfaW50ZXJuYWw6IHdwYT0zIHByaXZhY3k9MA0KRUxPT1A6IHJlbWFp bmluZyBzb2NrZXQ6IHNvY2s9NCBlbG9vcF9kYXRhPTB4ODAxNDBmMzAwIHVzZXJfZGF0YT0weDgw MTQzYzA4MCBoYW5kbGVyPTB4NDI4MGUwDQoNCg== From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 19:11:24 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B41FD10656D0 for ; Mon, 30 Jul 2012 19:11:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 86BC78FC1A for ; Mon, 30 Jul 2012 19:11:24 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so10773482pbb.13 for ; Mon, 30 Jul 2012 12:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zzfDJtpA9Hq57NeRk4+Z2DKIDjJEV76A3IWRf3Sizcs=; b=v8bXxN1kBbj9n5m7j2Tt/m7MKZGbar1mmUweUG8VTdvryleytLBX/soaJ1GFoN3zDI PcoauwjgI8G/GjGgrbJDUH2RKvp6usDXK8GViY4D+R4lotztEfKtbriMUUq1S3ThzHZi 2rKwTF5X4L/iuPQXjVss9GwyvJKTutEJ8S6XmmAJOoa3bltKLdhvSZH/xg9+CrLz7Fsq bP9n6bZgTgq+EbkYGCptKocBOXHiJaw8eXd+VMeybW1aClkMHAViqrZ/1OLsIDWdWtXP TbMep5sQDgq32gtSaZ2HGfHVXAELLi/UZbnH1kV6VJPJ56zl1JtbG2d1zHRVQDcJ7L4a EXtQ== MIME-Version: 1.0 Received: by 10.68.191.234 with SMTP id hb10mr23157470pbc.2.1343675484285; Mon, 30 Jul 2012 12:11:24 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Mon, 30 Jul 2012 12:11:24 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jul 2012 12:11:24 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Mon, 30 Jul 2012 19:11:24 -0000 Well, we really need to figure out exactly the code and locking paths that is causing these LORs. I don't have the time to figure it out just at the moment - I want to focus on bringing the AR93xx series NICs into FreeBSD in a clean, non-hacky method. I also don't really like at all how these locks are recursive, but fixing that is likely a very large effort. I'd like to tackle it but not quite right at the moment. So, let's list all the LORs that you're seeing and figure out the code paths, so we can correctly fix these issues. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 19:11:35 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FFC2106564A for ; Mon, 30 Jul 2012 19:11:35 +0000 (UTC) (envelope-from stl@koffein.net) Received: from hapkido.dreamhost.com (hapkido.dreamhost.com [66.33.216.122]) by mx1.freebsd.org (Postfix) with ESMTP id 1185F8FC1C for ; Mon, 30 Jul 2012 19:11:35 +0000 (UTC) Received: from homiemail-a37.g.dreamhost.com (caiajhbdcbbj.dreamhost.com [208.97.132.119]) by hapkido.dreamhost.com (Postfix) with ESMTP id 8ABF01207 for ; Mon, 30 Jul 2012 12:11:29 -0700 (PDT) Received: from homiemail-a37.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a37.g.dreamhost.com (Postfix) with ESMTP id 2FA16208070; Mon, 30 Jul 2012 12:11:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=koffein.net; h=content-type :in-reply-to:subject:references:from:to:cc:date:message-id: content-transfer-encoding; q=dns; s=koffein.net; b=UxS+tPl+F8J8o MEUZEPhBBF2jr3QusX4I4WLFsAzLl2j78pDr1UAfDYfd24m2ozEOUxdiGQL4qNo9 3hd88IFHf5G1xqLcSsJzKiYwuC0THo84+2TzEbA82HzL+4Z6xBSxkRx5zhoOUGvV BPZFL6qtgO/5XgCARtEl10eR0Ll2Yo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=koffein.net; h= content-type:in-reply-to:subject:references:from:to:cc:date :message-id:content-transfer-encoding; s=koffein.net; bh=4hotPSm DwOEFS+ul4C37Pw94sCc=; b=FQ9P2Cx7pJW9DCF/f5Zl0LB05bLQFigXHG16kGf JhiznrUyqS7UBxHxiacxnsH4U2DEuiTYc7AXwZuJsBF9Jk9QRQ+ls63xM1s8V+n3 Cb4Jw8z04L9jIHjKz/90d1YNxxd/8wvjfnXvG+PU/iaZwTeZMUjf+sS5hyIkQlBR ZUwQ= Received: from localhost (c220-237-87-178.ipswc3.qld.optusnet.com.au [220.237.87.178]) (Authenticated sender: stl@koffein.net) by homiemail-a37.g.dreamhost.com (Postfix) with ESMTPA id 9B6F820806B; Mon, 30 Jul 2012 12:11:22 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 In-reply-to: References: <1343589599-sup-3228@soma.koffein.net> <1343596229-sup-970@soma.koffein.net> <1343599741-sup-3942@soma.koffein.net> From: Steven Lawrance To: Adrian Chadd Date: Mon, 30 Jul 2012 21:11:47 +0200 Message-Id: <1343675052-sup-199@soma.koffein.net> User-Agent: Sup/git Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Testing 802.11n hostap on AR9220 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: Mon, 30 Jul 2012 19:11:35 -0000 Excerpts from Adrian Chadd's message of Mon Jul 30 01:06:26 +0200 2012: > Ok. It looks like aggregation aetup is happening badly. >=20 > Lets narrow it down . Do ifconfig wlanX -ampdutx and retry. Then enable > ampdutx and -ampdurx. Lets see whixh breaks it. It worked fine with -amptudx, and broke again as soon as I reenabled it. > Do you have a freebsd 11n Sta that can be used in mpnitor mode? Unfortunately, no. The Broadcom card in my laptop doesn't appear to be supported, and I've just moved overseas so I have pretty much no other gear at all. I wouldn't mind picking something else up, especially if it improves testing coverage, so let me know if you have any suggestions (whether another MiniPCI card to go in the other slot of this ALIX board, or a MiniPCI-E card to replace the one in the laptop, or a USB device for either). --=20 Steven Lawrance stl@koffein.net From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 19:13:39 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59D7E1065672 for ; Mon, 30 Jul 2012 19:13:39 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2A39B8FC14 for ; Mon, 30 Jul 2012 19:13:39 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so10776471pbb.13 for ; Mon, 30 Jul 2012 12:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uceLVCr8nejOG1Nsb3dm832bzBC0MABlGhEUwS51xoo=; b=avqBTWrA/PgI5pSSqfUcdMmp37nAxrNnex+cKQQlZ7dzfREjeWxJfUIfXqLDORlYA+ rFDmxrw1IAWI1NGvZd+6i5fBE2s4w6uNKEXMbcHgybptvJuztq8JU17be/BR70/yVs68 nDZ14HonlWpBnaiG1VGuEPB+R5hDibA4n4Bx75/BEz7UQBQ0O0V7YdZpL8o5i+I9wOSG zzR5N5JJmKq5hxv07dfVqgLhubt6muO1JffvToomKVoqcbu0OdCwOGyMuQlgbOO7bewO 3PiUzxlRpBMR48aO92ZNh5UgDsVdQuZduAque7pMS590xIfnKRdxoPT0YjPMDvw4rhwL yR+A== MIME-Version: 1.0 Received: by 10.68.228.2 with SMTP id se2mr37784246pbc.109.1343675618947; Mon, 30 Jul 2012 12:13:38 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Mon, 30 Jul 2012 12:13:38 -0700 (PDT) In-Reply-To: <1343675052-sup-199@soma.koffein.net> References: <1343589599-sup-3228@soma.koffein.net> <1343596229-sup-970@soma.koffein.net> <1343599741-sup-3942@soma.koffein.net> <1343675052-sup-199@soma.koffein.net> Date: Mon, 30 Jul 2012 12:13:38 -0700 Message-ID: From: Adrian Chadd To: Steven Lawrance Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless Subject: Re: Testing 802.11n hostap on AR9220 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: Mon, 30 Jul 2012 19:13:39 -0000 On 30 July 2012 12:11, Steven Lawrance wrote: > Excerpts from Adrian Chadd's message of Mon Jul 30 01:06:26 +0200 2012: >> Ok. It looks like aggregation aetup is happening badly. >> >> Lets narrow it down . Do ifconfig wlanX -ampdutx and retry. Then enable >> ampdutx and -ampdurx. Lets see whixh breaks it. > > It worked fine with -amptudx, and broke again as soon as I reenabled it. Ok. Please file a PR with all these details, including that ampdutx broke things. >> Do you have a freebsd 11n Sta that can be used in mpnitor mode? > > Unfortunately, no. The Broadcom card in my laptop doesn't appear to be > supported, and I've just moved overseas so I have pretty much no other > gear at all. I wouldn't mind picking something else up, especially if > it improves testing coverage, so let me know if you have any suggestions > (whether another MiniPCI card to go in the other slot of this ALIX > board, or a MiniPCI-E card to replace the one in the laptop, or a USB > device for either). I'd like to get the ampdu tx issues fixed more than anything else. I bet that it's something to do with the starting point of the aggregation session (ie, what sequence number it begins at.) I'll have to do some further digging, but I don't currently have anything with that Broadcom NIC in it. Let me see if I have a broadcom 802.11n NIC in here and if so, I'll whack it into a Linux laptop and do some basic testing. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 19:33:42 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0BB81065672 for ; Mon, 30 Jul 2012 19:33:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id A2FF48FC12 for ; Mon, 30 Jul 2012 19:33:42 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so10804153pbb.13 for ; Mon, 30 Jul 2012 12:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=XCCpUl6fYtw/1hXlgSr84K1EVZXwO1oM/LJ7tJ3QKVg=; b=oz/gUggt4ZmQ6jaMk0U2dqlZBdYwNdZN7f2ok/t0kKYw5J0eaxwjow+9B382gl4lxn 7eY6c6otutSxZmjokP4zIarpkDjHk+kjO8w+OwixPjDGcxIzHeYL8ejBAqE0sSgp+bi4 puCvo1sI83P2C88ykqXPVid9ka7rwTxbWGrnHTqLzoVb04/UQRDVE9USsl53onzUkr4A G/aiClsVi2p3DpONMT41LzhnlQ2q+qmtBri1H3rga2bq7P3MOoBMF9/7nfLO/6cU9l8i qt8es27XUvo+YeHv63dmdRzK1x++dFTW14taMvpQMfxJHOmf0/gpfZXFF2LRlFic/U58 f1bg== MIME-Version: 1.0 Received: by 10.68.212.138 with SMTP id nk10mr37985062pbc.93.1343676822449; Mon, 30 Jul 2012 12:33:42 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Mon, 30 Jul 2012 12:33:42 -0700 (PDT) In-Reply-To: <201207310032346632212@gmail.com> References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> Date: Mon, 30 Jul 2012 12:33:42 -0700 X-Google-Sender-Auth: baB7aVYr3XKoi3J8PjZ6bU0aLnM Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Mon, 30 Jul 2012 19:33:42 -0000 That SSID looks very odd. And look at the output of wpa_supplicant - it isn't finding any WPA enabled APs. And do an "ifconfig -v wlan0 list scan" at home, to get the entire SSID and decoded beacon contents from the scan cache. Adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 30 22:21:33 2012 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 E13FD106566B; Mon, 30 Jul 2012 22:21:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id A8EA38FC0C; Mon, 30 Jul 2012 22:21:33 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so11025433pbb.13 for ; Mon, 30 Jul 2012 15:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=iFBCnNYW6L9YDZtq12Bh2+TkzbP90Bz4MdRVqH/mspg=; b=NnU5cCMK9WDSyehQ/G9BQEh4kvGobfyLLYEkCsWMdV3jDLJZLLWIYe1+hd9ILDo0R6 2OdaYA/9zGWgP5PYM0myvQkS64Y/8iIvK1aTaI2IN5TZdbRDC4Sy6e5jyQOfhp4ZUrqE 2BlIgbJx92Qune9m7+s00d7BLDl8tBixnKUPI5OvW/r0B/zF4+W1/eimAza8VpGME0X0 ZpzVuBX92Kc4JSx6Eb3yOwRhVpCXHj0kwlc4NUZuSbOfPfY0g4ZXOEplLwbhB1stXCJI q+my/ay9otwhuq1pVslP3He+gwP8dxsNVf4cw2uqUCi+35T3XHVNpFXxwBZtcWX9GaGz 30aA== MIME-Version: 1.0 Received: by 10.68.241.35 with SMTP id wf3mr38368662pbc.102.1343686893212; Mon, 30 Jul 2012 15:21:33 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Mon, 30 Jul 2012 15:21:33 -0700 (PDT) In-Reply-To: <653414070.20120730111836@serebryakov.spb.ru> References: <653414070.20120730111836@serebryakov.spb.ru> Date: Mon, 30 Jul 2012 15:21:33 -0700 X-Google-Sender-Auth: 7jJZKsMBAWItGxxGkBYcBxF8KOc Message-ID: From: Adrian Chadd To: lev@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, bug-followup@freebsd.org Subject: Re: kern/170254: [ath] Atheros 9220 device timeouts. 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: Mon, 30 Jul 2012 22:21:34 -0000 And just so others can see what's going on.. here's an example "device timeout" that's worth investigating. On 30 July 2012 00:18, Lev Serebryakov wrote: > Jul 30 01:20:50 gateway kernel: ath0: device timeout > Jul 30 01:20:50 gateway kernel: ath0: ath_reset: called > Jul 30 01:20:50 gateway kernel: ath0: ath_stoptxdma: tx queue [9] 0x1b8b000, link 0 .. queue 9 is the beacon queue. > Jul 30 01:20:50 gateway kernel: ath0: ath_tx_stopdma: tx queue [0] 0, link 0 > Jul 30 01:20:50 gateway kernel: ath0: ath_tx_stopdma: tx queue [1] 0x20e6780, link 0xd58e7420 The hardware thinks the TX descriptor pointer for this TX queue is 0x20e6780. Let's see if that lines up with reality. > Jul 30 01:20:50 gateway kernel: ath0: ath_tx_stopdma: tx queue [2] 0, link 0 > Jul 30 01:20:50 gateway kernel: ath0: ath_tx_stopdma: tx queue [3] 0, link 0 > Jul 30 01:20:50 gateway kernel: ath0: ath_tx_stopdma: tx queue [8] 0x2115b40, link 0xd5915ba0 > Jul 30 01:20:50 gateway kernel: Q1[ 0] (DS.V:0xd58e63c0 DS.P:0x20e63c0) L:020e6420 D:16753a3e F:0001 > Jul 30 01:20:50 gateway kernel: Seq: 45152 swtry: 0 ADDBAW?: 0 DOBAW?: 0 > Jul 30 01:20:50 gateway kernel: 413f0612 0000902c 24348000 1b0e090d 022c0180 315a02d8 > Jul 30 01:20:50 gateway kernel: 08000000 0006318c 00000000 3f000000 3f000000 3f000000 00000000 00000000 > Jul 30 01:20:50 gateway kernel: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 First half of a two-part frame. Looks fine to me. It's a legacy frame. > Jul 30 01:20:50 gateway kernel: (DS.V:0xd58e6420 DS.P:0x20e6420) L:020e73c0 D:167e7810 F:0001 > Jul 30 01:20:50 gateway kernel: Seq: 45152 swtry: 0 ADDBAW?: 0 DOBAW?: 0 > Jul 30 01:20:50 gateway kernel: 00000000 000005dc 24348000 1b0e090d aa55aa55 aa55aa55 > Jul 30 01:20:50 gateway kernel: a801aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 00000000 00000000 > Jul 30 01:20:50 gateway kernel: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > Jul 30 01:20:50 gateway kernel: [end] This is the second half. Now, note the 0xaa55? It looks like the descriptor memory was never bzero()'ed. I'll look into why this is. I would've expected that the descriptor contents would be bzero()'ed before used. But - it's not marked as completed, so it's not a "missed TX completion interrupt" issue. It could be a "hardware was never given this particular descriptor to TX" issue. It could be a "hardware was given this descriptor but it hung" issue. It also unfortunately may be a "previous descriptor was corrupted and the hardware stopped processing things at this point" issue. Since the HWQ isn't empty, it's not a "nothing was actually added to the HW queue" issue. Now, the hardware TX descriptor pointer (TXDP) is pointing to 0x20e6780. That isn't this descriptor at all. So it's quite likely pointing at something garbage. I'll explain how it works in detail below. Next: Q8 is the content-after-beacon queue. The single frame in it did complete, but for whatever reason, the driver hadn't serviced this queue yet to handle said completed frame. > Jul 30 01:20:50 gateway kernel: Q8[ 0] (DS.V:0xd5915b40 DS.P:0x2115b40) L:02115ba0 D:1f00913e F:0003 * > Jul 30 01:20:50 gateway kernel: Seq: 2224 swtry: 0 ADDBAW?: 0 DOBAW?: 0 > Jul 30 01:20:50 gateway kernel: 413f007c 01005028 00018000 0000001b 000004aa 00000000 > Jul 30 01:20:50 gateway kernel: 08000000 0000000c 00000000 3f000000 3f000000 3f000000 00000000 00000000 > Jul 30 01:20:50 gateway kernel: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > Jul 30 01:20:50 gateway kernel: (DS.V:0xd5915ba0 DS.P:0x2115ba0) L:00000000 D:1f008c46 F:0003 * > Jul 30 01:20:50 gateway kernel: Seq: 2224 swtry: 0 ADDBAW?: 0 DOBAW?: 0 > Jul 30 01:20:50 gateway kernel: 00000000 00000048 00018000 0000001b aa55aa55 aa55aa55 > Jul 30 01:20:50 gateway kernel: a801aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 aa55aa55 00808080 00000001 > Jul 30 01:20:50 gateway kernel: 0396cbc4 40bc118a 8c006fc7 80808080 80808080 80808080 80808080 00000983 > Jul 30 01:20:50 gateway kernel: [end] How often is this happening? Now, what's going on in Q1: The TXDP points to a descriptor that isn't the one that's in the head of the TX descriptor list. There are a few possibilities: There may be some races in the HW TXQ handling which is not keeping that descriptor list in lock-step with what the hardware expects. I'll review this again. There's a race where the TX DMA engine will re-read the link pointer of the previous descriptor to look at where the next descriptor is, and if that descriptor has been freed by the hardware - or if the link pointer pointed to NULL at that time) the hardware will stop transmitting. The only way to recover this is to write a new TXDP and write "1" to the relevant TXE bit for that queue. Sam implemented a fix for a single-queue device in his TDMA work - the driver stores the last descriptor that was handled and doesn't free it until the next descriptor in the list has been successfully TX'ed. That way if TX stops for a little while (eg because of noisy air, or RX that occurs, or it hits the end of a TX burst opportunity) the hardware will be able to re-read the link pointer from the last completed descriptor in order to get the next descriptor to start TXing from. There are two issues with Sam's implementation: * It doesn't track this TX buffer stuff for each queue (which it needs to!) - it only does it globally. Since there's 10 TX queues with separate DMA engines, we should really be keeping this "last" buffer around for each TX queue; * It's only enabled when you enabled TDMA support. So - do you have TDMA support compiled into the driver/kernel? If not, would you mind compiling in TDMA support so this code gets included, and we'll see if it helps? The next thing we can try is to hack up the TX watchdog routine to first try re-setting the DMA for any TX queue that's stopped, if the queue just has unserviced frames. In this instance, TX should just start up again. That won't _fix_ the problem, but it'll help us narrow down whether it's actually what I think it is. Finally, once I finish the AR93xx support, this issue will go away. The FIFO model was designed specifically to avoid this software hack. :-) Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 00:28:59 2012 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 9CB10106566C for ; Tue, 31 Jul 2012 00:28:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 566C78FC08 for ; Tue, 31 Jul 2012 00:28:59 +0000 (UTC) Received: by yhfs35 with SMTP id s35so6400262yhf.13 for ; Mon, 30 Jul 2012 17:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cTKP6VKO6TArStFPtIkGOLYkYxGmlAd3TjjjiXdpJMA=; b=d6ITGinSYHaUtUkJA4HEPpmPyqw43h9X3D7PdrHaZswvW8CDs+K8Mhg7U2bsw5xVox upO5EfKWMYBK5T/7rcx0h5n5yJVHbb7PCqAwRz6wUcs31oSrI/dT0E3lVK2ZKZNiUp0A V+KcCy8THLJyqIIY3LlCxh+uJm3D6Dj1OiLBKF3Ys46+v7p2coBm0bV15AciG17jpuFy lynYq4yEFTvVvnRBtAc/tinKYBUrpDQROKdvAlBNaoi8DqrtWoCsrk3k5CcmSsw/iJ2l J18jeBpxBdPz8ieEhfPFkbkKsN7gvlheovtg0q9QDB2X5F970oB3CtpNpSlfUVoPT8+n 6rwg== MIME-Version: 1.0 Received: by 10.66.75.201 with SMTP id e9mr28225474paw.54.1343694532527; Mon, 30 Jul 2012 17:28:52 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Mon, 30 Jul 2012 17:28:52 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jul 2012 17:28:52 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Tue, 31 Jul 2012 00:28:59 -0000 On 30 July 2012 12:11, Adrian Chadd wrote: > Well, we really need to figure out exactly the code and locking paths > that is causing these LORs. I don't have the time to figure it out > just at the moment - I want to focus on bringing the AR93xx series > NICs into FreeBSD in a clean, non-hacky method. Looking at Kim's backtrace: Jul 21 16:09:49 foo kernel: lock order reversal: Jul 21 16:09:49 foo kernel: 1st 0xffffff8001ad3948 ath0_scan_lock (ath0_scan_lock) @ /usr/src/sys/net80211/ieee8 0211_node.c:2166 This is in ieee80211_iterate_nodes() Jul 21 16:09:49 foo kernel: 2nd 0xffffff8001ad2018 ath0_com_lock (ath0_com_lock) @ /usr/src/sys/net80211/ieee802 11_node.c:2518 This is in ieee80211_node_leave() - which is sometimes called from ieee80211_iterate_node() via some iterator functions (eg sta_disassoc() -> ieee80211_node_leave()) and thus will be called with the scan lock held. So, any point where ieee80211_iterate_nodes() is called with the com lock held (IEEE80211_LOCK()) is going to lead to a LOR. Thus- if we move the actual call of the iterator function to be _outside_ of the iteration lock, we should be ok. The main downside to this is that unfortunately we'll end up having the possibility of overlapping iterations occuring. Right now that's not possible, as the scan lock prevents to calls to ieee80211_iterate_node() from overlapping. This may have some flow-on effects. The other place where the iterate lock is grabbed is ieee80211_timeout_stations(), which does much of what ieee80211_iterate_node() does. I don't know why it doesn't actually use ieee80211_iterate_node(). Ok. so there's two possible LORs that occur: * one is with ieee80211_iterate_nodes() and itself - where one instance is called with no comlock held, and one called with the comlock held. The latter occurs from newstate(), where some node iteration is done from inside the comlock. * one is with ieee80211_iterate_nodes() with ieee80211_timeout_stations() - again, becausse the former can be called with or without the comlock held. The timeout is a bit annoying - it'd be nice if all the callouts actually took/held a mutex. The inactivity timer doesn't, so it can't be atomically cancelled in any useful way. If it were modified to do so, the comlock would end up being held across a whole lot of these functions. That would make locking very, very delicate, as now you risk having locks being held across calls to the drivers. So, hm. What to do next. I'd personally like to define ieee80211_iterate_nodes() as "can't be called with the node table OR the com lock held" but that'd require some significant reworking. Feedback? Adrian Jul 21 16:09:49 foo kernel: KDB: stack backtrace: Jul 21 16:09:49 foo kernel: db_trace_self_wrapper() at db_trace_self_wrapper+0x37 Jul 21 16:09:49 foo kernel: kdb_backtrace() at kdb_backtrace+0x39 Jul 21 16:09:49 foo kernel: witness_checkorder() at witness_checkorder+0xca1 Jul 21 16:09:49 foo kernel: _mtx_lock_flags() at _mtx_lock_flags+0x79 Jul 21 16:09:49 foo kernel: ieee80211_node_leave() at ieee80211_node_leave+0x97 Jul 21 16:09:49 foo kernel: ieee80211_iterate_nodes() at ieee80211_iterate_nodes+0x89 Jul 21 16:09:49 foo kernel: setmlme_common() at setmlme_common+0x408 Jul 21 16:09:49 foo kernel: ieee80211_ioctl_setmlme() at ieee80211_ioctl_setmlme+0x87 Jul 21 16:09:49 foo kernel: ieee80211_ioctl_set80211() at ieee80211_ioctl_set80211+0x5b0 Jul 21 16:09:49 foo kernel: in_control() at in_control+0x234 Jul 21 16:09:49 foo kernel: ifioctl() at ifioctl+0x148c Jul 21 16:09:49 foo kernel: kern_ioctl() at kern_ioctl+0x1dc Jul 21 16:09:49 foo kernel: sys_ioctl() at sys_ioctl+0x12e Jul 21 16:09:50 foo kernel: amd64_syscall() at amd64_syscall+0x25a Jul 21 16:09:50 foo kernel: Xfast_syscall() at Xfast_syscall+0xfb Jul 21 16:09:50 foo kernel: --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x801210dfc, rsp = 0x7fffffffda78, rbp = 0x2a --- Jul 21 16:09:50 foo kernel: ath0: stuck beacon; resetting (bmiss count 4) thanks From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 01:17:11 2012 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 9C868106566C for ; Tue, 31 Jul 2012 01:17:11 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm8.bullet.mail.bf1.yahoo.com (nm8.bullet.mail.bf1.yahoo.com [98.139.212.167]) by mx1.freebsd.org (Postfix) with ESMTP id 425E98FC14 for ; Tue, 31 Jul 2012 01:17:10 +0000 (UTC) Received: from [98.139.212.146] by nm8.bullet.mail.bf1.yahoo.com with NNFMP; 31 Jul 2012 01:17:04 -0000 Received: from [98.139.211.192] by tm3.bullet.mail.bf1.yahoo.com with NNFMP; 31 Jul 2012 01:17:04 -0000 Received: from [127.0.0.1] by smtp201.mail.bf1.yahoo.com with NNFMP; 31 Jul 2012 01:17:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1343697424; bh=pob/hpJhnHfgeuUFt4cgL2PPOm5f4xU9bcrKmS3aOVA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=ducB6RZpJtzOYTlfNNcyp1ZzFFrQBSlXz6MavDVCVGTAPvfDs7vetGMS8fSPIJv6z/fsJ+rIVkvRABxMfHDjSn0OwqKLgRgSsyh8K+aa35Fm1vZCtxJVoM3x5XxfTe0iYBvCj2FSUFwV4GOhtOc6ZcIVh+gH442aw3mmnMc1Bmw= X-Yahoo-Newman-Id: 227370.10558.bm@smtp201.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: GvdWDVoVM1m48f_oEf5bounGmMw3aBsm6MObKHASH9sU0Yt zvW0EMTnlmQHZTjE0itrzK1i.sgKpP5xQ3dQNHAL7ZGF3GaFgl6PIMl2mj.f h9xXTELXCpKoeUAIPCDzvQx7pHAO1xKjuKWHmUymIIQowlpFXsvsIEUq4vSY b2.dDv.sRjYqrFRmzaz66ku7c9nG.4R_TM6LBQm0cqLnB2Y9mfV9CcM136lI BrMxECnmr6NEOpd0uGOOQnzRz4o0yCEGz1NzgBtFtJKAM7ytr94DUjIGDMbt iwm0n9MgqkB2QpH2JltofqK8tSPAvaG8RNxIUYeh7lCYWy6OVszE5xOM25aq 9D.65u6UjafmBDH3mQD5gXid2NY3c9C7moNVxlUV6Il0SLw2n.uRcqEIvm6h 7AaqGC_DlGjxczpO2KCzJcxMLtgy66Plq2vi0RMeAEosYhDSrGQPOnQt.42L eViQAtMp8aDWTkAhs0cQ- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vc0-f182.google.com (moonlightakkiy@209.85.220.182 with plain) by smtp201.mail.bf1.yahoo.com with SMTP; 30 Jul 2012 18:17:04 -0700 PDT Received: by vcbgb22 with SMTP id gb22so6377474vcb.13 for ; Mon, 30 Jul 2012 18:17:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.97.196 with SMTP id ec4mr11265406vdb.96.1343697423259; Mon, 30 Jul 2012 18:17:03 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Mon, 30 Jul 2012 18:17:03 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jul 2012 19:17:03 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd , Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath lor 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: Tue, 31 Jul 2012 01:17:11 -0000 On Mon, Jul 30, 2012 at 3:16 AM, PseudoCylon wrote: >> ------------------------------ >> >> Message: 3 >> Date: Sat, 28 Jul 2012 19:36:38 -0700 >> From: Adrian Chadd >> Subject: Re: ath lor >> To: Kim Culhan >> Cc: freebsd-wireless@freebsd.org >> Message-ID: >> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> Hm, if someone's up for a bit of coding, here's my suggestIon: >> >> * create an iterator struct which just contains an array of >> ieee80211_node entries; >> * write an iterator function that _just_ populates that iterator >> struct with ieee80211 node entries, but after having locked them; >> * then, once the call to ieee80211_iterate_node() is done, the >> iterator struct will have a list of nodes to iterate over; >> * then just call the original callback over each member of that >> iterator struct node array, derefing nodes as you go along. >> > [RFC] I guess this what you want. ieee80211_timeout_stations() needs a special attention, though. ieee80211_iterate_nt(struct node_table *nt, struct ieee80211_node *ni_arr, u_int *gen) { struct ieee80211_node *ni; int i = 0; IEEE80211_NODE_ITERATE_LOCK(nt); *gen = ++nt->nt_scangen; TAILQ_FOREACH(ni, &nt->nt_node, ni_list) (ni_arr + i++) = ieee80211_ref_node(ni); IEEE80211_NODE_ITERATE_UNLOCK(nt); } /* * Just a wrapper, so we don't have to change every ieee80211_iterate_nodes() * reference in the source. * * A caller may directly call ieee80211_iterate_nt() and do customized stuff. * Only requirement is to decrement each node's ref count. */ ieee80211_iterate_nodes(struct ieee80211_node_table *nt, ieee80211_iter_func *f, void *arg) { /* * Any driver should allocate array with own max aid * when directly calling ieee80211_iterate_nt(). */ struct ieee80211_node *ni_arr[IEEE80211_AID_DEF]; u_int gen; int i; memset(ni_arr, 0, sizeof(ni_arr)); ieee80211_iterate_nt(nt, ni_arr, &gen); IEEE80211_NODE_LOCK(nt); for (i = 0; i < IEEE80211_AID_DEF; i++) { if (ni == NULL) /* end of the list */ break; if (ni->ni_scangen == gen) continue; ni->ni_scangen = gen; IEEE80211_NODE_UNLOCK(nt); (*f)(arg, ni_arr + i); /* ieee80211_free_node() locks by itself */ ieee80211_free_node(ni); IEEE80211_NODE_LOCK(nt); i = 0; } IEEE80211_NODE_UNLOCK(nt); } From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 01:22:44 2012 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 638381065672 for ; Tue, 31 Jul 2012 01:22:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1CBB38FC14 for ; Tue, 31 Jul 2012 01:22:44 +0000 (UTC) Received: by ggnm2 with SMTP id m2so6451291ggn.13 for ; Mon, 30 Jul 2012 18:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Jbwiz/ktPxhqpQVAijDvMBfLZdbNo+yNfjNnv8O0X6Y=; b=uoyjoh/yvyTYTsz1mwTSmjj7oQZfylceuH2ZLRXpIhqECN+RO5+LCZ9ZxP15Pbox4R WHdZRpAqjvIaA0ox5Q045BLQ2aMZorkhP1a7wYB8f+k6w+cRu8Wbd2LG0ytwcgapnSw2 WOklv1j+P81VRt/hgad7adsuM2isM2SRSg8kmuFjr6J2oM/iHhfnm5LSZS10+XbRh2Ze i2FB81XOnWJ/Ci/tnyUGWrRI7fN/103kc6wPioAKUYNVLuS5KHxbdoBgUf5/1GB8DtES KTW5C3CK03hSL/jDz8H4Fp4DA93KqesEbOf3utKukk3Szr/XBvulSkxElUFbF5ONjtVE XFig== MIME-Version: 1.0 Received: by 10.66.75.201 with SMTP id e9mr28465100paw.54.1343697763073; Mon, 30 Jul 2012 18:22:43 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Mon, 30 Jul 2012 18:22:43 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jul 2012 18:22:43 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Tue, 31 Jul 2012 01:22:44 -0000 Yeah, That's what I had in mind. Trouble is, the AID isn't fixed at that value: vap->iv_max_aid = IEEE80211_AID_DEF; So likely we should malloc (M_NOWAIT | M_ZERO) a temporary array of size iv_max_aid. Have you seen the scan/node LORs? Are you able to verify that your change fixes that? Adrian On 30 July 2012 18:17, PseudoCylon wrote: > On Mon, Jul 30, 2012 at 3:16 AM, PseudoCylon wrote: >>> ------------------------------ >>> >>> Message: 3 >>> Date: Sat, 28 Jul 2012 19:36:38 -0700 >>> From: Adrian Chadd >>> Subject: Re: ath lor >>> To: Kim Culhan >>> Cc: freebsd-wireless@freebsd.org >>> Message-ID: >>> >>> Content-Type: text/plain; charset=ISO-8859-1 >>> >>> Hm, if someone's up for a bit of coding, here's my suggestIon: >>> >>> * create an iterator struct which just contains an array of >>> ieee80211_node entries; >>> * write an iterator function that _just_ populates that iterator >>> struct with ieee80211 node entries, but after having locked them; >>> * then, once the call to ieee80211_iterate_node() is done, the >>> iterator struct will have a list of nodes to iterate over; >>> * then just call the original callback over each member of that >>> iterator struct node array, derefing nodes as you go along. >>> >> > > [RFC] > I guess this what you want. ieee80211_timeout_stations() needs a > special attention, though. > > ieee80211_iterate_nt(struct node_table *nt, struct ieee80211_node *ni_arr, > u_int *gen) > { > struct ieee80211_node *ni; > int i = 0; > > IEEE80211_NODE_ITERATE_LOCK(nt); > *gen = ++nt->nt_scangen; > > TAILQ_FOREACH(ni, &nt->nt_node, ni_list) > (ni_arr + i++) = ieee80211_ref_node(ni); > > IEEE80211_NODE_ITERATE_UNLOCK(nt); > } > > /* > * Just a wrapper, so we don't have to change every ieee80211_iterate_nodes() > * reference in the source. > * > * A caller may directly call ieee80211_iterate_nt() and do customized stuff. > * Only requirement is to decrement each node's ref count. > */ > ieee80211_iterate_nodes(struct ieee80211_node_table *nt, > ieee80211_iter_func *f, void *arg) > { > /* > * Any driver should allocate array with own max aid > * when directly calling ieee80211_iterate_nt(). > */ > struct ieee80211_node *ni_arr[IEEE80211_AID_DEF]; > u_int gen; > int i; > > memset(ni_arr, 0, sizeof(ni_arr)); > ieee80211_iterate_nt(nt, ni_arr, &gen); > > IEEE80211_NODE_LOCK(nt); > > for (i = 0; i < IEEE80211_AID_DEF; i++) { > if (ni == NULL) /* end of the list */ > break; > if (ni->ni_scangen == gen) > continue; > > ni->ni_scangen = gen; > > IEEE80211_NODE_UNLOCK(nt); > (*f)(arg, ni_arr + i); > /* ieee80211_free_node() locks by itself */ > ieee80211_free_node(ni); > IEEE80211_NODE_LOCK(nt); > > i = 0; > } > > IEEE80211_NODE_UNLOCK(nt); > } From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 03:03:01 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B55B106566C for ; Tue, 31 Jul 2012 03:03:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id F2FE98FC12 for ; Tue, 31 Jul 2012 03:03:00 +0000 (UTC) Received: by yhfs35 with SMTP id s35so6500500yhf.13 for ; Mon, 30 Jul 2012 20:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xlh2gxOmXN2/EARkgmSjHvZE99DWGrnXpmn773vy7pY=; b=Oy88j+agqsiWsI0OvxjnMfRtreQOmytb5uxZQrBoi5fkAyaTfinHYNh+wYW+Sk+8Ok qpK9GZis6GUwrwJcNKUFB+qc9CkfvVIHsihawMJ9guLxOzdibXrnlB/ZhRQavE6DaxDy PAhL9Ak8QownRzP8pOLbQaEDRKCZ8xqjo3DJXs+TVk66oh2xB/BzvPoALnRbF8h80OsN ON8pfgUqgF+iLkxZPyrwverIT3BmlVZT6RdfHfBc/pOgeRI6JZZawvy8zrPYZiEfCCzY 1ZFef20NaKXmpAplXH+OAhTGouLPJ+8SiQ6XKyuEaWAOLhSHaCWYv6ppXeRD9ejWOY5q mdzg== MIME-Version: 1.0 Received: by 10.66.73.70 with SMTP id j6mr29138759pav.5.1343703780010; Mon, 30 Jul 2012 20:03:00 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Mon, 30 Jul 2012 20:02:59 -0700 (PDT) In-Reply-To: <201207311033260047670@gmail.com> References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> Date: Mon, 30 Jul 2012 20:02:59 -0700 X-Google-Sender-Auth: hgGJeLRKuiUe64TXagP7_rkfO_U Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Tue, 31 Jul 2012 03:03:01 -0000 RIght. It's quite possible that there's something about that beacon frame format that's tripping up the beacon parsing code in net80211. can you please take a snapshot using monitor mode? tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w pcap.out Run that whilst you're trying to associate, let's see what happens. adrian On 30 July 2012 19:33, =E4=B9=94=E6=A5=9A/HonestQiao = wrote: > 2012-07-31 03:33, Adrian Chadd wrote: >>That SSID looks very odd. And look at the output of wpa_supplicant - >>it isn't finding any WPA enabled APs. >> >>And do an "ifconfig -v wlan0 list scan" at home, to get the entire >>SSID and decoded beacon contents from the scan cache. >> >> >> >>Adrian > > Ok, I 'll test it at home. Now, My local time is 10:32 AM. > > I also think the SSID is very odd. But other devices can get the right SS= ID. > > HonestQiao From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 02:33:34 2012 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 912D0106564A; Tue, 31 Jul 2012 02:33:34 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 59D5B8FC0C; Tue, 31 Jul 2012 02:33:34 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so11350082pbb.13 for ; Mon, 30 Jul 2012 19:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=LNh1WDpw4+bDrKeT0SvxQ/rTmngBS5jKvzg78VE8jpI=; b=T8pEgaYlne1g3c2hyj89Kq0ky/wMa1aGptwj9znLj0L8nkM5W94Ij1WHfZaUEcEbp0 IzH/LPOYDiCxbzpV0uZmhA8ukv5Mw6Rv9qY62cNwE8aDLL/x9X1Owe2Pj1+7Z6txp13y UZeAdRkZidojv7aZSRQeFES47feheg1fBzypoUHxb8WZAAj5fB0/UeTxkDo1G7qrtsh4 2srxIA1biQvrxlVAsJvbsPsvsFYCOqLlXTwSldCZAOtx1eKAaHiWsbAdludXqyye8Jgq KWzUCB2KO+fVk1SWoENyQoZnwhbDboyVMVQ/wUrtIpjJO1r0gW9YkI/rvTRKPSt8zFpY X/BQ== Received: by 10.68.226.73 with SMTP id rq9mr39263810pbc.145.1343702013815; Mon, 30 Jul 2012 19:33:33 -0700 (PDT) Received: from HonestQiaoNB ([216.218.222.22]) by mx.google.com with ESMTPS id of4sm9065625pbb.51.2012.07.30.19.33.31 (version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 19:33:32 -0700 (PDT) Date: Tue, 31 Jul 2012 10:33:28 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <201207311033260047670@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Tue, 31 Jul 2012 03:38:44 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Tue, 31 Jul 2012 02:33:34 -0000 MjAxMi0wNy0zMSAwMzozMywgQWRyaWFuIENoYWRkPGhvbmVzdHFpYW9AZ21haWwuY29tPiB3cm90 ZToNCj5UaGF0IFNTSUQgbG9va3MgdmVyeSBvZGQuIEFuZCBsb29rIGF0IHRoZSBvdXRwdXQgb2Yg d3BhX3N1cHBsaWNhbnQgLQ0KPml0IGlzbid0IGZpbmRpbmcgYW55IFdQQSBlbmFibGVkIEFQcy4N Cj4NCj5BbmQgZG8gYW4gImlmY29uZmlnIC12IHdsYW4wIGxpc3Qgc2NhbiIgYXQgaG9tZSwgdG8g Z2V0IHRoZSBlbnRpcmUNCj5TU0lEIGFuZCBkZWNvZGVkIGJlYWNvbiBjb250ZW50cyBmcm9tIHRo ZSBzY2FuIGNhY2hlLg0KPg0KPg0KPg0KPkFkcmlhbg0KDQpPaywgSSAnbGwgdGVzdCBpdCBhdCBo b21lLiBOb3csIE15IGxvY2FsIHRpbWUgaXMgMTA6MzIgQU0uDQoNCkkgYWxzbyB0aGluayB0aGUg U1NJRCBpcyB2ZXJ5IG9kZC4gQnV0IG90aGVyIGRldmljZXMgY2FuIGdldCB0aGUgcmlnaHQgU1NJ RC4NCg0KSG9uZXN0UWlhbw== From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 05:33:28 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6052106564A for ; Tue, 31 Jul 2012 05:33:28 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm34-vm6.bullet.mail.bf1.yahoo.com (nm34-vm6.bullet.mail.bf1.yahoo.com [72.30.239.78]) by mx1.freebsd.org (Postfix) with ESMTP id 5C6D38FC08 for ; Tue, 31 Jul 2012 05:33:28 +0000 (UTC) Received: from [98.139.212.149] by nm34.bullet.mail.bf1.yahoo.com with NNFMP; 31 Jul 2012 05:33:22 -0000 Received: from [98.139.211.192] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 31 Jul 2012 05:33:22 -0000 Received: from [127.0.0.1] by smtp201.mail.bf1.yahoo.com with NNFMP; 31 Jul 2012 05:33:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1343712801; bh=Co+xUvFSmc8O4w9TY+PPLPrm//SNFIHIFnxJNk78q2A=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=3t/oB/qIohpKU9NB9/w1vH+yqoWndSV25C3Pwab/RjnR1Xd6DDBWFS/j8upn3BO+xfduWNZS5qMJ2fgQq9VkDygdeHRaCb6+cxVONE8kCCmg1QRQj5V413bDKwVJcBRDshb4rC7TuX8FEWN5ZgUfY3125CWSLTb+0UsffxgvH8c= X-Yahoo-Newman-Id: 974574.36047.bm@smtp201.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: JNRTpwoVM1mZAV_LduWLcI5AkhCnuF4sNjfWdeLuUsoeQTG vtktgVaHD6zJOAIjBzbRkEoyFeJFueAMKIrEugO8uWE2KhFwaIeuTZJ4CxeP DyFU5OI8bCZnEdvNr4K3XKasLisaudrktvd53Wo.YHQlzAV7jm0fHejinw6_ uziA1WM4EMxYQslndTFfp3t0WMDtBMwKNcsrzViGWhBMMyss122sVxyTqv5W UqqabI_qR8oQyLhDLvQVa75KtB4HtuZQA.TYz1SVLCKLL4.zapQfpOoG6iv8 dzBeewKvc3OrLXXJ2krKnKr4xqjt7HE1oTqK.9244mq5tL.okN3Iw0D9xEkH k9FrdXz5CFKI19J3NOnQrFODR1USP5wsQ01TJcRmB5oW0Jt0f67yE.PK1PeP xVxMwUUXRsFUws_f87HwpsJpqUg4mOquqZws3deu.5.ZB87RgyXjJDKep6tm m9WDR9yxxBtU9.oFD.JhUz9N4amJ3QEryg0I.TaUICDeElp2QM.OAvTlRBj7 _EEUbdgE1kiw93onHagRSGohu3adRKBFvziCb X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vb0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp201.mail.bf1.yahoo.com with SMTP; 30 Jul 2012 22:33:21 -0700 PDT Received: by vbmv11 with SMTP id v11so6584136vbm.13 for ; Mon, 30 Jul 2012 22:33:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.36.180 with SMTP id r20mr11602450vdj.15.1343712801269; Mon, 30 Jul 2012 22:33:21 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Mon, 30 Jul 2012 22:33:21 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jul 2012 23:33:21 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Tue, 31 Jul 2012 05:33:28 -0000 On Mon, Jul 30, 2012 at 7:22 PM, Adrian Chadd wrote: > Yeah, That's what I had in mind. > > Trouble is, the AID isn't fixed at that value: > > vap->iv_max_aid = IEEE80211_AID_DEF; > > So likely we should malloc (M_NOWAIT | M_ZERO) a temporary array of > size iv_max_aid. > > Have you seen the scan/node LORs? Are you able to verify that your > change fixes that? > Not yet. Though, I think we still need to do something with ieee80211_timeout_stations() and com lock. driver/iterate lock LOR seems gone. Will post when I find more. Quick update (I haven't run it, yet). I'll set up a repository soon. void ieee80211_iterate_nt(struct node_table *nt, struct ieee80211_node **ni_arr, u_int *gen) { struct ieee80211_node *ni; int i = 0; IEEE80211_NODE_ITERATE_LOCK(nt); *gen = ++nt->nt_scangen; TAILQ_FOREACH(ni, &nt->nt_node, ni_list) (*(ni_arr + i++)) = ieee80211_ref_node(ni); IEEE80211_NODE_ITERATE_UNLOCK(nt); } /* * Just a wrapper, so we don't have to change every ieee80211_iterate_nodes() * reference in the source. * * A caller may directly call ieee80211_iterate_nt() and do customized stuff. * Only requirement is to decrement each node's ref count. */ void ieee80211_iterate_nodes(struct ieee80211_node_table *nt, ieee80211_iter_func *f, void *arg) { struct ieee80211_node **ni_arr; unsigned long size; u_int gen; int i; size = ni->ni_vap->iv_max_aid * sizeof(*ni_arr); ni_arr = (struct ieee80211_node **)malloc(size, M_80211_NODE, M_NOWAIT | M_ZERO); if (ni_arr == NULL) return; ieee80211_iterate_nt(nt, ni_arr, &gen); IEEE80211_NODE_LOCK(nt); for (i = 0; i < IEEE80211_AID_DEF; i++) { if (ni == NULL) /* end of the list */ break; if (ni->ni_scangen == gen) continue; ni->ni_scangen = gen; IEEE80211_NODE_UNLOCK(nt); (*f)(arg, *(ni_arr + i)); /* ieee80211_free_node() locks by itself */ ieee80211_free_node(ni); IEEE80211_NODE_LOCK(nt); i = 0; } IEEE80211_NODE_UNLOCK(nt); free(ni_addr, M_80211_NODE); } From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 07:24:26 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28842106566C for ; Tue, 31 Jul 2012 07:24:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EDE088FC08 for ; Tue, 31 Jul 2012 07:24:25 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so11740717pbb.13 for ; Tue, 31 Jul 2012 00:24:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jRzfGB45hOWbR6aBSwPwKKXqe3c6AdD6rRIXc/U4GyU=; b=xQ9Il7xZMLXaPFEjGUNrqJDar3jMCLHnNH4MPkCpw8fu9zO2GCTuO4Hoxcdis0lJz8 S56CAimCV+Toaz0aqkMT8gR7G+8hTHcVL0sagc7RC7V009NThSYf+UNh2qbgUkBSsUx1 ECNQWIBN9rfn4h8M6OLALetfFhPpbQZVhS/1K/dca1inN9shoxksgkdCB3c+b4WOsN70 OF04khL4hA7uuKCMKUHEdRzGHqTAyx3tttYPXWTSVL0OAZ+KbMpimWE4uaotOuoJnD2d 1kImxMpQ14q8bAI+Yg1zJzgA6yYgn17mEk11T/iFnvM6/v0EyikWSbs3traai9P3c6G5 BXGA== MIME-Version: 1.0 Received: by 10.68.212.138 with SMTP id nk10mr41781191pbc.93.1343719465702; Tue, 31 Jul 2012 00:24:25 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 00:24:25 -0700 (PDT) In-Reply-To: References: Date: Tue, 31 Jul 2012 00:24:25 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Tue, 31 Jul 2012 07:24:26 -0000 Hm, don't do that - do all of the node table and scan generation counter stuff in the loop that populates the list of nodes. Then once you have that list, just call each and unlock. Adrian On 30 July 2012 22:33, PseudoCylon wrote: >> Yeah, That's what I had in mind. >> >> Trouble is, the AID isn't fixed at that value: >> >> vap->iv_max_aid = IEEE80211_AID_DEF; >> >> So likely we should malloc (M_NOWAIT | M_ZERO) a temporary array of >> size iv_max_aid. >> >> Have you seen the scan/node LORs? Are you able to verify that your >> change fixes that? >> > > Not yet. Though, I think we still need to do something with > ieee80211_timeout_stations() and com lock. driver/iterate lock LOR > seems gone. Will post when I find more. > > > Quick update (I haven't run it, yet). I'll set up a repository soon. > > void > ieee80211_iterate_nt(struct node_table *nt, struct ieee80211_node **ni_arr, > u_int *gen) > { > struct ieee80211_node *ni; > int i = 0; > > IEEE80211_NODE_ITERATE_LOCK(nt); > *gen = ++nt->nt_scangen; > > TAILQ_FOREACH(ni, &nt->nt_node, ni_list) > (*(ni_arr + i++)) = ieee80211_ref_node(ni); > > IEEE80211_NODE_ITERATE_UNLOCK(nt); > } > > /* > * Just a wrapper, so we don't have to change every ieee80211_iterate_nodes() > * reference in the source. > * > * A caller may directly call ieee80211_iterate_nt() and do customized stuff. > * Only requirement is to decrement each node's ref count. > */ > void > ieee80211_iterate_nodes(struct ieee80211_node_table *nt, > ieee80211_iter_func *f, void *arg) > { > struct ieee80211_node **ni_arr; > unsigned long size; > u_int gen; > int i; > > size = ni->ni_vap->iv_max_aid * sizeof(*ni_arr); > ni_arr = (struct ieee80211_node **)malloc(size, M_80211_NODE, > M_NOWAIT | M_ZERO); > if (ni_arr == NULL) > return; > > ieee80211_iterate_nt(nt, ni_arr, &gen); > > IEEE80211_NODE_LOCK(nt); > > for (i = 0; i < IEEE80211_AID_DEF; i++) { > if (ni == NULL) /* end of the list */ > break; > if (ni->ni_scangen == gen) > continue; > > ni->ni_scangen = gen; > > IEEE80211_NODE_UNLOCK(nt); > (*f)(arg, *(ni_arr + i)); > /* ieee80211_free_node() locks by itself */ > ieee80211_free_node(ni); > IEEE80211_NODE_LOCK(nt); > > i = 0; > } > > IEEE80211_NODE_UNLOCK(nt); > > free(ni_addr, M_80211_NODE); > } From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 10:09:27 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BCBD106564A for ; Tue, 31 Jul 2012 10:09:27 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm17-vm0.bullet.mail.ne1.yahoo.com (nm17-vm0.bullet.mail.ne1.yahoo.com [98.138.91.58]) by mx1.freebsd.org (Postfix) with SMTP id DFDC58FC19 for ; Tue, 31 Jul 2012 10:09:26 +0000 (UTC) Received: from [98.138.90.53] by nm17.bullet.mail.ne1.yahoo.com with NNFMP; 31 Jul 2012 10:09:20 -0000 Received: from [98.138.226.63] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 31 Jul 2012 10:09:20 -0000 Received: from [127.0.0.1] by smtp214.mail.ne1.yahoo.com with NNFMP; 31 Jul 2012 10:09:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1343729360; bh=IEhO7MUo7hvcT8XGkCLJ2jffuM89hR1b954jouzO/Ls=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=efOL3KZy21VYKbYaU4VFFuX3M7BLfVyrtuZuR/OC+Pm05W8G/4U9cmEg3h/uMSoNrQlWRYg8XEjcUKFxBhOwjqzKAlx643+ozw4OkK8VOCn045QYu52T5ejCSdkp08W+jw9tN9iUM20xdGVLwFMfIT057a3yaL4vNdeRJXLUZ40= X-Yahoo-Newman-Id: 586486.95042.bm@smtp214.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: BBzoZloVM1kGJlgkvZED8mXLWR7jmHu5JbnjU.rUhJrlYJh eqzXPQiCe.1lSQjj5X0TOsAxAiz9lY8_HMZFwRwX6IW5xoZV0OFPrg1.IzAO pG6vk0ETVMnobJySNM2rjwIrAunW09iAcy5DD5TO7BgEvCcRhKqqAROrwQUf 2K_v0eAvUy_8lbwlrhgc98mky8CpDf_aW8BFt5RONA.QggV8gFXqBDr5yZEb TdkUoIPA5FtEtRyr88gRsukdF1VpU6SEqOPWtrb9FniKTQR0hvvB1SVB3Bfu 7hoiBitzFsjhGFzGCeEGRXlCbfTj3SR__.tMxCk1j0C6ro9HfavXqQSRswQr .1szCXxkeiJKT1jCQMZrHOspMD_.EPm3L7byELn5RqC8vsi59yJsXyFg7Sng EI.iiAWRsnVRT9hyuukEqYcrMXly5TrXsS5u6vIzg0CbCsa0ysGVDiySqvAv CUJFcpWzpJgaEQaA8eue0d5oX6bBFk6n.mn5_DnewpC4pzKPW8VNLtLun6Wy N2wbndZPwpo9mfPp4gZEbsLPxX1r8Pr3n58cp3fEgXxgD4bejQXpCULry82v Qj5GOpk19tvamZQZXlWtUeTCx_ON8TRadJ04JClQwrcZxyob9xS9hBhXxDDw oia9i5iaS34Vk X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vc0-f182.google.com (moonlightakkiy@209.85.220.182 with plain) by smtp214.mail.ne1.yahoo.com with SMTP; 31 Jul 2012 03:09:20 -0700 PDT Received: by vcbgb22 with SMTP id gb22so6775118vcb.13 for ; Tue, 31 Jul 2012 03:09:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.89.35 with SMTP id bl3mr12042219vdb.106.1343729359949; Tue, 31 Jul 2012 03:09:19 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Tue, 31 Jul 2012 03:09:19 -0700 (PDT) In-Reply-To: References: Date: Tue, 31 Jul 2012 04:09:19 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Tue, 31 Jul 2012 10:09:27 -0000 On Tue, Jul 31, 2012 at 1:24 AM, Adrian Chadd wrote: > Hm, don't do that - do all of the node table and scan generation > counter stuff in the loop that populates the list of nodes. > Done. https://gitorious.org/ieee80211/net80211/commit/c8a1a722df1683416d4d0d9cd99c57a6b1b2bdf5 >>> >>> Have you seen the scan/node LORs? Are you able to verify that your >>> change fixes that? >>> Update I have still not seen scan/node LOR, but have seen scan/com LOR. It didn't cause deadlock. AK From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 14:56:08 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A1CC106566B; Tue, 31 Jul 2012 14:56:08 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F03758FC08; Tue, 31 Jul 2012 14:56:07 +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 q6VEu78R038878; Tue, 31 Jul 2012 14:56:07 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6VEu7TA038874; Tue, 31 Jul 2012 14:56:07 GMT (envelope-from linimon) Date: Tue, 31 Jul 2012 14:56:07 GMT Message-Id: <201207311456.q6VEu7TA038874@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/170281: [ath] 802.11n locks up on aggregation setup (ampdutx) 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: Tue, 31 Jul 2012 14:56:08 -0000 Old Synopsis: ath 802.11n locks up on aggregation setup (ampdutx) New Synopsis: [ath] 802.11n locks up on aggregation setup (ampdutx) Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Tue Jul 31 14:55:51 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=170281 From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 16:31:19 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC773106564A for ; Tue, 31 Jul 2012 16:31:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 77F718FC18 for ; Tue, 31 Jul 2012 16:31:19 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so12503655pbb.13 for ; Tue, 31 Jul 2012 09:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0MuF005h1puJpFEJ3PKuvPPqpaI97+tc9YPhC9zmujU=; b=VLX5bePI4jSSQ2r26PfncQPU2LiarMGGoCTnPbHDwyJpwfLxPs1/IbXXhRyqpa2AQj ygMtOdlC7jSu4JsdLAE3OHWzdMQIZHgvKXsRcSO8Ux/qvc/yJNsrh4Q7cjq84TF0vCkx xiSwf4WmgABWy9gKUl35cW1srFVIbJuYjv/ocsYbgnNJgEFCD+OPp4Vwf0X1CuTI3Wpv cRievH8PmGZpLDEiteMAMfswsp33AXyNl+P6Whv0J4ge4PwYBtN+DCYHo1bBh2Mggf7k YQKADRbXGvz1Xl1D2yWsWdtltVgVcrkG4ahLNi1MCMX9qyO4UxcgAPW9cPy5qrXKWBL1 7A1w== MIME-Version: 1.0 Received: by 10.68.191.234 with SMTP id hb10mr30545513pbc.2.1343752279220; Tue, 31 Jul 2012 09:31:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 09:31:19 -0700 (PDT) In-Reply-To: References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> Date: Tue, 31 Jul 2012 09:31:19 -0700 X-Google-Sender-Auth: rz9MOuQBEdqkzoBHsCMq5WH3rMA Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWa?= Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Tue, 31 Jul 2012 16:31:19 -0000 .. meshconf? Are they setting some bit somewhere which is reserved for 802.11s, and not setting up said 802.11s? adrian On 31 July 2012 09:28, =C7=C7=B3=FE wrote: > 2012/7/31 Adrian Chadd : >> RIght. It's quite possible that there's something about that beacon >> frame format that's tripping up the beacon parsing code in net80211. >> >> can you please take a snapshot using monitor mode? >> >> tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w pcap.out >> >> Run that whilst you're trying to associate, let's see what happens. >> >> >> >> adrian >> >> >> >> On 30 July 2012 19:33, =C7=C7=B3=FE/HonestQiao wr= ote: >>> 2012-07-31 03:33, Adrian Chadd wrote: >>>>That SSID looks very odd. And look at the output of wpa_supplicant - >>>>it isn't finding any WPA enabled APs. >>>> >>>>And do an "ifconfig -v wlan0 list scan" at home, to get the entire >>>>SSID and decoded beacon contents from the scan cache. >>>> >>>> >>>> >>>>Adrian >>> >>> Ok, I 'll test it at home. Now, My local time is 10:32 AM. >>> >>> I also think the SSID is very odd. But other devices can get the right = SSID. >>> >>> HonestQiao > > tty0# ifconfig -v wlan0 list scan > SSID/MESH ID BSSID CHAN RATE S:N I= NT CAPS > 0x0b071500000000000000 8c:21:0a:43:ef:d4 11 54M -65:-95 > 100 EPS SSID RATES DSPARMS<11> > ERP<0x0> RSN > XRATES<48,72,96,108> HTCAP 0x400 txbf 0xde7e606 antenna 0x0> MESHCONF CONGESTION:UNKNOWN SYNC:UNKNOWN AUTH:UNKNOWN FORM:0x0 CAPS:0x0> > HTINFO MESHID<0x0b07150000000000000.> > WME 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 > cwmin 2 cwmax 3 txop 47]> ATH<0x7fff> WPS uuid-e:00-01-02-03-04-05-06-07-08-09-0a-0b-0c-0d-0e-0f> > > tty0#wpa_supplicant -s -i wlan0 -c /etc/wpa_supplicant.conf -D bsd > > tty1#tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w pcap.out > > tty2#cat /etc/wpa_supplicant.conf > # /etc/wpa_supplicant.conf written by wifimgr(8) > > ctrl_interface=3D/var/run/wpa_supplicant > ctrl_interface_group=3Dwheel > > network=3D{ > ssid=3D"0x0b071500000000000000" > bssid=3D8c:21:0a:43:ef:d4 > key_mgmt=3DWPA-PSK > proto=3DRSN > psk=3D"12345678901" > } From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 18:02:41 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3460C1065670 for ; Tue, 31 Jul 2012 18:02:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id E7EA38FC18 for ; Tue, 31 Jul 2012 18:02:40 +0000 (UTC) Received: by ghbz22 with SMTP id z22so7381989ghb.13 for ; Tue, 31 Jul 2012 11:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CUzITixiJ1ohWEDbw/t/egZeD2P8Ec7gAFkylKa+1Mo=; b=XlWNiyVG4BYuuvlCCTnKQhLSYUBHb9DsMaOBkm9YTm1zrIGmtcBqztd9ZQ8q2AG38W f7Em2KlmBT4y3ak6eDf6r0wbbdjecaNyhH2AOVoLhFNEnOHf2x8HIDqPmlhpJNtOaLd2 ov9WS8HGvhF8yfmQ7Nrr57rrGtMTme5Pi741JRVB8UHKUzrKoQpTmw/ulcRd5j43yAvH 434waQWIFqfujvBcQ133QvIZ8KmLrbzL9TKxi67dUIbycNLy3KjVvRAdRR2AdPlg/9k6 llRLOm33eFRc+nP6GLcPBgDh0NAwuhSJ7DnorPhz+5K09KFlaELlwvOi55atH/d8qFYS 21hg== MIME-Version: 1.0 Received: by 10.66.74.36 with SMTP id q4mr34136172pav.13.1343757760119; Tue, 31 Jul 2012 11:02:40 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 11:02:40 -0700 (PDT) Date: Tue, 31 Jul 2012 11:02:40 -0700 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: please test -head ath 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: Tue, 31 Jul 2012 18:02:41 -0000 Hi all, I've done a bunch of TX path and TX descriptor setup related changes in preparation for the AR93xx/AR94xx chipset support. I don't _think_ I've broken anything but, well, you know how these things go. I would appreciate any testing that people are willing to do. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 20:00:04 2012 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 EDEB41065670 for ; Tue, 31 Jul 2012 20:00:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id AEB158FC16 for ; Tue, 31 Jul 2012 20:00:03 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so12785847pbb.13 for ; Tue, 31 Jul 2012 13:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dW5W3gd7XOEK0XAi0jk6uJmmsPyUdqCNL6FhC5AQKAc=; b=mQqgSwbN+xY8E7II0YJGVq6CKmoinQPCreM0aZUPH5ae8ww9SlmMFbJZwJPabGFt9w FBTJoUN60/zju5Yru9cTIov+KsVSjAzHyzWooOhIDmbGRrF3BG9OX3bIoE55ResfqEAO FCy7g9tiM715FHxwCvH8QZ99bSYcZSKeij0hYtzOWbkRHp5ioXQa990B/arAdTxuynFJ 8jYFvtFvZ12gQHlZfEMwU0tVRsTwtRBJKae6QskQHikaCR9fxJmc7sfl7FmM6f2Pxcjh bcp4WoWkty05w73YW/6FEnO2HYXlTHGxK7qjEMXSgMeBwTOFMXhdjnXJ/rEUmHXoN5Ru FAvg== MIME-Version: 1.0 Received: by 10.68.223.164 with SMTP id qv4mr46369922pbc.20.1343764803421; Tue, 31 Jul 2012 13:00:03 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 13:00:03 -0700 (PDT) In-Reply-To: References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> Date: Tue, 31 Jul 2012 13:00:03 -0700 X-Google-Sender-Auth: -RsPugxkqOuTJkbEeLRg7u9mxP8 Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWa?= Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Tue, 31 Jul 2012 20:00:04 -0000 FWIW, you don't need to use -D bsd Adrian On 31 July 2012 09:28, =C7=C7=B3=FE wrote: > 2012/7/31 Adrian Chadd : >> RIght. It's quite possible that there's something about that beacon >> frame format that's tripping up the beacon parsing code in net80211. >> >> can you please take a snapshot using monitor mode? >> >> tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w pcap.out >> >> Run that whilst you're trying to associate, let's see what happens. >> >> >> >> adrian >> >> >> >> On 30 July 2012 19:33, =C7=C7=B3=FE/HonestQiao wr= ote: >>> 2012-07-31 03:33, Adrian Chadd wrote: >>>>That SSID looks very odd. And look at the output of wpa_supplicant - >>>>it isn't finding any WPA enabled APs. >>>> >>>>And do an "ifconfig -v wlan0 list scan" at home, to get the entire >>>>SSID and decoded beacon contents from the scan cache. >>>> >>>> >>>> >>>>Adrian >>> >>> Ok, I 'll test it at home. Now, My local time is 10:32 AM. >>> >>> I also think the SSID is very odd. But other devices can get the right = SSID. >>> >>> HonestQiao > > tty0# ifconfig -v wlan0 list scan > SSID/MESH ID BSSID CHAN RATE S:N I= NT CAPS > 0x0b071500000000000000 8c:21:0a:43:ef:d4 11 54M -65:-95 > 100 EPS SSID RATES DSPARMS<11> > ERP<0x0> RSN > XRATES<48,72,96,108> HTCAP 0x400 txbf 0xde7e606 antenna 0x0> MESHCONF CONGESTION:UNKNOWN SYNC:UNKNOWN AUTH:UNKNOWN FORM:0x0 CAPS:0x0> > HTINFO MESHID<0x0b07150000000000000.> > WME 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 cwmax 4 txop 94] VI[aifsn 2 > cwmin 2 cwmax 3 txop 47]> ATH<0x7fff> WPS uuid-e:00-01-02-03-04-05-06-07-08-09-0a-0b-0c-0d-0e-0f> > > tty0#wpa_supplicant -s -i wlan0 -c /etc/wpa_supplicant.conf -D bsd > > tty1#tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w pcap.out > > tty2#cat /etc/wpa_supplicant.conf > # /etc/wpa_supplicant.conf written by wifimgr(8) > > ctrl_interface=3D/var/run/wpa_supplicant > ctrl_interface_group=3Dwheel > > network=3D{ > ssid=3D"0x0b071500000000000000" > bssid=3D8c:21:0a:43:ef:d4 > key_mgmt=3DWPA-PSK > proto=3DRSN > psk=3D"12345678901" > } From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 20:01:51 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF403106564A for ; Tue, 31 Jul 2012 20:01:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9CC788FC08 for ; Tue, 31 Jul 2012 20:01:51 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so12788207pbb.13 for ; Tue, 31 Jul 2012 13:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=wJZRow8qcYPaSElQIDlhmAiA55zTsv4+wMm/tVtaT3A=; b=vmq0rran8Hpk1swFsHqMWN4UkLifFjFDV2sKiRZ8AEiHJ1+Bn2iRup6d4LM4TF1bRJ IzJQOHiY6eZ1R/gh9BKbEb/rXzqhBqH2oHWhc6Ls6ZyWL/rI8DJkZPq6N/6ec45/bg5L BlvCuQkr4rw3s21yhgcVwZLzRRB/2AEH3eLWGOgJwbakHJakwlC7xf58hJjHFJTTXsjx Hx38ho1GDedAE/snpuFrZSz0eAaRElWuYdVoTg3dFWwGMIkhMSyr4VgNwiKzAJ+tfNao WeQXojnFrA5BqQ5s//KQEIh01K6lbR7CB+exFk23966VkpoMpPT34Ds/baFHBlHqXCFd /VeA== MIME-Version: 1.0 Received: by 10.68.241.35 with SMTP id wf3mr46063294pbc.102.1343764911480; Tue, 31 Jul 2012 13:01:51 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 13:01:51 -0700 (PDT) In-Reply-To: References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> Date: Tue, 31 Jul 2012 13:01:51 -0700 X-Google-Sender-Auth: GcgGCtVDhS0drAZ1SXYfdcP-lCw Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWa?= Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Tue, 31 Jul 2012 20:01:51 -0000 Hi, Also, take a look at the key setup: RSN it's an 802.1x PSK, not WPA-PSK. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 20:58:39 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 735F9106564A for ; Tue, 31 Jul 2012 20:58:39 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 276568FC12 for ; Tue, 31 Jul 2012 20:58:39 +0000 (UTC) Received: by ghbz22 with SMTP id z22so7625055ghb.13 for ; Tue, 31 Jul 2012 13:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=n/daCYHZSZAFcUVe0R/nb6cWmtzPR7MKIWA2bZKlef8=; b=TZbw4OGYSD1DLjkVMb1YQyYsevhhzeKLlAkO/PcVEb0SKsQ1KUtFx9peDdj33J+a8c UNES7iufvYPlNFAnPpTwcCw+BSrq8/Z0r2NSYGIrbXANIxCaJqZKol1paLqN01eqbHpD 7ltHPzwUQOKDIw3S81JRtbgX1nU9zgI/fZ383t79fP+ip+Mp2IPSiBmK1mjqWSM69RzC mV7MooKhc177SqYkDYEZVo+v/5VN01q0QeQFwsbDf9eP7OVXdkWDTMxDHZskERmL4cIM HSdrhj058sllf52jR1x6ZSv+qHepRMT5DW5D/tjElfzxYC+eWlHsI3Hh8mPo1pO7bK8t 7cwA== MIME-Version: 1.0 Received: by 10.66.73.70 with SMTP id j6mr35197389pav.5.1343768318117; Tue, 31 Jul 2012 13:58:38 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 13:58:38 -0700 (PDT) In-Reply-To: References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> Date: Tue, 31 Jul 2012 13:58:38 -0700 X-Google-Sender-Auth: Z7uBYA8Nhk8iaVA6YM9FuYvQ-K4 Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWa?= Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Tue, 31 Jul 2012 20:58:39 -0000 What's the configuration of the openbsd AP? It's announcing 802.11n IEs and it looks like it's all draft-era fields. Can you disable 11n on openBSD? Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 23:33:01 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E2D81065670 for ; Tue, 31 Jul 2012 23:33:01 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id F07EE8FC15 for ; Tue, 31 Jul 2012 23:33:00 +0000 (UTC) Received: by qcsg15 with SMTP id g15so5022618qcs.13 for ; Tue, 31 Jul 2012 16:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GLHxYrFmDtKGktfz27dzJP7t/dkVHvWDQIbdc7DTIQU=; b=JfxeX2sgKX0INjkIGciMOXe/5ci+W1RVZKMPMoXX9R22R3ebFaVUAmqzaHQlXrx3JA 6RNg/s8KLeQBjcf7gQMXJ8tSK0HqpP3hwx7qbSXapfJTHi7/JaFXGREZV9HM+INYVHve etpivhUnuNAWu5Nrz+wnHoalJcysWvzELSkkwjJuIZOCmjIn2U22nE3htByY0PIkbNpb sBIBFXdZhsWXnmFIQpZnVdDFQK/Q4CC7VD4P76Gw4io3q76pwnnNiW9EOmBWJmqTpf4E d45Kpa2mavVkNA270yHuVUdElFhTDfL0/sSciY6CaT2Kmr+dP6WxItL8K+E6Yhpg07Cv TuCg== MIME-Version: 1.0 Received: by 10.224.189.137 with SMTP id de9mr32395048qab.7.1343777580331; Tue, 31 Jul 2012 16:33:00 -0700 (PDT) Received: by 10.229.39.12 with HTTP; Tue, 31 Jul 2012 16:33:00 -0700 (PDT) Date: Tue, 31 Jul 2012 19:33:00 -0400 Message-ID: From: Kim Culhan To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: please test -head ath 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: Tue, 31 Jul 2012 23:33:01 -0000 On Tue, July 31, 2012 2:02 pm, Adrian Chadd wrote: > Hi all, > > I've done a bunch of TX path and TX descriptor setup related changes > in preparation for the AR93xx/AR94xx chipset support. > > I don't _think_ I've broken anything but, well, you know how these things go. > > I would appreciate any testing that people are willing to do. Rebuilding with r238957 and should have it running in another hour or so. -kim From owner-freebsd-wireless@FreeBSD.ORG Tue Jul 31 23:52:07 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B847106566C; Tue, 31 Jul 2012 23:52:07 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E2DB98FC15; Tue, 31 Jul 2012 23:52:06 +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 q6VNq6fG003876; Tue, 31 Jul 2012 23:52:06 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6VNq6oD003872; Tue, 31 Jul 2012 23:52:06 GMT (envelope-from adrian) Date: Tue, 31 Jul 2012 23:52:06 GMT Message-Id: <201207312352.q6VNq6oD003872@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/170302: [ath] 802.11n frames are not being transmitted with multiple rates 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: Tue, 31 Jul 2012 23:52:07 -0000 Synopsis: [ath] 802.11n frames are not being transmitted with multiple rates Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Tue Jul 31 23:51:48 UTC 2012 Responsible-Changed-Why: Punt to maintainer http://www.freebsd.org/cgi/query-pr.cgi?pr=170302 From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 00:00:34 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8F110656A5 for ; Wed, 1 Aug 2012 00:00:34 +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 791638FC0C for ; Wed, 1 Aug 2012 00:00:34 +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 q7100Ycu004134 for ; Wed, 1 Aug 2012 00:00:34 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7100Y2o004130; Wed, 1 Aug 2012 00:00:34 GMT (envelope-from gnats) Date: Wed, 1 Aug 2012 00:00:34 GMT Message-Id: <201208010000.q7100Y2o004130@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/170302: commit references a PR X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service 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, 01 Aug 2012 00:00:34 -0000 The following reply was made to PR kern/170302; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/170302: commit references a PR Date: Tue, 31 Jul 2012 23:54:31 +0000 (UTC) Author: adrian Date: Tue Jul 31 23:54:15 2012 New Revision: 238961 URL: http://svn.freebsd.org/changeset/base/238961 Log: Allow 802.11n hardware to support multi-rate retry when RTS/CTS is enabled. The legacy (pre-802.11n) hardware doesn't support this - although the AR5212 era hardware supports MRR, it doesn't have all the bits needed to support MRR + RTS/CTS. The AR5416 and later support a packet duration and RTS/CTS flags per rate scenario, so we should support it. Tested: * AR9280, STA PR: kern/170302 Modified: head/sys/dev/ath/ath_rate/sample/sample.c head/sys/dev/ath/if_ath.c head/sys/dev/ath/if_ath_tx.c head/sys/dev/ath/if_athvar.h Modified: head/sys/dev/ath/ath_rate/sample/sample.c ============================================================================== --- head/sys/dev/ath/ath_rate/sample/sample.c Tue Jul 31 23:34:06 2012 (r238960) +++ head/sys/dev/ath/ath_rate/sample/sample.c Tue Jul 31 23:54:15 2012 (r238961) @@ -502,8 +502,10 @@ ath_rate_findrate(struct ath_softc *sc, goto done; } - /* XXX TODO: this doesn't know about 11gn vs 11g protection; teach it */ - mrr = sc->sc_mrretry && !(ic->ic_flags & IEEE80211_F_USEPROT); + mrr = sc->sc_mrretry; + /* XXX check HT protmode too */ + if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT) && !sc->sc_mrrprot) + mrr = 0; best_rix = pick_best_rate(an, rt, size_bin, !mrr); if (best_rix >= 0) { @@ -910,7 +912,11 @@ ath_rate_tx_complete(struct ath_softc *s short_tries, long_tries); return; } - mrr = sc->sc_mrretry && !(ic->ic_flags & IEEE80211_F_USEPROT); + mrr = sc->sc_mrretry; + /* XXX check HT protmode too */ + if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT) && !sc->sc_mrrprot) + mrr = 0; + if (!mrr || ts->ts_finaltsi == 0) { if (!IS_RATE_DEFINED(sn, final_rix)) { badrate(ifp, 0, ts->ts_rate, long_tries, status); Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Tue Jul 31 23:34:06 2012 (r238960) +++ head/sys/dev/ath/if_ath.c Tue Jul 31 23:54:15 2012 (r238961) @@ -705,6 +705,12 @@ ath_attach(u_int16_t devid, struct ath_s (void) ath_hal_settxchainmask(sc->sc_ah, tx_chainmask); } + /* + * Disable MRR with protected frames by default. + * Only 802.11n series NICs can handle this. + */ + sc->sc_mrrprot = 0; /* XXX should be a capability */ + #ifdef ATH_ENABLE_11N /* * Query HT capabilities @@ -714,6 +720,9 @@ ath_attach(u_int16_t devid, struct ath_s int rxs, txs; device_printf(sc->sc_dev, "[HT] enabling HT modes\n"); + + sc->sc_mrrprot = 1; /* XXX should be a capability */ + ic->ic_htcaps = IEEE80211_HTC_HT /* HT operation */ | IEEE80211_HTC_AMPDU /* A-MPDU tx/rx */ | IEEE80211_HTC_AMSDU /* A-MSDU tx/rx */ Modified: head/sys/dev/ath/if_ath_tx.c ============================================================================== --- head/sys/dev/ath/if_ath_tx.c Tue Jul 31 23:34:06 2012 (r238960) +++ head/sys/dev/ath/if_ath_tx.c Tue Jul 31 23:54:15 2012 (r238961) @@ -1051,11 +1051,12 @@ ath_tx_set_rtscts(struct ath_softc *sc, /* * Must disable multi-rate retry when using RTS/CTS. - * XXX TODO: only for pre-11n NICs. */ - bf->bf_state.bfs_ismrr = 0; - bf->bf_state.bfs_try0 = - bf->bf_state.bfs_rc[0].tries = ATH_TXMGTTRY; /* XXX ew */ + if (!sc->sc_mrrprot) { + bf->bf_state.bfs_ismrr = 0; + bf->bf_state.bfs_try0 = + bf->bf_state.bfs_rc[0].tries = ATH_TXMGTTRY; /* XXX ew */ + } } /* Modified: head/sys/dev/ath/if_athvar.h ============================================================================== --- head/sys/dev/ath/if_athvar.h Tue Jul 31 23:34:06 2012 (r238960) +++ head/sys/dev/ath/if_athvar.h Tue Jul 31 23:54:15 2012 (r238961) @@ -463,6 +463,7 @@ struct ath_softc { void (*sc_setdefantenna)(struct ath_softc *, u_int); unsigned int sc_invalid : 1,/* disable hardware accesses */ sc_mrretry : 1,/* multi-rate retry support */ + sc_mrrprot : 1,/* MRR + protection support */ sc_softled : 1,/* enable LED gpio status */ sc_hardled : 1,/* enable MAC LED status */ sc_splitmic : 1,/* split TKIP MIC keys */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 00:06:22 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 277AA106564A for ; Wed, 1 Aug 2012 00:06:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id EF2F78FC14 for ; Wed, 1 Aug 2012 00:06:21 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so101187pbb.13 for ; Tue, 31 Jul 2012 17:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6YRbmO3gRnMbLBt/esbe2qqdbs1g4XHTPb6NROMK19k=; b=gpv9zek1ntodxHyiKOtrF3FX3K2HnE/gAQb4aJt8su+rvupV7kRCEIY/yV0MFypbaP EOJVIA36Oyf4xR4KMmILrtatzmCT8xhGKSaYML1RCSBVto2guxMugUpm28dpjyh+X8UI iNmCDFVWa1MSQJ0VPc8Q4dG654xyhGgZzJNXOhxi/E3hTnVMJA1tXY/bew7SaCMBeaV3 dzBAFSSNA2zpEjU7Nf31Kp4T+BExpYnUaXko/nFVE7knNtBK0oiVRHj03yCiOeV7z80o ctbQDmUOzw2V9NuFRin7NY5AIg/yBQ17LGcjBEZAJtR7VJ1C2aUW8U+l4EruVhIDQ1LG 4t9A== MIME-Version: 1.0 Received: by 10.68.212.138 with SMTP id nk10mr47855551pbc.93.1343779581613; Tue, 31 Jul 2012 17:06:21 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 17:06:21 -0700 (PDT) In-Reply-To: References: Date: Tue, 31 Jul 2012 17:06:21 -0700 X-Google-Sender-Auth: aGj-_wGRPpwxis9CstEmJJMxb0U Message-ID: From: Adrian Chadd To: Kim Culhan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: please test -head ath 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, 01 Aug 2012 00:06:22 -0000 Sweet, thanks. I've just added some fixes to re-enable multi-rate retry for 802.11n rates. That may be a good thing to pick up too. Adrian On 31 July 2012 16:33, Kim Culhan wrote: > On Tue, July 31, 2012 2:02 pm, Adrian Chadd wrote: >> Hi all, >> >> I've done a bunch of TX path and TX descriptor setup related changes >> in preparation for the AR93xx/AR94xx chipset support. >> >> I don't _think_ I've broken anything but, well, you know how these things go. >> >> I would appreciate any testing that people are willing to do. > > Rebuilding with r238957 and should have it running in another hour or so. > > -kim > _______________________________________________ > 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" From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 00:20:10 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 79C3910656B9 for ; Wed, 1 Aug 2012 00:20:10 +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 5A8FB8FC08 for ; Wed, 1 Aug 2012 00:20:10 +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 q710KA4G012365 for ; Wed, 1 Aug 2012 00:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q710KAGW012364; Wed, 1 Aug 2012 00:20:10 GMT (envelope-from gnats) Date: Wed, 1 Aug 2012 00:20:10 GMT Message-Id: <201208010020.q710KAGW012364@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: kern/170302: commit references a PR X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service 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, 01 Aug 2012 00:20:10 -0000 The following reply was made to PR kern/170302; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/170302: commit references a PR Date: Wed, 1 Aug 2012 00:18:17 +0000 (UTC) Author: adrian Date: Wed Aug 1 00:18:02 2012 New Revision: 238962 URL: http://svn.freebsd.org/changeset/base/238962 Log: Fix a case of "mis-located braces". PR: kern/170302 Modified: head/sys/dev/ath/ath_rate/sample/sample.c Modified: head/sys/dev/ath/ath_rate/sample/sample.c ============================================================================== --- head/sys/dev/ath/ath_rate/sample/sample.c Tue Jul 31 23:54:15 2012 (r238961) +++ head/sys/dev/ath/ath_rate/sample/sample.c Wed Aug 1 00:18:02 2012 (r238962) @@ -504,7 +504,7 @@ ath_rate_findrate(struct ath_softc *sc, mrr = sc->sc_mrretry; /* XXX check HT protmode too */ - if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT) && !sc->sc_mrrprot) + if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT && !sc->sc_mrrprot)) mrr = 0; best_rix = pick_best_rate(an, rt, size_bin, !mrr); @@ -914,7 +914,7 @@ ath_rate_tx_complete(struct ath_softc *s } mrr = sc->sc_mrretry; /* XXX check HT protmode too */ - if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT) && !sc->sc_mrrprot) + if (mrr && (ic->ic_flags & IEEE80211_F_USEPROT && !sc->sc_mrrprot)) mrr = 0; if (!mrr || ts->ts_finaltsi == 0) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 03:14:58 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6050C106564A for ; Wed, 1 Aug 2012 03:14:58 +0000 (UTC) (envelope-from prvs=5537fc3d0=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 7AD7C8FC0A for ; Wed, 1 Aug 2012 03:14:57 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,690,1336363200"; d="scan'208";a="63621191" Received: from cipt0175.nam.ci.root ([10.132.108.175]) by cooperlighting-sw.cooperlighting.com with ESMTP; 31 Jul 2012 23:13:49 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0175.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Tue, 31 Jul 2012 23:13:49 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: B++n CCVe CXk9 DnH7 Edd7 E2u+ FIbd FxKO F15z GW/S Gd5a HSeo HbjL Hx9S IiW2 KF7D; 1; ZgByAGUAZQBiAHMAZAAtAHcAaQByAGUAbABlAHMAcwBAAGYAcgBlAGUAYgBzAGQALgBvAHIAZwA=; Sosha1_v1; 7; {B664E27A-503A-4D6D-8ED9-50C6B15E882F}; YgByAGUAdAB0AC4AdwByAGkAZwBoAHQAQABjAG8AbwBwAGUAcgBpAG4AZAB1AHMAdAByAGkAZQBzAC4AYwBvAG0A; Wed, 01 Aug 2012 03:13:22 GMT; QQB0AGgAZQByAG8AcwAgAEQARgBTACAAcgBhAGQAYQByACAAZABlAHQAZQBjAHQAaQBvAG4A x-cr-puzzleid: {B664E27A-503A-4D6D-8ED9-50C6B15E882F} Content-class: urn:content-classes:message Date: Wed, 1 Aug 2012 11:13:22 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1vk5uBjfla8JFcSkWAzElLGC8XNg== From: "Wright, Brett" To: X-OriginalArrivalTime: 01 Aug 2012 03:13:49.0077 (UTC) FILETIME=[AB709450:01CD6F93] Subject: Atheros DFS radar detection 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, 01 Aug 2012 03:14:58 -0000 Hi All, I've been trying to get DFS radar detection working with Atheros ar5212 (and later). As for matching the ETSI/FCC radar patterns that is OK - I can make the open source DFS code comply. The problem is that it is too sensitive (i.e. too many false detects). What I have found is that using ar5213 I get LOTS of radar phy errors just for normal crc error free data transfer. Even just an iperf test on the bench will give me approx 1 radar phy error for every 5 or so tx/rx frame. This means that any "real" data of sufficient data rate for these false pulses to match the radar patterns will trigger false detection of radar and a channel change... (usually iperfing for a couple of minutes is enough!) One approach I've been looking at is some "smarts" that look at how much real data is being received and try to decide what "pulses" are not real and discard them. However this risks having a radio that does not always detect real radar co-incident with when the radio is very busy. I also can't help but feel there is some other way to detect and weed out these "false" phy radar errors. (for example FreeBSD defines HAL_PHYERR_FALSE_RADAR_EXT - I'm not even sure what this is/does). Any clues/info anyone can provide about how to determine what phy radar errors are potentially false would be a huge help... Thanks again Brett Wright From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 03:22:47 2012 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 1B4B11065672 for ; Wed, 1 Aug 2012 03:22:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id E1FF38FC15 for ; Wed, 1 Aug 2012 03:22:46 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so353544pbb.13 for ; Tue, 31 Jul 2012 20:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9op6nkZbMfau3uYe5vJDwFTLSW9ujvQLK2X9Cg8q+OM=; b=sX6faSgwjtAZwZdCp6/Fvj/ndl30bpDKuxNzzW/gHSmU2i4E/z+SHQom8VMeMGZO3N ScX26XAJjEkR8XPhIrF02QPIboYLxLfRuxJ2FAsvyEc67i58IgNRrpgzj2Z+2JJMbfn3 SQc+Hv3FN21yjf88ziJ+ZoW/ZdDGk5ntOlozNJLUdfrV2RgEF7Jqh79VZpdmVUuF36ay pBorG9lAu4U/wuD82piVOsra4vM5OUED5LQkjnIXp1xJR9a5nc4aIlgqg+W1FOV0Sr5p MDks9E8mCWBxgSpt0YBcbAhaloMtOFfv7YcyZVrOlErLUNa+jBo4hTasrB3Mjgh05qh4 AjeA== MIME-Version: 1.0 Received: by 10.68.212.138 with SMTP id nk10mr48849217pbc.93.1343791366436; Tue, 31 Jul 2012 20:22:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 20:22:46 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> Date: Tue, 31 Jul 2012 20:22:46 -0700 X-Google-Sender-Auth: ZLhWfTjDGxa1ordYdpqNgo5JGEs Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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, 01 Aug 2012 03:22:47 -0000 Hi! On 31 July 2012 20:13, Wright, Brett wrote: > Hi All, > > I've been trying to get DFS radar detection working with Atheros ar5212 > (and later). Ruh roh. Pre-AR9160. There be dragons. > As for matching the ETSI/FCC radar patterns that is OK - I can make the > open source DFS code comply. Which source? The stuff in madwifi-dfs? or elsewhere? > The problem is that it is too sensitive (i.e. too many false detects). > What I have found is that using ar5213 I get LOTS of radar phy errors > just for normal crc error free data transfer. Right. The pulse detection on the earlier chips can get quite noisy, especially if it decides some marginal signal or out of band trigger is good enough. > Even just an iperf test on the bench will give me approx 1 radar phy > error for every 5 or so tx/rx frame. Which radar configuration parameters are you using? > This means that any "real" data of sufficient data rate for these false > pulses to match the radar patterns will trigger false detection of radar > and a channel change... (usually iperfing for a couple of minutes is > enough!) > > One approach I've been looking at is some "smarts" that look at how much > real data is being received and try to decide what "pulses" are not real > and discard them. However this risks having a radio that does not always > detect real radar co-incident with when the radio is very busy. I also > can't help but feel there is some other way to detect and weed out these > "false" phy radar errors. (for example FreeBSD defines > HAL_PHYERR_FALSE_RADAR_EXT - I'm not even sure what this is/does). I don't believe that's relevant for the earlier chips. It's for later chips where some RF event triggers an initial radar pulse, but it's cancelled out (eg by another power increase from another frame, or some other things I don't quite remember at the moment). The hardware can optionally report those "false radar" events, even if they failed some of the hardware sanity checks. The biggest problem you're going to have with pre-AR9130 chips is doing FCC chirp detection. There's no way to know whether you false detected a ~50uS frame or saw an actual 40-90uS chirp. The AR9130 and later chips report FFT data for longer pulses so you can actually check in software whether it's a chirp pulse or not. But anything before that revision won't - specifically, all the AR5212 era NICs as well as the AR5416. I'd first start by looking at the radar parameters that you're using. What are they? Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 03:24:36 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 52380106566B; Wed, 1 Aug 2012 03:24:36 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 185438FC08; Wed, 1 Aug 2012 03:24:35 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so355969pbb.13 for ; Tue, 31 Jul 2012 20:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=Zmv+r1Xq/yfqfZtj+0Ee4i2cCSC5+mLA9r13grf7ZTc=; b=sF7PhE1oQMQI0a+aGR+CfV2UewngpWtvA0ON9zpizaw5WwMfqGcoOS8JZyQBWla2xi c/kvSoYxuQ6vwLWPCELvnkNIX5DzCr412sgttEhzQPjN8OEosDovDZl43oGFA0v1Y95t 2keQbObl6CPrZaHgdyi+yx6iBH4i0XlbWD/tWWezxjwsaMavzQsuGI9QXKhcWlsAsnru Bau3H76LE9n22/pFn6Fw0V/H1KYCTRCmc/Vivry5qpUfwAwXaiyOogXcgGKHT3b1UXUp BFekoReTnQC/jHr5WTUVpliSneI1hSrJQsC2KvKaLWEZ4yGOBQGf3UNt76fSC1bQht7i 8Lgw== Received: by 10.68.200.8 with SMTP id jo8mr48033940pbc.148.1343791475733; Tue, 31 Jul 2012 20:24:35 -0700 (PDT) Received: from HonestQiaoNB ([216.218.222.20]) by mx.google.com with ESMTPS id se9sm1585969pbc.25.2012.07.31.20.24.33 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 20:24:34 -0700 (PDT) Date: Wed, 1 Aug 2012 11:24:32 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> , X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <201208011124299134731@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Wed, 01 Aug 2012 03:42:19 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 03:24:36 -0000 MjAxMi0wOC0wMSAwNDo1OCwgQWRyaWFuIENoYWRkPGFkcmlhbkBmcmVlYnNkLm9yZz4gd3JvdGU6 DQo+V2hhdCdzIHRoZSBjb25maWd1cmF0aW9uIG9mIHRoZSBvcGVuYnNkIEFQPyANCj5JRXMgYW5k IGl0IGxvb2tzIGxpa2UgaXQncyBhbGwgZHJhZnQtZXJhIGZpZWxkcy5JdCdzIGFubm91bmNpbmcg ODAyLjExbg0KPg0KPkNhbiB5b3UgZGlzYWJsZSAxMW4gb24gb3BlbkJTRD8NCj4NCj4NCj4NCj5B ZHJpYW4NCg0KTXkgd2lmaSByb3V0ZXIgbmFtZWQgT3BlbkJTRCBzdXBwb3J0IDExbiBvbmx5LCAx MSBiZ24gbWl4ZWQsIDExIGJnIG1peGVkLCAxMWcgb25seSwgMTFiIG9ubHkuDQpJJ2xsIHRlc3Qg Zm9yIDExZyBvbmx5IGFuZCAxMWIgb25seS4NCg0KV2h5IGl0IGNhbiBiZSB1c2VkIGluIFdFUCBl bmNyeXB0aW9uIG1vZGU/DQpJIG9ubHkgY2hhbmdlIHRoZSBlbmNyeXB0aW9uIG1vZGUgYmV0d2Vl biBXRVAgYW5kIFdQQTIvUFNLLg0K From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 04:40:10 2012 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 D4D4410656E0 for ; Wed, 1 Aug 2012 04:40:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 29F808FC12 for ; Wed, 1 Aug 2012 04:40:09 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so452681pbb.13 for ; Tue, 31 Jul 2012 21:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0Mf/jYCSAd28iOAOGAMDlvBL2jEshwCa7TE7G5L2Cn8=; b=fSz1CkLAnA8LDkSVv8SqE0TuyRFSqSHwkBlL9tt5qXhCuxxN6dLIXS7JwNpd4uQhZp sWqp3L5whjbT5z/rSuOlmlvqNEIXM0mujLwKeVM8jjdrraFlceWc9GTne5vl0teUz997 Jgz/67lCbQhaNkLl1VSfesyGbvKZS0m15V1aq3hlTDex13rRqCLdujfIsGFEUa1F5Xw6 e28OaytTn122erdWpz43Suyme3uJSniE2Lngim9GmyUf0LfJIMVvPJZEYOVlh/JcbVAA aZQBw7COIGTbswXQwHbBjWHsL+Ms511dTp0x0ZqEnSl566PsFofeu+lSyE9q4skyIYZR 18cw== MIME-Version: 1.0 Received: by 10.68.241.35 with SMTP id wf3mr48586948pbc.102.1343796009281; Tue, 31 Jul 2012 21:40:09 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 21:40:09 -0700 (PDT) In-Reply-To: <201208011128541790632@gmail.com> References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> Date: Tue, 31 Jul 2012 21:40:09 -0700 X-Google-Sender-Auth: h2EQHMA_A6hiBo9GaC00oJTZkOs Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 04:40:10 -0000 .. but does openbsd actually _support_ 802.11n? I didn't think it did. adrian On 31 July 2012 20:28, =E4=B9=94=E6=A5=9A/HonestQiao = wrote: > 2012-08-01 04:58, Adrian Chadd wrote: >>What's the configuration of the openbsd AP? It's announcing 802.11n >>IEs and it looks like it's all draft-era fields. >> >>Can you disable 11n on openBSD? >> >> >> >>Adrian > > Configure of OpenBSD AP: > 2.4G / 11bgn mixed / 40MHz / chl:11 / 300Mbps From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 05:27:08 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA9C110656DA; Wed, 1 Aug 2012 05:27:07 +0000 (UTC) (envelope-from prvs=5537fc3d0=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 8EEC48FC12; Wed, 1 Aug 2012 05:27:07 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,691,1336363200"; d="scan'208";a="63628503" Received: from cipt0174.nam.ci.root ([10.132.108.174]) by cooperlighting-sw.cooperlighting.com with ESMTP; 01 Aug 2012 01:27:07 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0174.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Wed, 1 Aug 2012 01:27:06 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: AKlP BWXz DiRT Jj2A KZuT KyMF NmaT OV5v OvOp PELO P3Hj R0b5 SGw+ UJtZ YSN9 Yb4T; 2; YQBkAHIAaQBhAG4AQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBmAHIAZQBlAGIAcwBkAC0AdwBpAHIAZQBsAGUAcwBzAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {F1E41F05-3385-42D7-9551-72AEBB4181F6}; YgByAGUAdAB0AC4AdwByAGkAZwBoAHQAQABjAG8AbwBwAGUAcgBpAG4AZAB1AHMAdAByAGkAZQBzAC4AYwBvAG0A; Wed, 01 Aug 2012 05:26:55 GMT; UgBFADoAIABBAHQAaABlAHIAbwBzACAARABGAFMAIAByAGEAZABhAHIAIABkAGUAdABlAGMAdABpAG8AbgA= x-cr-puzzleid: {F1E41F05-3385-42D7-9551-72AEBB4181F6} Content-class: urn:content-classes:message Date: Wed, 1 Aug 2012 13:26:55 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1vlcpG3/jrrSotQSqH8DHTOg08/wAAb9Dw References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 01 Aug 2012 05:27:06.0728 (UTC) FILETIME=[4A694680:01CD6FA6] Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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, 01 Aug 2012 05:27:08 -0000 Hi Adrian, > -----Original Message----- > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > Of Adrian Chadd > Sent: Wednesday, 1 August 2012 1:23 PM > Which source? The stuff in madwifi-dfs? or elsewhere? Yes madwifi-dfs.=20 > Which radar configuration parameters are you using? > I'd first start by looking at the radar parameters that you're using. > What are they? I think this is the standard setup for DFS, firstly setup the rx filter for phy radar errors (am not using interference mitigation so HAL_RX_FILTER_PHYERR is not set): rfilt |=3D HAL_RX_FILTER_PHYRADAR; ath_hal_setrxfilter(ah, rfilt); Then in the rx interrupt check for radar pulses: if ((HAL_RXERR_PHY =3D=3D rs->rs_status) && (HAL_PHYERR_RADAR =3D=3D (rs->rs_phyerr & 0x1f)) && !(bf->bf_status & ATH_BUFSTATUS_RADAR_DONE) && (ic->ic_flags & IEEE80211_F_DOTH)) check_for_radar =3D 1; And then these pulses are analyzed and potentially matched to the required radar patterns... The problem as I see it is that I get these phy radar errors even when the only thing going on is valid (i.e. crc error free data). There is no other RF noise around, I can even do the test with coax and attenuators between my two modules. I only get the "false pulse" phy radar errors when I am transferring data between my pair of modules under test.=20 Thanks Brett From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 05:53:30 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE39B1065672 for ; Wed, 1 Aug 2012 05:53:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8F91A8FC1C for ; Wed, 1 Aug 2012 05:53:30 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so549700pbb.13 for ; Tue, 31 Jul 2012 22:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=MpJFSHeECKUN76lmT49zwcrH/07uMIs2FWJ44Hdb6Gs=; b=Hqq7lXh0K4LR2KZ0vcBrzT3dqUN7WjcULPdFs3MqnXU4K1UBswwZuTYAWAzAfsvOEM 0jx6Sp99zG5y7ARWCkTjsRAQJ4bFihRG96us7SIaVgbh0N//8YPxzoSe8BYmHr2x4FLH hKFeQ8RI+K6roLZDcSJtqLDo3IucI5FySyYn279dFkUS2bSHy+/IQMJoiP3L/0IWP5kc AH3E0H6yYjIup79bzFfo8soh5sPP1dRKRLka8i4BKjn3xeE7xqfkmeLFebpEPFVvDSR4 w8X0DScTkeLbQkMx4q7x9qRThDYKdGRjXDljjyioJSmoPiuN747xQAhMEh+Fj8iR3NS7 +myQ== MIME-Version: 1.0 Received: by 10.68.191.234 with SMTP id hb10mr34829807pbc.2.1343800410116; Tue, 31 Jul 2012 22:53:30 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 22:53:30 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> Date: Tue, 31 Jul 2012 22:53:30 -0700 X-Google-Sender-Auth: Xmwg0lMNyydmEYU4aS72JnB_Do8 Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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, 01 Aug 2012 05:53:30 -0000 I mean, the values it writes to the AR_PHY_RADAR* registers. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 06:27:35 2012 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 282DB1065D26 for ; Wed, 1 Aug 2012 06:27:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id D1F318FC08 for ; Wed, 1 Aug 2012 06:27:34 +0000 (UTC) Received: by ggnk4 with SMTP id k4so75549ggn.13 for ; Tue, 31 Jul 2012 23:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=hxbKNZASwHTCl4QhQZ6jKymvZm6FmyWeTLfngfvGZNg=; b=t+pOlkJbfWLHFXtFSpt+UBFUB7koAoGFw6U9FHArKG2LAVjfQfMqF0xXJ7iXxWqDgQ SdqroEAJce4YgQqjPaHOLZeTae1+51g/SHRfVvoUBfI1SgS0Hm3KXeFtO+aLlb6hMiAu jhs+MJHaEbN8imFTVYHXfdtMX3I3XPFTSNJoGbqAFVaYp7rAs8MoIorHTP3Y6mmmw+Xd d2bWgSJDj1t08QHwiXiL6zKKHiw+tb8Avi5TE1XufAJLnGxeghY5tCu96F6lyfBphnVL JkTrBvpluh/jIZc333oNk/mrEKKG/8kdaxh+z2/CatuSc455QDiFzzmyo6YXKL3anf0a KgdQ== MIME-Version: 1.0 Received: by 10.68.223.164 with SMTP id qv4mr49500254pbc.20.1343802451605; Tue, 31 Jul 2012 23:27:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 23:27:31 -0700 (PDT) In-Reply-To: References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> Date: Tue, 31 Jul 2012 23:27:31 -0700 X-Google-Sender-Auth: wi-Co87ku5ICL1vds-GQE3uUnhU Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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, 01 Aug 2012 06:27:35 -0000 .. basically, let's establish that you're using a sane/sensible set of parameters before we go off and try to see why you're seeing such high false detects. It's expected that you'll see quite a few false detects on the AR5212 era NICs, but I don't recall it being quite that bad in my limited testing. So for madwifi-dfs, it'd be here: http://madwifi-project.org/browser/madwifi/branches/madwifi-dfs/ath/if_ath_radar.h Tell me what the value of register 0x9954 is. Are you running the madwifi-dfs code on FreeBSD somehow? Or are you actually doing this with madwifi? It'd be cool if you could bring this up on FreeBSD, as I'm happy to work with the community if they're willing to take charge of porting over the madwifi-dfs pattern matching code and work on false detection avoidance. 2c, Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 06:38:27 2012 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 0ED691065678 for ; Wed, 1 Aug 2012 06:38:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id B44778FC0C for ; Wed, 1 Aug 2012 06:38:26 +0000 (UTC) Received: by yhfs35 with SMTP id s35so8082938yhf.13 for ; Tue, 31 Jul 2012 23:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YlXB1w7/EhX/ODBTYNWpW6e2SrpYCdhWo59VW74OMPU=; b=QzWVP1zuQ5W3jzu/t4cDtmoESut++SwxAYvUUPisCoRsU8GjOyEMgNXhHcEU2ZU6Cy fUWGaloFT5AiBQLnywxDgQIc9pHYCdKJaK9YyKknJ+eLo/MZgmZSCWVNH+KIdxK+/7SD fFqubzH69eNTSC/ec/lZfn3jO1vhFGSHnGZoH+5uI7q6HGc17ogYsgGcu4NwK57R1orv oWVO+A4eaEz6f/ZdCyzD8ijk4em9AIWgMtGMbSlYiQVN9LhHEdyeBt3hw2pKPg8riUZf fQmdG5ouWJa+5tAPZz2Rf5R7d3VcFeCC7Mk0xqVKqOmFAzBsmX4tzT9cxL+hKrSpc3Q1 U9Pw== MIME-Version: 1.0 Received: by 10.66.72.169 with SMTP id e9mr2299096pav.44.1343803105731; Tue, 31 Jul 2012 23:38:25 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Tue, 31 Jul 2012 23:38:25 -0700 (PDT) In-Reply-To: <201208011436544017265@gmail.com> References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> <201208011436544017265@gmail.com> Date: Tue, 31 Jul 2012 23:38:25 -0700 X-Google-Sender-Auth: bQW_J1OQJvLxSBb1Fc_rSJ7IgII Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 06:38:27 -0000 Oh, ok. Right. Try 11g only. See if that works better. There's something odd about that beacon frame that is tripping up net80211. I'll dig a little deeper tomorow. Thanks again, adrian On 31 July 2012 23:36, =E4=B9=94=E6=A5=9A/HonestQiao = wrote: > 2012-08-01 12:40, Adrian Chadd wrote: >>.. but does openbsd actually _support_ 802.11n? I didn't think it did. >> >> >> >>adrian >> > > My AP is TP-LINK TL-WR843N. I set OpenBSD as its SSID. > The official technical documentation says that it supports 802.11n. > I'll also test for 11n only. > From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 07:08:17 2012 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62D34106564A for ; Wed, 1 Aug 2012 07:08:17 +0000 (UTC) (envelope-from jaqan@www420b.sakura.ne.jp) Received: from www420b.sakura.ne.jp (www420b.sakura.ne.jp [219.94.155.210]) by mx1.freebsd.org (Postfix) with ESMTP id 0F8068FC08 for ; Wed, 1 Aug 2012 07:08:16 +0000 (UTC) Received: from www420b.sakura.ne.jp (localhost [127.0.0.1]) by www420b.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id q71789SJ089759 for ; Wed, 1 Aug 2012 16:08:09 +0900 (JST) (envelope-from jaqan@www420b.sakura.ne.jp) Received: (from jaqan@localhost) by www420b.sakura.ne.jp (8.14.3/8.14.3/Submit) id q71789Zg089758; Wed, 1 Aug 2012 16:08:09 +0900 (JST) (envelope-from jaqan) Date: Wed, 1 Aug 2012 16:08:09 +0900 (JST) Message-Id: <201208010708.q71789Zg089758@www420b.sakura.ne.jp> To: wireless@freebsd.org From: Western Canada Lottery/Email Draw MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Cc: Subject: Your Email Has Won One Million Pounds Sterling X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: westerncanadaclaimsagent@aol.com 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, 01 Aug 2012 07:08:17 -0000 WESTERN CANADA LOTTERY/ EMAIL DRAW ONTARIO 49 Western Canada Lottery Corporation, Prize Payout 10th Floor, 125 Garry Street, Winnipeg, Manitoba, R3C 4J1,UK Office–3rd Floor, 2-4 King Street, London, SW1Y Sat, July 28th, 2012 - Ontario 49 WINNING NUMBERS 6 10 22 30 45 49 Bonus 17 Attn: Winner, We happily announce to you the draw of Canadian National Lottery the UK/CANADA online Sweepstakes International program held this year 2012. You have won GBP 1,000,000.00 (One Million British Pounds Sterling Only) from Canadian lottery draw 2012.Your Email ID was one of the selected email all over the world in the lottery draw and it comes out one of the lucky winning number. For us to process your winning for transfer you are advice to contact our prize claims agent with the details below in London for your payment. Name: Edmond De Corte Email: westerncanadaclaimsagent@aol.com 24 Hrs.Telephone: +44 704 574 6752 Please forward to him the following details below 1. Name (in Full): 2. Country: 3. Address: 4. Direct Telephone/Mobile No: 5. Age: 6. Occupation/position: Congratulations!! Once again. Yours in service, Mrs.Fritz Hamilton. [Publicity Secretary] WARNING! You must keep strict confidentiality of your Prize Award claims to yourself until your money is successfully handed over to you in other to avoid disqualification that may arise from double claims. Western Canada Lottery shall not be held liable for any loss of funds arising from the above mentioned. From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 07:27:21 2012 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 D7C98106564A; Wed, 1 Aug 2012 07:27:21 +0000 (UTC) (envelope-from prvs=5537fc3d0=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 811308FC0A; Wed, 1 Aug 2012 07:27:21 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,691,1336363200"; d="scan'208";a="63635333" Received: from cipt0175.nam.ci.root ([10.132.108.175]) by cooperlighting-sw.cooperlighting.com with ESMTP; 01 Aug 2012 03:27:20 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0175.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Wed, 1 Aug 2012 03:27:20 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 1 Aug 2012 15:27:09 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1vrr2KxLw1z/zLR+us793GLyGj5gAA5Jsg References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 01 Aug 2012 07:27:20.0597 (UTC) FILETIME=[16365450:01CD6FB7] Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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, 01 Aug 2012 07:27:22 -0000 Hi Adrian, > -----Original Message----- > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > Of Adrian Chadd > Sent: Wednesday, 1 August 2012 4:28 PM > To: Wright, Brett > Cc: freebsd-wireless@freebsd.org > Subject: Re: Atheros DFS radar detection >=20 > Tell me what the value of register 0x9954 is. All standard values that are setup and defined in if_ath_radar.h. More specifically: value of register 0x9954 is 0x5731458C (which seems to be "almost" the supposed default value of 0x5731458D). Not sure what the LS bit is, or if that is the problem now it is turned off? Also do you know what the difference is between "Radar RSSI/SNR threshold" (bits 23..18) and "Pulse RSSI/SNR threshold" (bits 11..6)? They sound so similar... > Are you running the madwifi-dfs code on FreeBSD somehow? Or are you > actually doing this with madwifi? It'd be cool if you could bring this > up on FreeBSD, as I'm happy to work with the community if they're > willing to take charge of porting over the madwifi-dfs pattern > matching code and work on false detection avoidance. Am actually doing it in madwifi currently. I agree, I'm happy to contribute where I can to FreeBSD too - it's really frustrating working in the open source community knowing that there is probably an easy solution to your problems if only you had some crucial missing piece of info. Thanks Brett From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 03:29:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4339D106566B; Wed, 1 Aug 2012 03:29:00 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 09AA18FC12; Wed, 1 Aug 2012 03:28:59 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so361599pbb.13 for ; Tue, 31 Jul 2012 20:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=nPYk3iEMFWxSCaJJsb/8TFPCqSm93abV2WNj2SGvhW8=; b=Zf4FQb0Zw0y/uXxoRnVV8aX/I8+yZuUTLPqvFb/c+M3y3nNYNO5PeXIh37VhWaWg+u RbxBaNWt7ghNTkvfN1yquMGNUbJ0M4psAbW2cv0MkhZibI2FjNM6GHdBUSuczT/sIEzu obfWqmrQDD0BW7m1cMHY9rFvKmJRJ/YWlJQ/uxw9xlFAOEQ1XxN0gIBH8+KgYhd7gBrc rM1tNR5wj8orPPDMLvzF/CSkRHrSlnwU7oL5WoDwQQvNSC/slMRSTYeL/Hf3y1R93mkb ZxvbVj5uPqbf9RLSIdYhO+YozFhICex+0uy1qMabvhxPJSG9vhmMxBLvtgbEm1tEz8om 2Vyw== Received: by 10.68.235.236 with SMTP id up12mr48327738pbc.79.1343791739660; Tue, 31 Jul 2012 20:28:59 -0700 (PDT) Received: from HonestQiaoNB ([216.218.222.20]) by mx.google.com with ESMTPS id sk5sm1597999pbc.7.2012.07.31.20.28.57 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 20:28:58 -0700 (PDT) Date: Wed, 1 Aug 2012 11:28:56 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> , X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <201208011128541790632@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Wed, 01 Aug 2012 11:06:29 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 03:29:00 -0000 MjAxMi0wOC0wMSAwNDo1OCwgQWRyaWFuIENoYWRkPGFkcmlhbkBmcmVlYnNkLm9yZz4gd3JvdGU6 DQo+V2hhdCdzIHRoZSBjb25maWd1cmF0aW9uIG9mIHRoZSBvcGVuYnNkIEFQPyBJdCdzIGFubm91 bmNpbmcgODAyLjExbg0KPklFcyBhbmQgaXQgbG9va3MgbGlrZSBpdCdzIGFsbCBkcmFmdC1lcmEg ZmllbGRzLg0KPg0KPkNhbiB5b3UgZGlzYWJsZSAxMW4gb24gb3BlbkJTRD8NCj4NCj4NCj4NCj5B ZHJpYW4NCg0KQ29uZmlndXJlIG9mIE9wZW5CU0QgQVA6IA0KMi40RyAvIDExYmduIG1peGVkIC8g NDBNSHogLyBjaGw6MTEgLyAzMDBNYnBzIA== From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 06:37:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF16B106564A; Wed, 1 Aug 2012 06:37:00 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 92B508FC15; Wed, 1 Aug 2012 06:37:00 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so609032pbb.13 for ; Tue, 31 Jul 2012 23:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=Tmgk4JuzzM2/qAFFSp85i540erIsmBt5FZJ3FHqvdoE=; b=YsWzM0gsNOBSj2f5OjxRUfvd3Asr8nbN0szT25NcnbOvZ62qB5FGuPw0GnazplPBaG uoX4N9YkeRpSrEu9xqK7V4YyxTS5uJH+aTC8H4wdjVjxcCYea5iX0nwlfqLrvi/tkzJ0 HyxbfMwdgm75HajUohcYshrkYj4AqsJ2xiar4UUbPrAJQ3LULut8BWJe9ePr8zcp9unP 6c38SRRhgWTVSQ6eCW/Q8qaqeC4xNBO1/MlfZnidHxc30bTJDPY5QaMoAO6m884CUJ9d Ew4646iQUNktMfEWsbyxUf+gJkkxpII/H464/p9OsIxNLV+gkjoq00D1a+/3Nk0BRmPD 1plQ== Received: by 10.68.130.233 with SMTP id oh9mr14526600pbb.78.1343803020169; Tue, 31 Jul 2012 23:37:00 -0700 (PDT) Received: from HonestQiaoNB ([216.218.222.30]) by mx.google.com with ESMTPS id tq4sm1937183pbc.11.2012.07.31.23.36.57 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 23:36:59 -0700 (PDT) Date: Wed, 1 Aug 2012 14:36:57 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <201208011436544017265@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Wed, 01 Aug 2012 11:36:48 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 06:37:00 -0000 MjAxMi0wOC0wMSAxMjo0MCwgQWRyaWFuIENoYWRkPGFkcmlhbkBmcmVlYnNkLm9yZz4gd3JvdGU6 DQo+Li4gYnV0IGRvZXMgb3BlbmJzZCBhY3R1YWxseSBfc3VwcG9ydF8gODAyLjExbj8gSSBkaWRu J3QgdGhpbmsgaXQgZGlkLg0KPg0KPg0KPg0KPmFkcmlhbg0KPg0KDQpNeSBBUCBpcyBUUC1MSU5L IFRMLVdSODQzTi4gSSBzZXQgT3BlbkJTRCBhcyBpdHMgU1NJRC4NClRoZSBvZmZpY2lhbCB0ZWNo bmljYWwgZG9jdW1lbnRhdGlvbiBzYXlzIHRoYXQgaXQgc3VwcG9ydHMgODAyLjExbi4NCkknbGwg YWxzbyB0ZXN0IGZvciAxMW4gb25seS4NCg0K From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 06:46:11 2012 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 EF36F106564A; Wed, 1 Aug 2012 06:46:10 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8B6D18FC0C; Wed, 1 Aug 2012 06:46:10 +0000 (UTC) Received: by ggnk4 with SMTP id k4so88100ggn.13 for ; Tue, 31 Jul 2012 23:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=cSCFTfRPdApvAuvR5CjY96Ujab/AvSrSCMAURmkUiG8=; b=OJ+3JSfkmI8cqw3PYirWzzj1oaFf9CxPBw36QsobZVwlhyeubgUOMlECUH9ErxGd5S /zZ1y/5zfsrOeMefhxcN4CRx/neAz74pjsfsAsszJZzsEzn1chxCKP9Ydk9F3NsobR6l seOwROgOPt2n9RXo+jzAUERgny8R0/1r/0tI4Tw7g6VK3HoAnHnsVZPZ0xndRb5/9Xpm vi8ZVok2QCrs6uYJGPa/zQN+wVUlWwdD3EMUyG13U+TrZfnXX7DgDPh5Nif4NJvGg5Yl PHDcYWK52P96uCQsF0PWOYUtyP10aDL7h75I2/80cP7PfNkg+2gMmyUPO1bbMCMrO2vd ssUw== Received: by 10.66.73.70 with SMTP id j6mr37870277pav.5.1343803569558; Tue, 31 Jul 2012 23:46:09 -0700 (PDT) Received: from HonestQiaoNB ([216.218.222.20]) by mx.google.com with ESMTPS id ob9sm1949701pbb.28.2012.07.31.23.46.06 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 23:46:08 -0700 (PDT) Date: Wed, 1 Aug 2012 14:46:06 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> <201208011436544017265@gmail.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <201208011446035374037@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Wed, 01 Aug 2012 11:36:58 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 06:46:11 -0000 MjAxMi0wOC0wMSAxNDozOCwgQWRyaWFuIENoYWRkPGFkcmlhbkBmcmVlYnNkLm9yZz4gd3JvdGU6 DQo+T2gsIG9rLiBSaWdodC4gVHJ5IDExZyBvbmx5LiBTZWUgaWYgdGhhdCB3b3JrcyBiZXR0ZXIu DQo+DQo+VGhlcmUncyBzb21ldGhpbmcgb2RkIGFib3V0IHRoYXQgYmVhY29uIGZyYW1lIHRoYXQg aXMgdHJpcHBpbmcgdXANCj5uZXQ4MDIxMS4gSSdsbCBkaWcgYSBsaXR0bGUgZGVlcGVyIHRvbW9y b3cuDQo+DQo+VGhhbmtzIGFnYWluLA0KPg0KPg0KPmFkcmlhbg0KPg0KDQpPSywgSSdsbCBtYWtl IGFsbCB0aGUgdGVzdGluZ3MuDQoNCklmIHlvdSB0aGluayBpdCBpcyBuZWNlc3NhcnksIHdlIGNh biBkZXRlcm1pbmUgYSB0aW1lLWxpbmUgY29tbXVuaWNhdGlvbiBhbmQgcmVhbC10aW1lIHRlc3Qs IGluIG9yZGVyIHRvIGJldHRlciBmaW5kIHRoZSBwcm9ibGVtLg0KDQpIb25lc3RRaWFv From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 16:57:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A13B31065674 for ; Wed, 1 Aug 2012 16:57:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 507028FC0A for ; Wed, 1 Aug 2012 16:57:00 +0000 (UTC) Received: by yenl8 with SMTP id l8so8850533yen.13 for ; Wed, 01 Aug 2012 09:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=0YxRsfZjCg4H3PoaxQWSOwsuC0zZh92Gi5Y7y+X96b0=; b=kcgz4qwWApWGjirKi+aQsGnBUdIagTd+igUekxCVgkQqOPPCe6yZUwsO96FOqlRcAm Pbq28PDCp/OoH+0a+hz/umlqssEnzVInuHPMTDchpyZO4AaNhnSDjJ2HfD+w6laMqAOj 69il0fre3x4J3FIQXOLAOUe+J/Xn9nDWo2ix8U/ZE85JHJDtfN8AvAR0S5zgO2Gea8hL P4xmOAXXeUzq/TlQnn6be6m4FAYfG1uWIyf/2tTMqJFHs90+Y+bpGQysRSE10PTlTYqL M07yuDLPCD0+m4RVKz7jh7d/aTMY+XdBdXVZVptq1q9j7taJRALJ1wpFJF2Sqj9gDTDE xk4w== MIME-Version: 1.0 Received: by 10.68.223.164 with SMTP id qv4mr53484029pbc.20.1343840219202; Wed, 01 Aug 2012 09:56:59 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Wed, 1 Aug 2012 09:56:59 -0700 (PDT) In-Reply-To: <2012080200541916697916@gmail.com> References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> <201208011436544017265@gmail.com> <2012080200541916697916@gmail.com> Date: Wed, 1 Aug 2012 09:56:59 -0700 X-Google-Sender-Auth: YdVlTP_uG5aRmXg8FgHMRtsx5H8 Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 16:57:00 -0000 No, FreeBSD-9 supports 802.11n on the Intel NICs just fine. I currently have no idea why the 802.11n beacon IE is confusing FreeBSD. Please file a PR with all the information you've gathered to date. Thanks! Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 16:59:56 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 94B891065670; Wed, 1 Aug 2012 16:59:56 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 55B4D8FC08; Wed, 1 Aug 2012 16:59:55 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so1471242pbb.13 for ; Wed, 01 Aug 2012 09:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=VXg1Wf9yw//ewGUsKhLgwBIkbaQ/tEqgU9iy/WrLvXU=; b=yuCj2NBTU/a2HgNRQrv34c9m/rzPnlNRfyCFbh18BeY7yLB+FCap93qTjiYpV0NywL N69bRAfzoDVTNMOhQCHdr7nZlZ+pQDj7dsEoHah2YZrBrhzV39hizJHGIYkBlSPBAGbj jchPUn3qE7DQcz3rAxhnn6f/iwtO2E8kMJKCpK0tOctohRS5VxN1zTPwzoDZuGskrVix 6wFmrD5Ca2ul7tdAproE+BhbDR4iK5NKB99/G4fU/PUVFElYlWnjYMh4eCtkheiHxLaY cQNpQGRvw7ZhvaTf/RabDngs7+6sh0d6U6odCQB6lSi/OP+vfTpZk8Q2idrQwotkBn9K jeQA== Received: by 10.68.234.70 with SMTP id uc6mr7477258pbc.44.1343840395397; Wed, 01 Aug 2012 09:59:55 -0700 (PDT) Received: from HonestQiaoNB ([123.115.11.229]) by mx.google.com with ESMTPS id ob9sm2924740pbb.28.2012.08.01.09.59.51 (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 09:59:54 -0700 (PDT) Date: Thu, 2 Aug 2012 00:59:50 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> <201208011436544017265@gmail.com> <2012080200541916697916@gmail.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <2012080200594631292317@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 16:59:56 -0000 MjAxMi0wOC0wMiAwMDo1NiwgQWRyaWFuIENoYWRkPGFkcmlhbkBmcmVlYnNkLm9yZz4gd3JvdGU6 DQo+Tm8sIEZyZWVCU0QtOSBzdXBwb3J0cyA4MDIuMTFuIG9uIHRoZSBJbnRlbCBOSUNzIGp1c3Qg ZmluZS4gSQ0KPmN1cnJlbnRseSBoYXZlIG5vIGlkZWEgd2h5IHRoZSA4MDIuMTFuIGJlYWNvbiBJ RSBpcyBjb25mdXNpbmcgRnJlZUJTRC4NCj4NCj5QbGVhc2UgZmlsZSBhIFBSIHdpdGggYWxsIHRo ZSBpbmZvcm1hdGlvbiB5b3UndmUgZ2F0aGVyZWQgdG8gZGF0ZS4NCj4NCj5UaGFua3MhDQo+DQo+ DQo+DQo+DQo+QWRyaWFuDQoNCldoYXQncyBhIFBSPw0K From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 17:00:37 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09A25106566C for ; Wed, 1 Aug 2012 17:00:37 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id AAA6F8FC0A for ; Wed, 1 Aug 2012 17:00:36 +0000 (UTC) Received: by yhfs35 with SMTP id s35so8795191yhf.13 for ; Wed, 01 Aug 2012 10:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1xLsZDczKL1awEm2SlLJjU+7sJ+L9YKdeb0VPBxprEs=; b=IQfmhB6+/rc9/yEo4J2SLNxB4ud56v/5Z2Dp5uilHGL87PU8XsK7YzssqZlA0NRY9O WIKdJHHsfAwPnB6iyK79vn9fI1rHYN+N6p1IqqGDlYO7L6nQrPY6Yny8EjP8/VAf12u+ 8HEF03eJOrrXnaUwCqIHNYr5TnMQNRXCCZWlCNrIFLa1pzkx8yN4KKbKM1AK1ezhMgTd Kre437wH4vVTaIYKXKzhgBLTgPUnPLsuwarijrjs7LDqF40sEdMMIh6ai339s3kzMi4T obGqryyrp2pCYsxcJhrPiCxL61vBIEp6OWoewj2YMd9HYnk1h66aaOQjeSMlUxWgMDUQ drjg== MIME-Version: 1.0 Received: by 10.66.73.70 with SMTP id j6mr41401909pav.5.1343840435404; Wed, 01 Aug 2012 10:00:35 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Wed, 1 Aug 2012 10:00:35 -0700 (PDT) In-Reply-To: <2012080200594631292317@gmail.com> References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> <201208011436544017265@gmail.com> <2012080200541916697916@gmail.com> <2012080200594631292317@gmail.com> Date: Wed, 1 Aug 2012 10:00:35 -0700 X-Google-Sender-Auth: H8_QZtTmUnqfAQ8MBALhF1XvhPQ Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 17:00:37 -0000 A problem report. http://www.freebsd.org/send-pr.html Adrian On 1 August 2012 09:59, =E4=B9=94=E6=A5=9A/HonestQiao wrote: > 2012-08-02 00:56, Adrian Chadd wrote: >>No, FreeBSD-9 supports 802.11n on the Intel NICs just fine. I >>currently have no idea why the 802.11n beacon IE is confusing FreeBSD. >> >>Please file a PR with all the information you've gathered to date. >> >>Thanks! >> >> >> >> >>Adrian > > What's a PR? From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 17:05:06 2012 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 9595A1065673 for ; Wed, 1 Aug 2012 17:05:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4CA868FC17 for ; Wed, 1 Aug 2012 17:05:05 +0000 (UTC) Received: by ggnk4 with SMTP id k4so803831ggn.13 for ; Wed, 01 Aug 2012 10:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UB0KdRLrMQXzAI1yNQjfCDeBOAiaoWh7Max7m8+H+gg=; b=yAgq0lOxag48BUko5CLMDMnfYjJulz9P+HfZdg7fuK6Znzh93FkkGgkSpZGe86s69m nn1BKgE0JynZepZLPKmqD98bxRig7XV6TqTUmvkxtuVq56HqA7J3j0PjxM7161Td7UY3 I2TDioS9MPXvMmtDSsM7zZ8ODy+Y0Qm/Ucw6TG/bqb/7A+s4Hlt9iQF3Nw4tST5qu0lt YvxxZmP/XJ4C7TvjQhWD4Sw1QU+O2HB9vJLw99v1q8gNDIYRPESls9u0YUuVfLaTO3ji 1TN2QbRCzCm0S/Lkp8wMgrEjnyvt9lxIrUDXZrQcgLVyPdaLHLFBBmAHaM+a2aB+y5EG x0hw== MIME-Version: 1.0 Received: by 10.66.75.201 with SMTP id e9mr41232193paw.54.1343840704939; Wed, 01 Aug 2012 10:05:04 -0700 (PDT) Received: by 10.68.66.136 with HTTP; Wed, 1 Aug 2012 10:05:04 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 Aug 2012 10:05:04 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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, 01 Aug 2012 17:05:06 -0000 Hm, not quite there. You're still grabbing the node lock before you call the callback. That's the wrong spot. You need to put the NODE_LOCK/NODE_UNLOCK calls back where you assemble the list of nodes, not when you call the callback. All the callback loop needs is: (for i = 0; ...) { if (ni == NULL) break; (*f)(arg, node array entry); ieee80211_free_node(node array entry); } Ther'es no need for the node table lock there. You only use the node table lock when you're iterating through the node table. That's being done in the first pass. You're also calling ieee80211_free_node() on ni, but you're not assigning ni anywhere. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 16:54:30 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 93C71106566B; Wed, 1 Aug 2012 16:54:30 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2F8A48FC16; Wed, 1 Aug 2012 16:54:30 +0000 (UTC) Received: by ggnk4 with SMTP id k4so788144ggn.13 for ; Wed, 01 Aug 2012 09:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=6a4C9x6XAYx92jVCPu6Xp4kSGIKKaW9q6I4WW0FpUa8=; b=lKmvEEHwetgdmEX4EAKNewfDb8s8PABMWICXVllWgl7J0jSdsHGr7pkWXunqDaYp0o Xvq2I/s+BjGRsJti9g7DBg1lHtXlS5o7dc+C7TYq36lsIZFht5OOr1D9pR//doxJnEXW Y3JLfsBy5OAVIKnZCZm4I+vkfriscMOP0y2ChLQW68fBJ749M4vMAr3YdqJRkfSeDBm9 fchOZI6Ue/1kkrqY5c6O77PZzsHhrNJW9eH4Dtz8tnGYFJHT0/yRh7v/IHblOEVXPLzz FozbT2BR0whkWPLrwWbhVsNZuzKTib6kDeDN45jxh+RjTUCWR8PdUxqtrm3JO4rz2QuP 4erQ== Received: by 10.66.75.228 with SMTP id f4mr41173449paw.52.1343840069058; Wed, 01 Aug 2012 09:54:29 -0700 (PDT) Received: from HonestQiaoNB ([123.115.11.229]) by mx.google.com with ESMTPS id qc5sm2922419pbb.6.2012.08.01.09.54.24 (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 09:54:28 -0700 (PDT) Date: Thu, 2 Aug 2012 00:54:23 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> <201208011436544017265@gmail.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <2012080200541916697916@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Wed, 01 Aug 2012 17:07:15 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 16:54:30 -0000 MjAxMi0wOC0wMSAxNDozOCwgQWRyaWFuIENoYWRkPGFkcmlhbkBmcmVlYnNkLm9yZz4gd3JvdGU6 DQo+T2gsIG9rLiBSaWdodC4gVHJ5IDExZyBvbmx5LiBTZWUgaWYgdGhhdCB3b3JrcyBiZXR0ZXIu DQo+DQo+VGhlcmUncyBzb21ldGhpbmcgb2RkIGFib3V0IHRoYXQgYmVhY29uIGZyYW1lIHRoYXQg aXMgdHJpcHBpbmcgdXANCj5uZXQ4MDIxMS4gSSdsbCBkaWcgYSBsaXR0bGUgZGVlcGVyIHRvbW9y b3cuDQo+DQo+VGhhbmtzIGFnYWluLA0KPg0KPg0KPmFkcmlhbg0KPg0KDQpZb3UgYXJlIHJpZ2h0 Lg0KQWZ0ZXIgc2V2ZXJhbCB0ZXN0cywgSSBmb3VuZCB0aGUgODAyLjExYiA4MDIuMTFnIDgwMi4x MSBiZyBtaXhlZCBjYW4gdXNlLg0KSXQgY2FuJ3QgY29ubmVjdCB0byA4MDIuMTFuIEFQLg0KDQpN eSB3aWZpIGNhcmQgaXMgSW50ZWwgQ2VudHJpbm8gV2lyZWxlc3MtTiAxMDAwIHdoaWNoIHN1cHBv cnQgODAyLjExIGIvZy9uLg0KaHR0cDovL3d3dy5pbnRlbC5jb20vcC9lbl9VUy9zdXBwb3J0L2hp Z2hsaWdodHMvd2lyZWxlc3MvbjEwMDAvDQoNCklzIGZyZWVic2Q5L2FtZDY0IG5vdCBzdXBwb3J0 IDgwMi4xMW4gPw0KT3IgaXMgdGhlIGRyaXZlciBvZiBteSB3aWZpIGNhcmQgbm90IHN1cHBvcnQg ODAyLjExbj8NCg0K From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 17:03:16 2012 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 F1D20106566B; Wed, 1 Aug 2012 17:03:15 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id B25738FC16; Wed, 1 Aug 2012 17:03:15 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so1475731pbb.13 for ; Wed, 01 Aug 2012 10:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=ly22Z0zoBHxf4Fxa0NfpHb6sSV01j3QsV+RUmPhfgns=; b=R/DT/PkpWiKShVocuhB1uOxogtpiIoXeyzVuKZZyWo/7ZX/Zd+L89w+v5fPVuceRSh S/wrwI1zCtnHObclEclht7gG2irHzCtJBIhttYYGOOPvv5AROdJpAXUzPx5hF+I6MAv/ njtNJ1T4GdZdDFUCM58tBZbuI56YK/EF1LdtU0HVkd8Df85tCu3EWDDeJUkvuDBOoadO nxaMXKIB2uC3fPlqWmsMws16HbtKrSceDcc9OjtNGIeGFYdCHpc/sxB56n54GqqnQLFI 3JsK2fI7Nem4UpZw5L6+8fkR02/KmUNuQ2EWr6ujd2qLPhWuZnT6Ds0hjNLBQkg7cZv1 vGPQ== Received: by 10.68.134.161 with SMTP id pl1mr53074673pbb.29.1343840595524; Wed, 01 Aug 2012 10:03:15 -0700 (PDT) Received: from HonestQiaoNB ([123.115.11.229]) by mx.google.com with ESMTPS id jy7sm2918893pbc.71.2012.08.01.10.03.11 (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 10:03:14 -0700 (PDT) Date: Thu, 2 Aug 2012 01:03:10 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: "Adrian Chadd" References: <201207300139326668335@gmail.com> <201207310032346632212@gmail.com> <201207311033260047670@gmail.com> <201208011128541790632@gmail.com> <201208011436544017265@gmail.com> <2012080200541916697916@gmail.com> <2012080200594631292317@gmail.com>, X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <2012080201030616436618@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Wed, 01 Aug 2012 17:18:08 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 17:03:16 -0000 MjAxMi0wOC0wMiAwMTowMCwgQWRyaWFuIENoYWRkPGFkcmlhbkBmcmVlYnNkLm9yZz4gd3JvdGU6 DQo+QSBwcm9ibGVtIHJlcG9ydC4NCj4NCj5odHRwOi8vd3d3LmZyZWVic2Qub3JnL3NlbmQtcHIu aHRtbA0KPg0KPg0KPg0KPg0KPkFkcmlhbg0KPg0KT2suIEkgd2lsbCBzdWJtaXQgYSBQUiwgd2hp Y2ggd2lsbCBjb250YWluIGFsbCB0aGUgaW5mb3JtYXRpb24gSSBnYXRoZXJlZC4NCg0K From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 17:28:56 2012 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 44D27106564A for ; Wed, 1 Aug 2012 17:28:56 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BCCE38FC0A for ; Wed, 1 Aug 2012 17:28:55 +0000 (UTC) Received: by bkcje9 with SMTP id je9so3957874bkc.13 for ; Wed, 01 Aug 2012 10:28:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=S8o9A4EjV8QBr3DJywmzh1fYbhHS8vAPHbOtZEqENt8=; b=FY5zvRnd1pJslA3vGrnQlEnNhqhRIQ0/hV6UvfMOUoG0VkvhCVSO77Gt3qaeVyzdiY 1VLc40Jf4xBqdV8p+3uLehoixkshtCF6FMViBWy0ana0HnzpGBn15kdg24NFMhak6Fbr n22pBI5InjNP7DL4tAxJoUQSegYR3MKWN6fkE9H+nRolDB6tP2Yh7ZeCdZzHcBrCrnnA TirGWmvpGl/9Z7YqpAGvHZQ6dHhLA39CZymiXBkob+jDnk784KTaw2Oi6coXnwrvujND OZ0cq7d/sxTg+/KdXmA1VnEnrX1B2aB2Ct+ldymrrxQajgG+KoEL9YYCL6q4hass6C20 HD8Q== Received: by 10.205.117.141 with SMTP id fm13mr7279119bkc.125.1343842128724; Wed, 01 Aug 2012 10:28:48 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-088-067-204-079.pools.arcor-ip.net. [88.67.204.79]) by mx.google.com with ESMTPS id n5sm2135583bkv.14.2012.08.01.10.28.47 (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 10:28:48 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: "=?gb2312?B?x8ez/i9Ib25lc3RRaWFv?=" Date: Wed, 1 Aug 2012 19:29:22 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <201207300139326668335@gmail.com> <2012080200541916697916@gmail.com> In-Reply-To: <2012080200541916697916@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201208011929.23039.bschmidt@freebsd.org> X-Gm-Message-State: ALoCoQl0GWBf3WoJ4pFQWNT91pjsXEHUeyMd3dJG8jclkBnVN/aTKy9M/w5mhnRpxAiwHkOteIiu Cc: freebsd-wireless@freebsd.org Subject: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 17:28:56 -0000 On Wednesday 01 August 2012 18:54:23 =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= wrote: > 2012-08-01 14:38, Adrian Chadd wrote: > >Oh, ok. Right. Try 11g only. See if that works better. > > > >There's something odd about that beacon frame that is tripping up > >net80211. I'll dig a little deeper tomorow. > > > >Thanks again, > > > > > >adrian > > > > You are right. > After several tests, I found the 802.11b 802.11g 802.11 bg mixed can use. > It can't connect to 802.11n AP. > > My wifi card is Intel Centrino Wireless-N 1000 which support 802.11 b/g/n. > http://www.intel.com/p/en_US/support/highlights/wireless/n1000/ > > Is freebsd9/amd64 not support 802.11n ? > Or is the driver of my wifi card not support 802.11n? 11n is supposed to work with the 1000 series devices, I used one of those for testing. Can you send me one of the pcap files? -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 18:47:51 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 768EF106564A; Wed, 1 Aug 2012 18:47:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3FFD58FC16; Wed, 1 Aug 2012 18:47:50 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so1618708pbb.13 for ; Wed, 01 Aug 2012 11:47:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=OZrfusUzffuondwquy5vOCeVtW5+Z5gx1bM0iAm1ar4=; b=Y/Ne1z/lj2yAcgE4ky07/R00nYhVyZoitT+Gj2DJwqLcn/eQQhj2r2EaaUPSYgOlEh 4Lt8CKtRevIjvDVupZx9TfHJFFvAfzj+ccvS9G0g7dMEVIL9DUfP3E7yowWQNY8Iww8v Basw5/vRR3NU494kW/1b2xA2yvn8SrwcOUOKzKOJZOV615s1DkTLoclW4+8gL+xUydJC 5pjit2G8hmyRGsb27Z0n+cvo8mJJ9WeLuDcZAKx/monhi8JETXZg6AKXLuxvT4rEabLB UgXVaMBLgRB6/bKeJkaHdUHNKGz6VrNfwPDxebiiXWTCJnxBuf+LlCvy1j0/DGiFGwdJ ujyw== MIME-Version: 1.0 Received: by 10.68.191.234 with SMTP id hb10mr39706662pbc.2.1343846870498; Wed, 01 Aug 2012 11:47:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Wed, 1 Aug 2012 11:47:50 -0700 (PDT) In-Reply-To: <201208011929.23039.bschmidt@freebsd.org> References: <201207300139326668335@gmail.com> <2012080200541916697916@gmail.com> <201208011929.23039.bschmidt@freebsd.org> Date: Wed, 1 Aug 2012 11:47:50 -0700 X-Google-Sender-Auth: T7NqiIBETKLmoWnAZUAH4Zk1Wwc Message-ID: From: Adrian Chadd To: Bernhard Schmidt Content-Type: text/plain; charset=ISO-8859-1 Cc: =?UTF-8?B?5LmU5qWaL0hvbmVzdFFpYW8=?= , freebsd-wireless@freebsd.org Subject: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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, 01 Aug 2012 18:47:51 -0000 There's a pcap in the thread somewhere. Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Aug 1 20:03:19 2012 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 4B6B6106564A for ; Wed, 1 Aug 2012 20:03:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1955D8FC16 for ; Wed, 1 Aug 2012 20:03:18 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so1718140pbb.13 for ; Wed, 01 Aug 2012 13:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=664XDBykZmeAcDsYvtCkqsZn7MwxNssATC7Hs8ommEs=; b=MUZVzpFvM+M9SkE4+y6Krbf7b3ZPqvIeu+oaHyXFbI6lgoB6hgHAdMKEvw6NOjLIhG Bly9XTHJ2YOxG1Di7lzm9iAtSoHh7Ab2txB258Oq9YLUnpcfBTJ28Sv2KgA8X8C1KTAq W2/XamaLdHacUJY06WHZRZEAkZsjRw3ktwRA9bbOzHYQxL+NZ2tj/c7V7vfa0h6uIrEo h23SYXyKaTQq3zNicSKPq/8l8hgqum0ijSFEbjCdMHzSUN9pWz4kY1Tsw4J03PFEK0Bg NJhCpx/KHyngBsAzGsTPWcZhkTd47Kpjbs0HLzEzixNfZgN2M0IKDnr3DXQ8iM9TiG1F YzbQ== MIME-Version: 1.0 Received: by 10.68.241.35 with SMTP id wf3mr54276913pbc.102.1343851398437; Wed, 01 Aug 2012 13:03:18 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.66.136 with HTTP; Wed, 1 Aug 2012 13:03:18 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> Date: Wed, 1 Aug 2012 13:03:18 -0700 X-Google-Sender-Auth: 1ZR27y-sCFgu7Vh6Y_WQGbkBXaM Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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, 01 Aug 2012 20:03:19 -0000 Hi, These are the AR5212 HAL defaults: FIRPWR: -41 RRSSI: 12 HEIGHT: 20 PRSSI: 22 INBAND: 6 I don't know how they map to that hex value, i'd have to read the register values. I'd suggest you bring up an AR5212 on FreeBSD and look at what's done in dev/ath/ath_dfs/null/dfs_null.c - I have a set of default parameters (but for the AR5416 and later chips, with a specific antenna config) which you can change for the AR5212. Then just change #if 0 to #if 1 in the dfs enable routine. You can then follow the instructions at http://wiki.freebsd.org/dev/ath%284%29/RadarFFT to enable radar PHY errors - the patch isn't needed, just set the sysctl value appropriately. You will then get PHY errors show up via radiotap. I also have a tool in tools/tools/ath/athradar/ which lets you view and set the radar parameters. You should tinker with that whilst doing some traffic. I personally think the FreeBSD ath driver code is a little cleaner than the madwifi code. :-) The actual radar parameter description for the AR5212 era NICs is covered in the patent - http://wiki.freebsd.org/dev/ath_hal%284%29/RadarDetection . The later chips introduce new options and behaviour. I'll see where those patents are hiding and either publish the patents or a description about what those parameters do. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 2 02:13:12 2012 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 3FB9E1065670; Thu, 2 Aug 2012 02:13:12 +0000 (UTC) (envelope-from prvs=554b31a00=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id DA2778FC0A; Thu, 2 Aug 2012 02:13:11 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,697,1336363200"; d="scan'208";a="63781170" Received: from cipt0175.nam.ci.root ([10.132.108.175]) by cooperlighting-sw.cooperlighting.com with ESMTP; 01 Aug 2012 22:13:11 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0175.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Wed, 1 Aug 2012 22:13:10 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 2 Aug 2012 10:12:56 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1wILPQeW4Dxn6qS6W4Oq8qVHT4UQAMwovg References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 02 Aug 2012 02:13:10.0688 (UTC) FILETIME=[5D343A00:01CD7054] Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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: Thu, 02 Aug 2012 02:13:12 -0000 Hi, > -----Original Message----- > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > Of Adrian Chadd > Sent: Thursday, 2 August 2012 6:03 AM > To: Wright, Brett > Cc: freebsd-wireless@freebsd.org > Subject: Re: Atheros DFS radar detection >=20 > Hi, >=20 > These are the AR5212 HAL defaults: >=20 > FIRPWR: -41 > RRSSI: 12 > HEIGHT: 20 > PRSSI: 22 > INBAND: 6 Yes they are the same values that are being set by default. =20 >=20 > I'd suggest you bring up an AR5212 on FreeBSD and look at what's done > in dev/ath/ath_dfs/null/dfs_null.c - I have a set of default > parameters (but for the AR5416 and later chips, with a specific > antenna config) which you can change for the AR5212. Then just change > #if 0 to #if 1 in the dfs enable routine. Thanks - I will try the parameters you are using for the ar5416 and see if that reduces the number of false detect pulses. > I also have a tool in tools/tools/ath/athradar/ which lets you view > and set the radar parameters. You should tinker with that whilst doing > some traffic. OK I will experiment with different values and see if that helps too. Thanks Brett =20 From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 2 11:26:22 2012 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 AFAC91065670 for ; Thu, 2 Aug 2012 11:26:22 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm25-vm0.bullet.mail.sp2.yahoo.com (nm25-vm0.bullet.mail.sp2.yahoo.com [98.139.91.228]) by mx1.freebsd.org (Postfix) with SMTP id 76C068FC14 for ; Thu, 2 Aug 2012 11:26:22 +0000 (UTC) Received: from [98.139.91.66] by nm25.bullet.mail.sp2.yahoo.com with NNFMP; 02 Aug 2012 11:26:16 -0000 Received: from [208.71.42.190] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 02 Aug 2012 11:25:16 -0000 Received: from [127.0.0.1] by smtp201.mail.gq1.yahoo.com with NNFMP; 02 Aug 2012 11:25:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1343906716; bh=WYH97QEL3aV65K6DBu7vM1eAFLWSN0oKLiDQjXvYiz0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=MDCsGypDh6xGecRnGRrQm+UA7t8Ao2OHjhcmQuBMgPfwTg16wQKLQwu3+HGGyybVP9NU51jAIKNDwyUHRTQ34Wm0uCI+OQzOFadiBX6iGPsJuil4p/4pxK2Xu8aBU8img7INx9lVwKvkTxiIMVo4WTKvgDEYt2icbe3QOi27HMo= X-Yahoo-Newman-Id: 362568.56958.bm@smtp201.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 47hk_skVM1n1uS.zmskDU1ZQAS4qCHNyW5qp_U0E3GP8BBd RcLU8s2gvS1RuPFTYauQMBsr7i0OtgbjbQIY3hdzxHeiVNu5AXwfVRr4T5qL rBUEtLdKzZBkbiNKY7amXjUdRZIC0_I0KWMguiyHFwFrVmeHAGr9B1yZcHRh GhPj5ki4RLiEoNA7fB7VyJjM4Z4SFPn3t1EZi6SqLLRMrghWoUJYFX_pAbJu So3a847P4hZ7UF133wRbSSGJvNLVfZ2m57lva5NRMRQeP5_i4xGTpjeVigrM bSqnt2MJtMCuDr1lt_or0eGQpgktZAOSuhWYIwBlDqR.04qPVokhtY1ijB32 ro6nvWdWDtXwxyagFPYGYwdVgkqvnDXe2bPKlJoH1LpIJn4NhguSkVceVBTl FER5eyLses0BCpn3POJQRUVFrmcZQOdHbzDJdFYA0_wsMYSn1sP39frg2yQH kzH2OpkMefYny79ylnNrAZlN018KnzxfGTluyFI7zaX7TBOLR79FRAvzAx17 iqmlkCyjutb.J0E4S.6GnkyOLhngQWBEJRVES1ULEIxth8CZc.YUnyReBCYI 7VzPlFHNhIAjeqkyqhiEqiYj4tiT6DNjTtmG._vLofnzx0HYcZadcKtzBTb1 cqfj39SgQ4IZYl3vE5Iie85QXyP8mUmai3LRWBmm9Tss- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vc0-f182.google.com (moonlightakkiy@209.85.220.182 with plain) by smtp201.mail.gq1.yahoo.com with SMTP; 02 Aug 2012 04:25:16 -0700 PDT Received: by vcbgb22 with SMTP id gb22so9808079vcb.13 for ; Thu, 02 Aug 2012 04:25:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.189.69 with SMTP id gg5mr8651497vec.6.1343906715439; Thu, 02 Aug 2012 04:25:15 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Thu, 2 Aug 2012 04:25:15 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Aug 2012 05:25:15 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Thu, 02 Aug 2012 11:26:22 -0000 On Wed, Aug 1, 2012 at 11:05 AM, Adrian Chadd wrote: > Hm, not quite there. You're still grabbing the node lock before you > call the callback. That's the wrong spot. You need to put the > NODE_LOCK/NODE_UNLOCK calls back where you assemble the list of nodes, > not when you call the callback. > > All the callback loop needs is: > > (for i = 0; ...) { > if (ni == NULL) > break; > (*f)(arg, node array entry); > ieee80211_free_node(node array entry); > } > > Ther'es no need for the node table lock there. You only use the node > table lock when you're iterating through the node table. That's being > done in the first pass. > > You're also calling ieee80211_free_node() on ni, but you're not > assigning ni anywhere. > Third time's the charm. assuming all vaps have the same iv_max_aid https://gitorious.org/ieee80211/net80211/commit/c8a1a722df1683416d4d0d9cd99c57a6b1b2bdf5/diffs/87d27559ad706e4a8c63d5a7d0ed5d2101fb3402 AK From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 2 06:54:59 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 95B5C1065670; Thu, 2 Aug 2012 06:54:59 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 253828FC0C; Thu, 2 Aug 2012 06:54:59 +0000 (UTC) Received: by yenl8 with SMTP id l8so9769694yen.13 for ; Wed, 01 Aug 2012 23:54:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:references:x-priority:x-has-attach:x-mailer :mime-version:message-id:content-type:content-transfer-encoding; bh=2InfUMsp9bN1oG8Sl+wTo8KqdqCLfKimzL2LbXGpYVg=; b=R9I4XJBrMvm1Kywcwa1QCHfRHkRbT51C2aZdoKqegFG/3nm909o3FLmLxN2vWe87If AzHi5p7eFNa9q6c5RzWO5H10VCQmNUdTpg3QazT175/seYkU4MAInzKA5qSibt1NVXXz y3IFc481n1+PdWYKiqcwdQ6cFoyT34EoHsT5axSKRcoYxzQziADyzaIS81xBakzxUgfY ANnV2s/hT2MOQ5sQGnWru8AIlxCHkak5AZZrifZ2XX5YFqicyVz4epnAlZxBooAe7A38 cA+H6ur05voxKio1kAbIgPnqg1+A39TOxxjnLWYBJfHYm1xss7Rdlq5WJjMPT1jOUJ4U hrAg== Received: by 10.50.236.4 with SMTP id uq4mr1776006igc.18.1343890498376; Wed, 01 Aug 2012 23:54:58 -0700 (PDT) Received: from HonestQiaoNB ([219.235.192.254]) by mx.google.com with ESMTPS id i17sm8032093igd.5.2012.08.01.23.54.54 (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 23:54:57 -0700 (PDT) Date: Thu, 2 Aug 2012 14:54:54 +0800 From: =?gb2312?B?x8ez/i9Ib25lc3RRaWFv?= To: bschmidt References: <201207300139326668335@gmail.com> <2012080200541916697916@gmail.com>, <201208011929.23039.bschmidt@freebsd.org> X-Priority: 3 X-Has-Attach: no X-Mailer: Foxmail 7.0.1.91[en] Mime-Version: 1.0 Message-ID: <201208021454506984721@gmail.com> Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Mailman-Approved-At: Thu, 02 Aug 2012 11:41:41 +0000 Cc: freebsd-wireless Subject: Re: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Thu, 02 Aug 2012 06:54:59 -0000 MjAxMi0wOC0wMiAwMToyOSwgQmVybmhhcmQgU2NobWlkdDxic2NobWlkdEBmcmVlYnNkLm9yZz4g d3JvdGU6DQo+MTFuIGlzIHN1cHBvc2VkIHRvIHdvcmsgd2l0aCB0aGUgMTAwMCBzZXJpZXMgZGV2 aWNlcywgSSB1c2VkIG9uZSBvZg0KPnRob3NlIGZvciB0ZXN0aW5nLiBDYW4geW91IHNlbmQgbWUg b25lIG9mIHRoZSBwY2FwIGZpbGVzPw0KPg0KPi0tIA0KPkJlcm5oYXJkDQoNCkkgaGF2ZSBmb3J3 YXJkIHRoZSBlbWFpbCBpbmNsdWRlIHBjYXAgdG8gQmVybmhhcmQgU2NobWlkdC4NCg0KSG9uZXN0 UWlhbw== From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 2 17:52:46 2012 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 F37E41065701 for ; Thu, 2 Aug 2012 17:52:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id A1F218FC12 for ; Thu, 2 Aug 2012 17:52:45 +0000 (UTC) Received: by qcsg15 with SMTP id g15so6787425qcs.13 for ; Thu, 02 Aug 2012 10:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mcaDWRlIKGUKSooObdd2ZKaTEcEbGR1opoFbWeNyVZE=; b=sTXgH3+wUIPtpEkugCu2zYh+kKoAlXfatFAmmwCagJ0foM03fxXpwMaZeLsLIXBecn P580MEjxJMnYYOmgDkm11BP5v9oYQyfZQx94VaB+dmmlyE2MR3CHc/eZTXvKgD4dD6AF 9RE2C01HMsdW0Me6FEN5NFmB5ZG5ztU/qeRozt3XBIuVrysh6IjMkqkaKNhaH40/Assc kXLGK1SKQVdQn1YIcHMw0cWhe8fNyabhQ5B/+4SQE9CrT6EfpUcL5qoRybZxKy/ROgS1 mMDIeNv9AQ1hWaY0W8x0AJhy1tJMWXp08JX45lpdPJUwhF7uQ4y8KeASJJTH5vLio+mp xIYQ== MIME-Version: 1.0 Received: by 10.60.28.101 with SMTP id a5mr38344052oeh.69.1343929964812; Thu, 02 Aug 2012 10:52:44 -0700 (PDT) Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 10:52:44 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Aug 2012 10:52:44 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Thu, 02 Aug 2012 17:52:46 -0000 On 2 August 2012 04:25, PseudoCylon wrote: > Third time's the charm. > assuming all vaps have the same iv_max_aid > https://gitorious.org/ieee80211/net80211/commit/c8a1a722df1683416d4d0d9cd99c57a6b1b2bdf5/diffs/87d27559ad706e4a8c63d5a7d0ed5d2101fb3402 Hm, ok. Maybe we should add some very loud debug printing if we overflow the size of that table. If we ever hit that condition and people report the debugging, we can expand the logic to include the AIDs from all VAPs. Does it fix some/all of the LORs for you? Adrian From owner-freebsd-wireless@FreeBSD.ORG Thu Aug 2 18:32:41 2012 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 0EFA0106566B for ; Thu, 2 Aug 2012 18:32:41 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id B6CA68FC0A for ; Thu, 2 Aug 2012 18:32:40 +0000 (UTC) Received: by ggnk4 with SMTP id k4so2618543ggn.13 for ; Thu, 02 Aug 2012 11:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=l60uddeGJYiA3NUIWNfRjeSNbtgnwbnXNUEaogUjYYI=; b=k/f6F67X6CsG+9ApYrKrNBvrX5d4Nt7xJstp21TIRqZvJtkpsgqEKH2raDrJPqCc0O PKDCHRbtR5mxXQ7MIpEqxEQULupdAxuJe1PTaqt0UP1mKvrOvqnuEKtLok0R/qMH0HVD +Q9sd2xEm/kfgoqbSYsaYTdHRoTvvxpajcciJ1BvCgMpjQVKnK5vab+qkrZkQXbgCVto QT1A3DJzVJjFI2OgC6l18tcXxwlq6kq0yJ5iB+AtWYzxva5cYouYZ5T709yx7Ot4aa4x U74fGFiLJAoCkiEJjgfLzXRpBbY4ZAPMx1fOSDtFPbCM190PSvkCNTbcmsF7fjrQcXzZ 4NPA== MIME-Version: 1.0 Received: by 10.60.1.165 with SMTP id 5mr38505897oen.70.1343932360069; Thu, 02 Aug 2012 11:32:40 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 11:32:40 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> Date: Thu, 2 Aug 2012 11:32:40 -0700 X-Google-Sender-Auth: fNEysjuBBfkUUio7ZvytQbbib8M Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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: Thu, 02 Aug 2012 18:32:41 -0000 Hi, Chances are the AR5416 parameters aren't "right" by any long stretch. You should read the patent docs and see what those parameters mean for the AR5212. You may find you can do some tuning based on your environment/antenna setup to reduce false positives, but be sure to test it with actual radar traffic. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 00:11:16 2012 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 5B96B106566C; Fri, 3 Aug 2012 00:11:16 +0000 (UTC) (envelope-from prvs=555b80879=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 01B358FC12; Fri, 3 Aug 2012 00:11:14 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,704,1336363200"; d="scan'208";a="63931556" Received: from cipt0175.nam.ci.root ([10.132.108.175]) by cooperlighting-sw.cooperlighting.com with ESMTP; 02 Aug 2012 20:11:08 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0175.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Thu, 2 Aug 2012 20:11:08 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 3 Aug 2012 08:11:01 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1w3TSQsyGzG69lRjawdFqNYYydBwALlPig References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 03 Aug 2012 00:11:08.0057 (UTC) FILETIME=[7AFD2890:01CD710C] Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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: Fri, 03 Aug 2012 00:11:16 -0000 Hi Adrian, Interestingly, the Ar5416 parameters gave me almost identical number of false detects. I will have a close read of the patent docs and try some different parameters... Did false detects cause a problem for you with the newer chipsets? Thanks again Brett From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 00:28:08 2012 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 13B59106566B for ; Fri, 3 Aug 2012 00:28:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C31368FC12 for ; Fri, 3 Aug 2012 00:28:07 +0000 (UTC) Received: by obbun3 with SMTP id un3so242378obb.13 for ; Thu, 02 Aug 2012 17:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=K2Tz4a02U7wptyGItrIl+lqn9ns0YLu1D9/QkKfy+ls=; b=LD+BabBaXHFhPIWM0m9hSqd0AqWCLlJl3RVZ3rbwLk+p9mnyrx1cUQsFU63uRLLwes XX1zDrKeHtswBE1qmN6B5zHkESsYJQ0dXDLDUVuy3DxCatx7hpwey1mPzxJinfwS91Dn j0++8AkOIahxlF7JzI5BpM+EkFb9vvQNOMBGcL5p5gEsTLxmHvQlQvUyBmR4pagS2+a5 m7UGpWtSwSP+VHGk03zRYOOzsKa1L9zegywBbfxKX91SWjXRWzf+cServMtbPBuoFhAg /rOTUHon3Xde7KalzY/SCVmKZWWvzrsqFyW24SfhJ23fCBS4/nexPGKBNcOQopf4sYDg Uh0Q== MIME-Version: 1.0 Received: by 10.182.162.101 with SMTP id xz5mr3394185obb.47.1343953681385; Thu, 02 Aug 2012 17:28:01 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 17:28:01 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> Date: Thu, 2 Aug 2012 17:28:01 -0700 X-Google-Sender-Auth: pNoU3Fxn1fAtRnd2GZeBuQjT6Ik Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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: Fri, 03 Aug 2012 00:28:08 -0000 On 2 August 2012 17:11, Wright, Brett wrote: > Hi Adrian, > > Interestingly, the Ar5416 parameters gave me almost identical number of > false detects. > I will have a close read of the patent docs and try some different > parameters... > Did false detects cause a problem for you with the newer chipsets? False detects do pop up. :) Hm, try disabling fast antenna diversity on the AR5212. Lock the TX/RX antenna down to one antenna. I recall that was needed. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 01:15:52 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 016651065670 for ; Fri, 3 Aug 2012 01:15:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id AF9D98FC14 for ; Fri, 3 Aug 2012 01:15:51 +0000 (UTC) Received: by obbun3 with SMTP id un3so307640obb.13 for ; Thu, 02 Aug 2012 18:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=G8b3sIAoDrGkxEuIiMGz4l7rIViCwmAvrv5G5HQ6L+0=; b=POzW/ZrAe8haEYU/MsGhGr1656dODF6Jko/mJkd6P43BAsijg/o5dB72p5p7R5tPcH q3onY3dI3U2RjKa2SgORAympP19W3d2At5gUAhPEShCWOw+3Dus1JyReyeIInBvOsTd/ nO9KjQfNCoweWn0kTBw4pyzz5UPO3Sku5ZkZYmotgIVUCoAh5/ZIkl7XGAKI/j587vwa OudEwGfSQHnrcschTWg63r8DdxObxC2DllPwM5sA9igMGMJQCtSqwH1qczm6tFN7pJag nV584VBKLZXFEStMjjcM5FH1IoeB4Bj3dq+1BnMkx4b+XH8MjZx0br4JxUlPMVo/NKu3 Pcyg== MIME-Version: 1.0 Received: by 10.182.89.102 with SMTP id bn6mr55020obb.7.1343956550955; Thu, 02 Aug 2012 18:15:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 18:15:50 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root> Date: Thu, 2 Aug 2012 18:15:50 -0700 X-Google-Sender-Auth: -XQKOMKNWZsWmGzaH9pvSjn5uaY Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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: Fri, 03 Aug 2012 01:15:52 -0000 How've you been testing with diversity turned off? It looks like the FreeBSD HAL doesn't have the bits to disable fast diversity. Let me go hunt down what the code is and try it out. Which legacy NICs are you using too? I can give it a whirl locally and see if I see the same issues as you. Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 02:13:35 2012 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 0E79E10656E6; Fri, 3 Aug 2012 02:13:35 +0000 (UTC) (envelope-from prvs=555b80879=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 9CD638FC15; Fri, 3 Aug 2012 02:13:34 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,704,1336363200"; d="scan'208";a="63937507" Received: from cipt0175.nam.ci.root ([10.132.108.175]) by cooperlighting-sw.cooperlighting.com with ESMTP; 02 Aug 2012 22:13:34 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0175.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Thu, 2 Aug 2012 22:13:33 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: A/Cw A/8e DF66 Ekgh EtJx FWJs KeYQ LzFg L8ee Mg4w N5Sd OjFw PqaL RC8G Risa TvgF; 2; YQBkAHIAaQBhAG4AQABmAHIAZQBlAGIAcwBkAC4AbwByAGcAOwBmAHIAZQBlAGIAcwBkAC0AdwBpAHIAZQBsAGUAcwBzAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {64218848-CFFA-4D8A-93C7-88E3D93D18FA}; YgByAGUAdAB0AC4AdwByAGkAZwBoAHQAQABjAG8AbwBwAGUAcgBpAG4AZAB1AHMAdAByAGkAZQBzAC4AYwBvAG0A; Fri, 03 Aug 2012 02:11:06 GMT; UgBFADoAIABBAHQAaABlAHIAbwBzACAARABGAFMAIAByAGEAZABhAHIAIABkAGUAdABlAGMAdABpAG8AbgA= x-cr-puzzleid: {64218848-CFFA-4D8A-93C7-88E3D93D18FA} Content-class: urn:content-classes:message Date: Fri, 3 Aug 2012 10:11:06 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1xFY2WXCNJhqvcRTqiu4/nn1TSbgAAlUsQ References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root> From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 03 Aug 2012 02:13:33.0511 (UTC) FILETIME=[95387D70:01CD711D] Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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: Fri, 03 Aug 2012 02:13:35 -0000 > -----Original Message----- > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > Of Adrian Chadd > Sent: Friday, 3 August 2012 11:16 AM > To: Wright, Brett > Cc: freebsd-wireless@freebsd.org > Subject: Re: Atheros DFS radar detection >=20 > How've you been testing with diversity turned off? >=20 > It looks like the FreeBSD HAL doesn't have the bits to disable fast > diversity. Let me go hunt down what the code is and try it out. #define AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV 0x2000 #define AR_PHY_CCK_DETECT 0xA208 I am turning diversity off by clearing AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV bit in register AR_PHY_CCK_DETECT (not sure if the CCK labeling indicates this stuff is invalid for an 802.11a only radio)?=20 Also setting the rx antenna using: #define AR_DEF_ANTENNA 0x8058 The above register and setting bits 0..2 to either 1 or 2 (for main or aux) >=20 > Which legacy NICs are you using too? I can give it a whirl locally and > see if I see the same issues as you. >=20 I am using AR5213A on a ubiquity SR5. Thanks Brett From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 02:40:08 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C48AD106566C for ; Fri, 3 Aug 2012 02:40:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 68E968FC15 for ; Fri, 3 Aug 2012 02:40:08 +0000 (UTC) Received: by yhfs35 with SMTP id s35so316756yhf.13 for ; Thu, 02 Aug 2012 19:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=YxiQ+2EDe9cjTx4PnGMA1GuCHAoSGU4O86axO5S5qWs=; b=CmxX1f31lqHzBXfXkKc2iGNe3D3bCmKNOxEYra/JXHVq89H9r5KgaXzHGqXvkEWb0O QuFu5k+uIRffV4udZtdH9kyB8sYjhAMvfQwQpVe4PVAHj/HTyqdkNAEulM4pDZY+TwgR SOHMYwwbsy/UGp+GZUVYr3vOgBt44JGioL0UcsovOkVoCYxgu+cXsBEAjBbOIF9N3Ylt sfW8Tkze8npwoKE4h2yJFd2aWfzNedC/hQZIDSvrBVEklIq0Bd1rm2kUUNktH5fj3pA9 Kt0zv/+C5V679hMmH9fubGTzjXaW+Z64RaY4zsL/w8RPf2F7PrOeJ6pitzyRBHIa6O01 uSIA== MIME-Version: 1.0 Received: by 10.60.21.198 with SMTP id x6mr310454oee.24.1343961607897; Thu, 02 Aug 2012 19:40:07 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 19:40:07 -0700 (PDT) Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 19:40:07 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> Date: Thu, 2 Aug 2012 19:40:07 -0700 X-Google-Sender-Auth: 5oLSJShTud3_BVNhZ2vaBlqnUX4 Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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: Fri, 03 Aug 2012 02:40:08 -0000 That looks right for fast diversity. Have you tried any plain nics? The ar5212 has a honking great amp plugged into it... Asrian On Aug 2, 2012 7:14 PM, "Wright, Brett" wrote: > > > > -----Original Message----- > > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > > Of Adrian Chadd > > Sent: Friday, 3 August 2012 11:16 AM > > To: Wright, Brett > > Cc: freebsd-wireless@freebsd.org > > Subject: Re: Atheros DFS radar detection > > > > How've you been testing with diversity turned off? > > > > It looks like the FreeBSD HAL doesn't have the bits to disable fast > > diversity. Let me go hunt down what the code is and try it out. > > #define AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV 0x2000 > #define AR_PHY_CCK_DETECT 0xA208 > > I am turning diversity off by clearing > AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV bit in register > AR_PHY_CCK_DETECT (not sure if the CCK labeling indicates this stuff is > invalid for an 802.11a only radio)? > > Also setting the rx antenna using: > #define AR_DEF_ANTENNA 0x8058 > The above register and setting bits 0..2 to either 1 or 2 (for main or > aux) > > > > > Which legacy NICs are you using too? I can give it a whirl locally and > > see if I see the same issues as you. > > > > I am using AR5213A on a ubiquity SR5. > > Thanks > Brett > > From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 02:42:36 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDCAD106564A for ; Fri, 3 Aug 2012 02:42:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7208C8FC0A for ; Fri, 3 Aug 2012 02:42:36 +0000 (UTC) Received: by obbun3 with SMTP id un3so421240obb.13 for ; Thu, 02 Aug 2012 19:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Iqe6GIeppt+4fgsXRiO+Gp28il+arYF+dDZg0BK2+vk=; b=Alg0/CjWs14/RVQZDrQCcOZoqobxj7Bu6PYdIcdUJ8f///lnxtPXZhl3j1HyBel0J7 iuRN3X57UOsjS5xBGYG49UFweF8A+taqclMPCPCGpsCgtt2WYzkqjemqCENOD5aG/Tdb XpeGGqWUCj7ldM5GeADkLpccDazc7gO7gPihbAxVuj8OM96JEYawtP2nX3lWyXpzr7R0 K/7nAc2P6/VEt60StQ/EmLW2YUcllxz8Mt59ppDx7mVdDy+CkBZXLMk8JrG7cZS3Z8BO ltmUeouIbtHR7hm1fFnr0kfFiIJ9Ke7Lbi+hdZs3QJIkpBRKZ9cIVG/YohFYJVJ/MnMG nEzw== MIME-Version: 1.0 Received: by 10.182.50.103 with SMTP id b7mr467256obo.15.1343961755715; Thu, 02 Aug 2012 19:42:35 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 19:42:35 -0700 (PDT) Received: by 10.76.151.3 with HTTP; Thu, 2 Aug 2012 19:42:35 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> Date: Thu, 2 Aug 2012 19:42:35 -0700 X-Google-Sender-Auth: fzeHkq8CLYYTt0QmptwLOBc7wQ0 Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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: Fri, 03 Aug 2012 02:42:36 -0000 Hm. Theres also strong signal diversity. Lemme dig that up. On Aug 2, 2012 7:14 PM, "Wright, Brett" wrote: > > > > -----Original Message----- > > From: adrian.chadd@gmail.com [mailto:adrian.chadd@gmail.com] On Behalf > > Of Adrian Chadd > > Sent: Friday, 3 August 2012 11:16 AM > > To: Wright, Brett > > Cc: freebsd-wireless@freebsd.org > > Subject: Re: Atheros DFS radar detection > > > > How've you been testing with diversity turned off? > > > > It looks like the FreeBSD HAL doesn't have the bits to disable fast > > diversity. Let me go hunt down what the code is and try it out. > > #define AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV 0x2000 > #define AR_PHY_CCK_DETECT 0xA208 > > I am turning diversity off by clearing > AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV bit in register > AR_PHY_CCK_DETECT (not sure if the CCK labeling indicates this stuff is > invalid for an 802.11a only radio)? > > Also setting the rx antenna using: > #define AR_DEF_ANTENNA 0x8058 > The above register and setting bits 0..2 to either 1 or 2 (for main or > aux) > > > > > Which legacy NICs are you using too? I can give it a whirl locally and > > see if I see the same issues as you. > > > > I am using AR5213A on a ubiquity SR5. > > Thanks > Brett > > From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 02:49:08 2012 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 C36DD106564A; Fri, 3 Aug 2012 02:49:08 +0000 (UTC) (envelope-from prvs=555b80879=Brett.Wright@cooperindustries.com) Received: from cooperlighting-sw.cooperlighting.com (cooperlighting-sw.cooperlighting.com [216.130.131.68]) by mx1.freebsd.org (Postfix) with ESMTP id 6084F8FC15; Fri, 3 Aug 2012 02:49:08 +0000 (UTC) Authentication-Results: cooperlighting-sw.cooperlighting.com; dkim=neutral (message not signed) header.i=none X-IronPort-AV: E=Sophos;i="4.77,704,1336363200"; d="scan'208,217";a="63939234" Received: from cipt0174.nam.ci.root ([10.132.108.174]) by cooperlighting-sw.cooperlighting.com with ESMTP; 02 Aug 2012 22:49:08 -0400 Received: from APEVS1.AP.CI.ROOT ([10.180.2.21]) by cipt0174.NAM.CI.ROOT with Microsoft SMTPSVC(6.0.3790.4675); Thu, 2 Aug 2012 22:49:07 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 3 Aug 2012 10:48:05 +0800 Message-ID: <475A4E02EFF4724A9E58F55A56AC1316063F7297@APEVS1.ap.ci.root> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Atheros DFS radar detection Thread-Index: Ac1xIU2OiKCUv/rnSQavg3Pa0luwxAAAPg2g References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root><475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> From: "Wright, Brett" To: "Adrian Chadd" X-OriginalArrivalTime: 03 Aug 2012 02:49:07.0572 (UTC) FILETIME=[8D385B40:01CD7122] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: RE: Atheros DFS radar detection 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: Fri, 03 Aug 2012 02:49:09 -0000 No I'm stuck with the SR5 so have only tried that one. Maybe the amp is adding to my woes? =20 From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 17:16:30 2012 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 EB63B106564A for ; Fri, 3 Aug 2012 17:16:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8F3C38FC17 for ; Fri, 3 Aug 2012 17:16:30 +0000 (UTC) Received: by ggnk4 with SMTP id k4so1326737ggn.13 for ; Fri, 03 Aug 2012 10:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LWhGF0uvuL+wKPPrF2z5txHkWE8e0vzV6wYQEbSEt/g=; b=IRE755tXmSWk45UeT+OzHJhqGVorEhg/+oAFiwqQLynUv2g3hJ9L7HJbDcMikCVGvH wyp0NEtBYDYBMTxUZAv1RNgU4GeOkZjxHePwaqYly5jLKCPylI+nlYgpmX+rt5WOXd4W En9+GyJ/HkPE+f3nrP4ESvz+BuOsYfGt0oS0rfoxcv5BbN8Ie6utoIk9gGCyeKbsvocN JWDkNTTy78wnRYJlOATXheeGw2Ed9vcrg+HY9KRZ0jI4L2v3N8wJm+8gOr7TPEztk2+P zMysmHXdCdvI1CXHgLKssy5WSID90vqnyt09/6VitueZrmx+6GN+yqKNvs0r/UvSiLDp 9tIg== MIME-Version: 1.0 Received: by 10.60.30.170 with SMTP id t10mr6560703oeh.10.1344014189462; Fri, 03 Aug 2012 10:16:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Fri, 3 Aug 2012 10:16:29 -0700 (PDT) In-Reply-To: <475A4E02EFF4724A9E58F55A56AC1316063F7297@APEVS1.ap.ci.root> References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F7297@APEVS1.ap.ci.root> Date: Fri, 3 Aug 2012 10:16:29 -0700 X-Google-Sender-Auth: aWDNrLdMTay1_uRaaFHY5xAK_qw Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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: Fri, 03 Aug 2012 17:16:31 -0000 On 2 August 2012 19:48, Wright, Brett w= rote: > No I=92m stuck with the SR5 so have only tried that one. > > Maybe the amp is adding to my woes? It's possible. That's why I suggest reading the patent and fiddling with the RSSI thresholds. Especially if you're transmitting between two SR5's and you haven't turned down the TX power. Those things are _strong_. Adrian (Who has SR2's here, but no SR5's.) From owner-freebsd-wireless@FreeBSD.ORG Fri Aug 3 20:05:45 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F604106564A for ; Fri, 3 Aug 2012 20:05:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id AD6798FC14 for ; Fri, 3 Aug 2012 20:05:44 +0000 (UTC) Received: by yenl8 with SMTP id l8so1560027yen.13 for ; Fri, 03 Aug 2012 13:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=IWTJ6yo2KY6xG+Fb6N6bVaxmHV5F0CN37pEAaFGxTLE=; b=qBTo0xLAoPawgjV7wttof8EPfFPr/eHr3mFgcR+VUPLhZzzTmnfAobGa1bQBqXBh0Y PVf5dPheKVD08Xxqs9+0tNLxXBjR+Iqtv/UOsWNx9UFC+9UX0xwbE34m8MrQ5bx3Oovo s9GAv1zXKjeKR9kvsogq510pfOiVycv4u02jjOthBGRvdrhf7LcBngBZCRfi3xlHx6m9 dFbvgagvXPLv2SWDYgAhGCJ0CEqIR7xYGRuYwRrl50auMnspNKwrg1A77s8LyICbQYqW wzZnXtDUUcbAqwk7yho7tFgH7Nq99HEfUIvTeTAvDECEyKvVvZzGGuFaKhdL8v2cS6zI rY1w== MIME-Version: 1.0 Received: by 10.60.172.202 with SMTP id be10mr7442856oec.53.1344024343820; Fri, 03 Aug 2012 13:05:43 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Fri, 3 Aug 2012 13:05:43 -0700 (PDT) In-Reply-To: References: <475A4E02EFF4724A9E58F55A56AC1316063B3323@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063B35EB@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D6752@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063D7105@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E27@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F6E74@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F7161@APEVS1.ap.ci.root> <475A4E02EFF4724A9E58F55A56AC1316063F7297@APEVS1.ap.ci.root> Date: Fri, 3 Aug 2012 13:05:43 -0700 X-Google-Sender-Auth: BVLcj2lY52dr1goaPovD8ht2rjw Message-ID: From: Adrian Chadd To: "Wright, Brett" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Atheros DFS radar detection 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: Fri, 03 Aug 2012 20:05:45 -0000 .. so the "strong signal diversity" twiddle is AR_PHY_RESTART_DIV_GC. Set that field to 0x1 and see what happens. (You had no idea how much digging I needed to do in order to get that.) And yes, I think you also need to set the RSSI thresholds. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 4 04:57:34 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6410B106564A; Sat, 4 Aug 2012 04:57:34 +0000 (UTC) (envelope-from honestqiao@gmail.com) Received: from mail-qa0-f54.google.com (mail-qa0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6BA838FC0A; Sat, 4 Aug 2012 04:57:33 +0000 (UTC) Received: by qaat11 with SMTP id t11so77291qaa.13 for ; Fri, 03 Aug 2012 21:57:32 -0700 (PDT) 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-type:content-transfer-encoding; bh=To59jI/hMnrCc6qIZ30Htmldw5Bu6q9TjkukNG3fAfI=; b=NFkLoWw5qgjpzMrM8yq5ZdcX7LQKLhRqXNn80XfxAhkIow+8yvNJ8/jOVP3w38a45j rl2SqyhXE5nHgYiSD2wvz0AkWd/nIvuaMHuULgq3+btNKvLlJBGk2SvGmJM0oFfcDxAB CH6qdgQfwYmv1relVSvq7usKyrcRM4anhgXh3OVIaCBKh437T9nerUP/L2ubF2zRRUJ6 Ic0DHHqumFIiWvoD1hqa/f0JHMvyQCJI4f6t9WBQrJ6jD6kes4gjnwl3GbcU/GEfvIa3 8gduasExQNNbC8CBXH/3HJ/QmOgl5m1gyx2o6HH6X9HeAXqiNaJPM216pTxmTDiS+Bf/ CyHA== Received: by 10.224.186.20 with SMTP id cq20mr6604450qab.32.1344056252376; Fri, 03 Aug 2012 21:57:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.68.224 with HTTP; Fri, 3 Aug 2012 21:56:51 -0700 (PDT) In-Reply-To: References: <201208021452399531330@gmail.com> From: =?UTF-8?B?5LmU5qWa?= Date: Sat, 4 Aug 2012 12:56:51 +0800 Message-ID: To: Bernhard Schmidt Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless Subject: Re: Forward: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Sat, 04 Aug 2012 04:57:34 -0000 2012/8/2 Bernhard Schmidt : > On Thu, Aug 2, 2012 at 8:52 AM, =E4=B9=94=E6=A5=9A/HonestQiao wrote: >> tty1#tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w pcap.out > > Thanks, just to clarify, this pcap is made while the AP was configured > to do WPA and WPS, right? > > Did you already try to disable WPS, I'm not sure I've tried with that ena= bled. > >> tty2#cat /etc/wpa_supplicant.conf >> # /etc/wpa_supplicant.conf written by wifimgr(8) >> >> ctrl_interface=3D/var/run/wpa_supplicant >> ctrl_interface_group=3Dwheel >> >> network=3D{ >> ssid=3D"0x0b071500000000000000" >> bssid=3D8c:21:0a:43:ef:d4 >> key_mgmt=3DWPA-PSK >> proto=3DRSN >> psk=3D"12345678901" >> } > > No luck with > > network=3D{ > ssid=3D"OpenBSD" > psk=3D"12345678901" > } > > either I guess? According to the pcap there are no trailing 0x00 in the S= SID. > > -- > Bernhard I think the WPS might not be the main reason. If AP was enabled QSS, ifconfig wlan0 list scan would include WPS. Today I went through a number of tests and found the following: AP: 802.11bgn mixed / QSS enabled / channel:11 / 20MHz / 130mbps X201i/FreebSD9/amd64/iwn0 can connect to AP. 802.11bgn mixed / QSS enabled / channel:11 / 40MHz / 300mbps Or 802.11bgn mixed / QSS enabled / channel:11 / Auto / 300mbps X201i/FreebSD9/amd64/iwn0 can't connect to AP. wpa configure: network=3D{ ssid=3D"OpenBSD" #+ any_bssid key_mgmt=3DWPA-PSK proto=3DRSN psk=3D"12345678901" } Following are detailed scan information 802.11bgn mixed / QSS enabled / channel:11 / 20MHz / 130mbps % ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 8c:a9:82:5a:41:58 inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=3D29 media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11ng status: associated ssid OpenBSD channel 11 (2462 MHz 11g ht/20) bssid 8c:21:0a:43:ef:d= 4 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 14 bmiss 10 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CT= S ampdulimit 64k -amsdutx amsdurx shortgi wme roaming MANUAL % ifconfig wlan0 list scan | grep -i -E "openbsd|ef:d4" 0x0b0013000... 8c:21:0a:43:ef:d4 11 54M -70:-95 100 EPS RSN HTCAP MESHCONF ATH WPS % ifconfig -v wlan0 list scan | grep -i -E "openbsd|ef:d4" 0x0b001300000000000000 8c:21:0a:43:ef:d4 11 54M -70:-95 100 EPS SSID RATES DSPARMS<11> ERP<0x0> RSN XRATES<48,72,96,108> HTCAP MESHCONF HTINFO MESHID<0x0b00130000000000000.> ATH<0x7fff> WPS 802.11bgn mixed / QSS enabled / channel:11 / 40MHz / 300mbps % ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 8c:a9:82:5a:41:58 nd6 options=3D29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 11 (2462 MHz 11g) country US authmode WPA1+WPA2/802.11i privacy OFF txpower 14 bmiss = 10 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL % ifconfig wlan0 list scan | grep -i -E "openbsd|ef:d4" 0x0b0713000... 8c:21:0a:43:ef:d4 11 54M -69:-95 100 EPS RSN HTCAP MESHCONF ATH WPS % ifconfig -v wlan0 list scan | grep -i -E "openbsd|ef:d4" 0x0b071300000000000000 8c:21:0a:43:ef:d4 11 54M -69:-95 100 EPS SSID RATES DSPARMS<11> TIM<050400010000> ERP<0x0> RSN XRATES<48,72,96,108> HTCAP HTINFO ATH<0x7fff> WPS 802.11bgn mixed / QSS enabled / channel:11 / Auto / 300mbps % ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 8c:a9:82:5a:41:58 nd6 options=3D29 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 13 (2472 MHz 11g) country US authmode WPA1+WPA2/802.11i privacy OFF txpower 14 bmiss = 10 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL [12:46:00]HonestQiao@x201i.pts/1 ~ % ifconfig wlan0 list scan | grep -i -E "openbsd|ef:d4" 0x0b0713000... 8c:21:0a:43:ef:d4 11 54M -67:-95 100 EPS RSN HTCAP MESHCONF ATH WPS [12:46:02]HonestQiao@x201i.pts/1 ~ % ifconfig -v wlan0 list scan | grep -i -E "openbsd|ef:d4" 0x0b071300000000000000 8c:21:0a:43:ef:d4 11 54M -67:-95 100 EPS SSID RATES DSPARMS<11> ERP<0x0> RSN XRATES<48,72,96,108> HTCAP MESHCONF HTINFO MESHID<0x0b07130000000000000.> ATH<0x7fff> WPS HonestQiao From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 4 05:14:21 2012 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 3252F106566C for ; Sat, 4 Aug 2012 05:14:20 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm39-vm5.bullet.mail.bf1.yahoo.com (nm39-vm5.bullet.mail.bf1.yahoo.com [72.30.239.149]) by mx1.freebsd.org (Postfix) with ESMTP id 83E108FC08 for ; Sat, 4 Aug 2012 05:14:20 +0000 (UTC) Received: from [98.139.212.146] by nm39.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 05:11:41 -0000 Received: from [98.139.211.205] by tm3.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 05:11:41 -0000 Received: from [127.0.0.1] by smtp214.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 05:11:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1344057101; bh=yS3QUU/iFr+pAr4MHiWTjvGLuTKoI7WVM0l/R5T0hXc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=U3B0VDVzjqp3M6u3XINMaEPbJ5Tth2i2jAHPUhqWcrU5NRJsHGw2hOEdIknDmbj3/Oc21sgY45RfDxhERD0kL7OStF6etOC5ss4UnFMYbsr1VmdmaUs5lw5FX6MVKu+f8Q7uh/8NVhoRgRv3QzrYQug9WV3cTRMIAMEzpz5z7VY= X-Yahoo-Newman-Id: 60057.93311.bm@smtp214.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: DpTzVcAVM1mDXumG6QjYU9yYB8OiHY3060JyAnTXkvfrPJx abURlPiWhtUGjxEKQ6vd71MRDOUykdSlU5O_v4unEF8CW.oRWzt7UbhgsxXG vVXRhFFU4SudKJGovgEXhbh_jeTqsRmSyr6JRQbj6Jj0VqSNH8IjNUCKY1Hw BHX7Xn1W.5NVl8vozzicA_L.6OMOnlxkbDqKKGAN2Q4sZHU9balR2eeoAUOj GFsye3uJB59bVrR6VllWNGCYGFdPUD66HZ3oltmgJ5TBbzNVFNzq8x2hlzKQ FP..aPN8jZGKDZ65z3oRPk2XZwSc4CmvWqUjDKCwQ11kNyk0H9IVsa_qbPZd LcofUXoFrDyKd8nyGk9iGU8sjEnuXZA52olDqbQPoacs8vPZuW6v94OxsPYX qrFWJN3fc8YCiStfkjdd9FN1fyqZ40iUXYIAUr9Lxj57eNY2mSNVUK5IiHjp aPEpbKNo5Gzzm6pnuakSjR5OVWmoU0oxSrD2GeMNYVdrS1a8Oay4Nf3w.p.c 3ORGm3abiuvgPLEmLZASB87DeDecjIbK1zX08hm0nUDfqrLaA6uRdb5x7Vpp rIMNCBRl9xt9TnE5weQeFONHVR.TwQOLNtaIFNL.hp4pTFvoklw-- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vb0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp214.mail.bf1.yahoo.com with SMTP; 03 Aug 2012 22:11:40 -0700 PDT Received: by vbmv11 with SMTP id v11so1672477vbm.13 for ; Fri, 03 Aug 2012 22:11:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.148.210 with SMTP id q18mr3177139vcv.6.1344057100495; Fri, 03 Aug 2012 22:11:40 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Fri, 3 Aug 2012 22:11:40 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Aug 2012 23:11:40 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Sat, 04 Aug 2012 05:14:21 -0000 On Thu, Aug 2, 2012 at 11:52 AM, Adrian Chadd wrote: > On 2 August 2012 04:25, PseudoCylon wrote: > > >> Third time's the charm. >> assuming all vaps have the same iv_max_aid >> https://gitorious.org/ieee80211/net80211/commit/c8a1a722df1683416d4d0d9cd99c57a6b1b2bdf5/diffs/87d27559ad706e4a8c63d5a7d0ed5d2101fb3402 > > Hm, ok. Maybe we should add some very loud debug printing if we > overflow the size of that table. If we ever hit that condition and > people report the debugging, we can expand the logic to include the > AIDs from all VAPs. > I have added if_printf(), so we can track down the driver to blame. https://gitorious.org/ieee80211/net80211/commit/4dbc79c5f832b4cdffe9966dbbeba9b1b8fd24da I also added functions to revert changes when overflow (maybe too much). https://gitorious.org/ieee80211/net80211/commit/dc1aa81ea1a9eeb7cf1a3a1c2b8a5a8cd85e687d > Does it fix some/all of the LORs for you? > So far, node/driver LOR in iv_key_delete() seems to be gone. AK From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 4 07:13:21 2012 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 B5AF91065675; Sat, 4 Aug 2012 07:13:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 63D9B8FC08; Sat, 4 Aug 2012 07:13:21 +0000 (UTC) Received: by obbun3 with SMTP id un3so2859256obb.13 for ; Sat, 04 Aug 2012 00:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=XFwNGwbkY8P5uoBhYfnR3CIy21LDVFcXs4Ez4nRwpzs=; b=oS3y7C0VezNFXJvDO9DXWSb8hBgy25S4kHPsHxYLVkpZ1uO4wXmTeLCX+cABulNMAf LFHFWW7JUguA4mD/AQAB3ZpFdGvqiqbzJAxoloy/tYMajSnEuSXW1V+6MyPYIsbrKJcL 7c5HTQXFaTsnbajDUbzHNrA8kco3+8kJLoRIh8Ud3XKd9a7NnGXcpq/TTNpwP6aHEezy ZV0bzLPw0hEgscQxPErDnCJvIO2UqbnFRh7tiCmLfNwrs+bmfEx+0/BokoHyaQuKfmg9 fcY+lQsqTE34K9SHCQs9lnBy5KJd+TYhbr2iBW3ymKC7Lc2JV0XKvxjmrY0XgbJJvHtm iRyA== MIME-Version: 1.0 Received: by 10.182.50.103 with SMTP id b7mr9466582obo.15.1344064400664; Sat, 04 Aug 2012 00:13:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.76.151.3 with HTTP; Sat, 4 Aug 2012 00:13:20 -0700 (PDT) Received: by 10.76.151.3 with HTTP; Sat, 4 Aug 2012 00:13:20 -0700 (PDT) In-Reply-To: References: <201208021452399531330@gmail.com> Date: Sat, 4 Aug 2012 00:13:20 -0700 X-Google-Sender-Auth: 1CU3USvRYJfmIKQq-h6MYZ2xNwE Message-ID: From: Adrian Chadd To: =?UTF-8?B?5LmU5qWa?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless , Bernhard Schmidt Subject: Re: Forward: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 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: Sat, 04 Aug 2012 07:13:21 -0000 Its misparsing the HT IE somehow. Adrian On Aug 3, 2012 9:58 PM, "=E4=B9=94=E6=A5=9A" wrote: > 2012/8/2 Bernhard Schmidt : > > On Thu, Aug 2, 2012 at 8:52 AM, =E4=B9=94=E6=A5=9A/HonestQiao > wrote: > >> tty1#tcpdump -ni wlan0 -y IEEE802_11_RADIO -s0 -l -v -w pcap.out > > > > Thanks, just to clarify, this pcap is made while the AP was configured > > to do WPA and WPS, right? > > > > Did you already try to disable WPS, I'm not sure I've tried with that > enabled. > > > >> tty2#cat /etc/wpa_supplicant.conf > >> # /etc/wpa_supplicant.conf written by wifimgr(8) > >> > >> ctrl_interface=3D/var/run/wpa_supplicant > >> ctrl_interface_group=3Dwheel > >> > >> network=3D{ > >> ssid=3D"0x0b071500000000000000" > >> bssid=3D8c:21:0a:43:ef:d4 > >> key_mgmt=3DWPA-PSK > >> proto=3DRSN > >> psk=3D"12345678901" > >> } > > > > No luck with > > > > network=3D{ > > ssid=3D"OpenBSD" > > psk=3D"12345678901" > > } > > > > either I guess? According to the pcap there are no trailing 0x00 in the > SSID. > > > > -- > > Bernhard > > > I think the WPS might not be the main reason. > If AP was enabled QSS, ifconfig wlan0 list scan would include WPS. > > Today I went through a number of tests and found the following: > AP: 802.11bgn mixed / QSS enabled / channel:11 / 20MHz / 130mbps > X201i/FreebSD9/amd64/iwn0 can connect to AP. > > 802.11bgn mixed / QSS enabled / channel:11 / 40MHz / 300mbps > Or 802.11bgn mixed / QSS enabled / channel:11 / Auto / 300mbps > X201i/FreebSD9/amd64/iwn0 can't connect to AP. > > wpa configure: > network=3D{ > ssid=3D"OpenBSD" > #+ any_bssid > key_mgmt=3DWPA-PSK > proto=3DRSN > psk=3D"12345678901" > } > > > > > Following are detailed scan information > > 802.11bgn mixed / QSS enabled / channel:11 / 20MHz / 130mbps > % ifconfig wlan0 > wlan0: flags=3D8843 metric 0 mtu = 1500 > ether 8c:a9:82:5a:41:58 > inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255 > nd6 options=3D29 > media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11ng > status: associated > ssid OpenBSD channel 11 (2462 MHz 11g ht/20) bssid > 8c:21:0a:43:ef:d4 > country US authmode WPA2/802.11i privacy ON deftxkey UNDEF > AES-CCM 2:128-bit txpower 14 bmiss 10 scanvalid 450 bgscan > bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode > CTS > ampdulimit 64k -amsdutx amsdurx shortgi wme roaming MANUAL > % ifconfig wlan0 list scan | grep -i -E "openbsd|ef:d4" > 0x0b0013000... 8c:21:0a:43:ef:d4 11 54M -70:-95 100 EPS RSN > HTCAP MESHCONF ATH WPS > % ifconfig -v wlan0 list scan | grep -i -E "openbsd|ef:d4" > 0x0b001300000000000000 8c:21:0a:43:ef:d4 11 54M -70:-95 > 100 EPS SSID RATES DSPARMS<11> > ERP<0x0> RSN > XRATES<48,72,96,108> HTCAP 0x400 txbf 0xde7e606 antenna 0x0> MESHCONF CONGESTION:UNKNOWN SYNC:UNKNOWN AUTH:UNKNOWN FORM:0x0 CAPS:0x0> > HTINFO MESHID<0x0b00130000000000000.> > ATH<0x7fff> WPS uuid-e:00-01-02-03-04-05-06-07-08-09-0a-0b-0c-0d-0e-0f> > > > > > 802.11bgn mixed / QSS enabled / channel:11 / 40MHz / 300mbps > % ifconfig wlan0 > wlan0: flags=3D8843 metric 0 mtu = 1500 > ether 8c:a9:82:5a:41:58 > nd6 options=3D29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 11 (2462 MHz 11g) > country US authmode WPA1+WPA2/802.11i privacy OFF txpower 14 bmis= s > 10 > scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 > roam:rate 5 protmode CTS wme roaming MANUAL > % ifconfig wlan0 list scan | grep -i -E "openbsd|ef:d4" > 0x0b0713000... 8c:21:0a:43:ef:d4 11 54M -69:-95 100 EPS RSN > HTCAP MESHCONF ATH WPS > % ifconfig -v wlan0 list scan | grep -i -E "openbsd|ef:d4" > 0x0b071300000000000000 8c:21:0a:43:ef:d4 11 54M -69:-95 > 100 EPS SSID RATES DSPARMS<11> > TIM<050400010000> ERP<0x0> RSN km:8021X-PSK> XRATES<48,72,96,108> HTCAP mcsset[0-15] extcap 0x400 txbf 0xde7e606 antenna 0x0> HTINFO 7,13,0,0 basicmcs[]> ATH<0x7fff> WPS > > > > 802.11bgn mixed / QSS enabled / channel:11 / Auto / 300mbps > % ifconfig wlan0 > wlan0: flags=3D8843 metric 0 mtu = 1500 > ether 8c:a9:82:5a:41:58 > nd6 options=3D29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid "" channel 13 (2472 MHz 11g) > country US authmode WPA1+WPA2/802.11i privacy OFF txpower 14 bmis= s > 10 > scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 > roam:rate 5 protmode CTS wme roaming MANUAL > [12:46:00]HonestQiao@x201i.pts/1 ~ % ifconfig wlan0 list scan | grep > -i -E "openbsd|ef:d4" > 0x0b0713000... 8c:21:0a:43:ef:d4 11 54M -67:-95 100 EPS RSN > HTCAP MESHCONF ATH WPS > [12:46:02]HonestQiao@x201i.pts/1 ~ % ifconfig -v wlan0 list scan | > grep -i -E "openbsd|ef:d4" > 0x0b071300000000000000 8c:21:0a:43:ef:d4 11 54M -67:-95 > 100 EPS SSID RATES DSPARMS<11> > ERP<0x0> RSN > XRATES<48,72,96,108> HTCAP 0x400 txbf 0xde7e606 antenna 0x0> MESHCONF CONGESTION:UNKNOWN SYNC:UNKNOWN AUTH:UNKNOWN FORM:0x0 CAPS:0x0> > HTINFO MESHID<0x0b07130000000000000.> > ATH<0x7fff> WPS uuid-e:00-01-02-03-04-05-06-07-08-09-0a-0b-0c-0d-0e-0f> > > HonestQiao > From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 4 10:03:34 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8B249106564A for ; Sat, 4 Aug 2012 10:03:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5650B8FC0C for ; Sat, 4 Aug 2012 10:03:34 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so2876399pbb.13 for ; Sat, 04 Aug 2012 03:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F0flGn8gqe81Mr+SFu1XANikJHW7c6DEGJx/BUSH26M=; b=xD+PartAjo/ywNkOTKvsKncsE6miKTK8WaQQzTgtjVCgmEbBZwwCfT2UInMncZEPh6 hzF1YatgHLP6RRUnx9uU1XGeNQ4UG/hhImYR+kPk7iln7/G+7taLIjxggI5cmswDNiBc NR0/FFMDycFNJfIb1EsrStgwOjtkRdbzbHVjBuiXnVhoKYT2A+WyZMEVXQ7xivmToZV0 c7vyfTkDVqjpwYNP1UTL4wRye2S1hZLzwsixKFS2KHN+7LDSppRPiVkurbe9xz0ZCKB7 katRbtUuDy+uYwVd6PvM8kwcl2phNACCzapuWDEngVCz4iDIXkzfN/iv3GgNuHiRHJhW 9eTw== MIME-Version: 1.0 Received: by 10.68.228.2 with SMTP id se2mr3990081pbc.109.1344074614154; Sat, 04 Aug 2012 03:03:34 -0700 (PDT) Received: by 10.68.115.232 with HTTP; Sat, 4 Aug 2012 03:03:34 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Aug 2012 03:03:34 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Sat, 04 Aug 2012 10:03:34 -0000 On 3 August 2012 22:11, PseudoCylon wrote: > I have added if_printf(), so we can track down the driver to blame. > https://gitorious.org/ieee80211/net80211/commit/4dbc79c5f832b4cdffe9966dbbeba9b1b8fd24da Cool. > I also added functions to revert changes when overflow (maybe too much). > https://gitorious.org/ieee80211/net80211/commit/dc1aa81ea1a9eeb7cf1a3a1c2b8a5a8cd85e687d > > >> Does it fix some/all of the LORs for you? >> > > So far, node/driver LOR in iv_key_delete() seems to be gone. This is a bit odd. I've not seen that, but you're testing with USB, right? I just saw a LOR between a node lock and a tcpinp lock. i was doing some iperf to an AR5416 802.11n AP running iperf locally. I've not seen this before as I've not run a NIC in AP mode with local traffic termination; I've only had APs do bridging. Thanks for chasing this down. Let me know if you see the node/power or node/scan LORs? Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 4 12:38:25 2012 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 6E81D1065673 for ; Sat, 4 Aug 2012 12:38:25 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm7.bullet.mail.bf1.yahoo.com (nm7.bullet.mail.bf1.yahoo.com [98.139.212.166]) by mx1.freebsd.org (Postfix) with ESMTP id EDA5C8FC15 for ; Sat, 4 Aug 2012 12:38:23 +0000 (UTC) Received: from [98.139.212.151] by nm7.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 12:38:16 -0000 Received: from [98.139.213.15] by tm8.bullet.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 12:38:16 -0000 Received: from [127.0.0.1] by smtp115.mail.bf1.yahoo.com with NNFMP; 04 Aug 2012 12:38:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1344083896; bh=0Sr3fCdjonLwrU7+Jfo1fALseoa6/33VskssKxF331M=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=Fbih9MZSkmGil1iM2uHx38MPtIfR94wO80ki9pGu+wUEmfCgXFgiv5CiHe3Tz2Lk3/w+XX+mIZmNZd5qLeHhE+LGfVVKVtD6rNJEd58a+8y7lJ94nt6IAUrKXL4Q/6nW2y/QNGfLoIj78VhftLCPa869eZTwUAKCLxGhtIGnOOI= X-Yahoo-Newman-Id: 874021.98931.bm@smtp115.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: j7i_8p8VM1nvbCmIGPk7jVzMzuJh1eCTP_xtcxFpBlbLG83 mxz96ffRHjFNJWwMXlS_ImasizX7d_4JgY4HryJu5x3nGAZYVSzzgg4YuxME P_lFhEEAEi0_.KFxi4AxenBx78l6vyDLNOydvWZXNjbYedaPeZp32SFU38EW emCIr7DPX7h8opgFHyyUxJWA7TwzZI4X.loZlkKDnJPEWi88RHG5T.JB9D7I YMPk_Gunle5HdroNPB9AqeFGryYmKGt4UcQFWd7C_wyoWE15ENLYOEtgDX4r eYCJPxldWXvvmJOvMIhxbi8MzmCAbymV05M69sCZdBCXtUTySCJ.w82srwAU 3iQn4O1u1m4t3W_xJbEYpY_yqtU.rJlDDuFwvT8L4Ksges_jir7S9HBleDyX mXIyEVlrcPlC3GiqOYxYE2ccrKwRW2xxgzCU8f3EtDJ3EsLTn1gx.uHSfFRJ n7IJaK4ty13aw.3d1o9A3KJDReA8E7u8oPsj1n10Hb.oAb.ihy8go0NBmC66 tfHIQNLNVRT6J.PA1TnHGvy0TDnA5KqVmWfbshAXYu9onSVsgxTEd3NEByI5 unq7VV7j5CU6yfM4d_U5bwHlXYfJYXiqKOYSTGOB6rYeTufkPgXjPwVJ3G20 37V4zYiAmTLEIrucS8B74fZ_yKpu9IX1BSwP4QZzTxBLHHUhVeECEMbOi3Bd 9i2MctVFCbU5y9UCa7GCNviJz11i6DjtKHQdr9X7GYxYJvpRGNWPCBHg4 X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-vb0-f54.google.com (moonlightakkiy@209.85.212.54 with plain) by smtp115.mail.bf1.yahoo.com with SMTP; 04 Aug 2012 05:38:16 -0700 PDT Received: by vbmv11 with SMTP id v11so134830vbm.13 for ; Sat, 04 Aug 2012 05:38:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.77.101 with SMTP id r5mr260170vdw.45.1344083896351; Sat, 04 Aug 2012 05:38:16 -0700 (PDT) Received: by 10.59.10.194 with HTTP; Sat, 4 Aug 2012 05:38:16 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Aug 2012 06:38:16 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Sat, 04 Aug 2012 12:38:25 -0000 On Sat, Aug 4, 2012 at 4:03 AM, Adrian Chadd wrote: > On 3 August 2012 22:11, PseudoCylon wrote: > >> I have added if_printf(), so we can track down the driver to blame. >> https://gitorious.org/ieee80211/net80211/commit/4dbc79c5f832b4cdffe9966dbbeba9b1b8fd24da > > Cool. > >> I also added functions to revert changes when overflow (maybe too much). >> https://gitorious.org/ieee80211/net80211/commit/dc1aa81ea1a9eeb7cf1a3a1c2b8a5a8cd85e687d >> >> >>> Does it fix some/all of the LORs for you? >>> >> >> So far, node/driver LOR in iv_key_delete() seems to be gone. > > This is a bit odd. I've not seen that, but you're testing with USB, right? > Yes with run(4). Most likely, it calls ieee80211_free_node() while driver lock is held. http://fxr.watson.org/fxr/source/dev/usb/wlan/if_run.c#L2705 > I just saw a LOR between a node lock and a tcpinp lock. i was doing > some iperf to an AR5416 802.11n AP running iperf locally. I've not > seen this before as I've not run a NIC in AP mode with local traffic > termination; I've only had APs do bridging. > It hasn't caused LOR with run(4), but if_start() is called with tcpinp lock is held when bridging or with multiple vaps in AP mode. That non-sleepable lock causes different problem with USB devices. http://fxr.watson.org/fxr/source/dev/usb/wlan/if_run.c#L3089 > Thanks for chasing this down. Let me know if you see the node/power or > node/scan LORs? Not so far, only scan/com LOR, the same one I mentioned before. AK From owner-freebsd-wireless@FreeBSD.ORG Sat Aug 4 21:12:28 2012 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 17D2D106564A for ; Sat, 4 Aug 2012 21:12:28 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id D58BA8FC0A for ; Sat, 4 Aug 2012 21:12:27 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so3542491pbb.13 for ; Sat, 04 Aug 2012 14:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=i9fBX6XIRiYPB7uVnVQEgvr/5S4bK6laEZwDtylzSUA=; b=aWvDRktPPOWZzSsZ+hI9da9aycpvqeNkPdBFeBCQlMMGEJhq9KRc8PBP4781N6M006 ie+4J/hN+cxeOrV7Vlup4cNE/zZd0/W5KA5PWkMO2zPXx0I09yU5qaiYuXdhA3DDb4jh 8RUCFOcV/ouGf/MRR00SIPGTg2TT/VOyrkYyzL4/9pDIFVOfWcVAuxLF0qVSA4FPsMSx oqZAHQ71yQ5TxFwSN9Ej0TNgI4MglXHXPVxE0QCHMvVCs660Gset6WFTTqn8emU2YWiD BKPIWL8i43LxVbXg9YUCXS4d0WxrSfNe+B+iTdxdFlvcHNCcVNRCzkd+IFOlJdR4hrBF kROw== MIME-Version: 1.0 Received: by 10.66.72.169 with SMTP id e9mr7691294pav.44.1344114741083; Sat, 04 Aug 2012 14:12:21 -0700 (PDT) Received: by 10.68.115.232 with HTTP; Sat, 4 Aug 2012 14:12:21 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Aug 2012 14:12:21 -0700 Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org, Kim Culhan Subject: Re: ath lor 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: Sat, 04 Aug 2012 21:12:28 -0000 On 4 August 2012 05:38, PseudoCylon wrote: >> This is a bit odd. I've not seen that, but you're testing with USB, right? >> > > Yes with run(4). Most likely, it calls ieee80211_free_node() while > driver lock is held. > http://fxr.watson.org/fxr/source/dev/usb/wlan/if_run.c#L2705 Ok. I really, really should set up a -CURRENT laptop today/tonight. I've found it ok to compile -HEAD net80211/wifi drivers on -9, but trying to compile -9 USB drivers and stack on -HEAD is proving to be rather annoying/challenging. I've acquired a couple of run NICs (that do 11n, too!) so I'll be able to test that out very soon. What's the path through the stack -> driver that leads to run_tx_free() being called with the driver lock held? And on the flip side, what's the path through the driver -> stack that's called with the driver lock held? The comlock shouldn't be held when TX/RX'ing packets up to the stack. >> I just saw a LOR between a node lock and a tcpinp lock. i was doing >> some iperf to an AR5416 802.11n AP running iperf locally. I've not >> seen this before as I've not run a NIC in AP mode with local traffic >> termination; I've only had APs do bridging. >> > > It hasn't caused LOR with run(4), but if_start() is called with tcpinp > lock is held when bridging or with multiple vaps in AP mode. That > non-sleepable lock causes different problem with USB devices. > http://fxr.watson.org/fxr/source/dev/usb/wlan/if_run.c#L3089 Odd. I saw that happen with no bridge interface configured. Hm. I'll gather some more data soon. I'm trying to fix some TX descriptor buffer issues that creep up if the air is congested and TX stalls for a bit. I've not seen it occur on 5GHz as the air wasn't ever really congested. >> Thanks for chasing this down. Let me know if you see the node/power or >> node/scan LORs? > > Not so far, only scan/com LOR, the same one I mentioned before. Hm, maybe we should start a wiki page with all of the net80211/wifi driver LORs. Do you have wiki.freebsd.org access? If not, create an account and tell me what username you choose. If you do, create a page under http://wiki.freebsd.org/WiFi and let's start documenting the LORs that we see. Adrian