From owner-freebsd-wireless@FreeBSD.ORG Tue Aug 13 03:24:17 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5BB3CFCB for ; Tue, 13 Aug 2013 03:24:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E3FE72258 for ; Tue, 13 Aug 2013 03:24:16 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id f14so2482060wiw.0 for ; Mon, 12 Aug 2013 20:24:15 -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:message-id:subject :from:to:cc:content-type; bh=/2+LQEf4U0sf4CscPuRETpDbWjTrkZqnJK1ERReWZKs=; b=n44mXvtuaFhtxRTxb0Y5zAjHyJz/AmQFfjCSrnz7i2usSCISoZmW4BSSSYv8+DOHxT sY6vyc4neW0d02rvI45GXlk0z4iK1bFWvS5C2tx6IrQof4rXO34PjXIjVD3S+ZFdnn51 HUO4+S4N0G+NNlUafOPaI7A6WwD/TqxruSOBI9OP4BELjO9azk75TtILPiJRMVoDHCDM 3+xLrTAGw5XlYYfk1aOducqlaaAo0gIix9vnsRET3k6LT1hEHEDqc0qipMitg0+DfzFp FnxRKnOL3wa2wjn9ehCKjseW1wqF5EoPbsGFU9YA9BTr737G1JUQsZeuSkGVfltv5/sn dZfw== MIME-Version: 1.0 X-Received: by 10.180.160.165 with SMTP id xl5mr274772wib.46.1376364255211; Mon, 12 Aug 2013 20:24:15 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Mon, 12 Aug 2013 20:24:15 -0700 (PDT) In-Reply-To: <52099CF4.7050101@meroh.net> References: <201308111650.r7BGo1Qt048071@freefall.freebsd.org> <52099CF4.7050101@meroh.net> Date: Mon, 12 Aug 2013 20:24:15 -0700 X-Google-Sender-Auth: YSwGcgZf71lnjSLGWI7-JvyAvbw Message-ID: Subject: Re: kern/181100: [bwi] Turning up bwi0 crashes / deadlocks the kernel From: Adrian Chadd To: Julio Merino Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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, 13 Aug 2013 03:24:17 -0000 Oh, god damnit! On 12 August 2013 19:41, Julio Merino wrote: > On 2013-08-11 23:19 , Adrian Chadd wrote: >> Try this patch in sys/dev/bwi/ : > > This is what I got: > > bwi_mac_set_ackrates: i=0 (of 12); rs->rs_rates = 130 Oh hm, the problem is that rs_rates[] shouldn't be directly used anymore. The rate table value has the basic rate bit set, so it's rate == 1mbit, it's stored as 2*throughput; and the basic rate (128) is set, so: 128 + 2*1 == 130 Sigh. Lemme go through my patch archive to see where the code went. I thought I committed it when I threw the 11n code into ieee80211_phy.c . Grr! Thanks! -adrian