From owner-freebsd-net@FreeBSD.ORG Tue Mar 23 12:03:36 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E72FE106574A for ; Tue, 23 Mar 2010 12:03:36 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id 688478FC20 for ; Tue, 23 Mar 2010 12:03:36 +0000 (UTC) Received: by fxm22 with SMTP id 22so1536481fxm.14 for ; Tue, 23 Mar 2010 05:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=VH/86eQX3JstI5jDwYwoZgKyHdXQn5f3KYhy99y6Bb0=; b=bp7GDutM793IN/dU0K9a7892zSp58oQP8LO6heuhuzRITo2rY4Kzb+tOZGm/+jsXEO J4qD84Uup8DQhCYYO/M9tQ3ht2lieUaRLy/Fhv07j1zBSfeR4AIpsjnF4MSe5OHFmKBA U3tk63Gym3JX/sC9gFiDWXGUK1QXyxG496oiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=LOkot3d1QRAYbu3h6oM1IRVkD72FkyBHlKJ1ISCDgNZ6X1TGDoDiqFgSoi0U4Dvqj2 fW87/yGB1ZFjdYmvuAmZS9To+xLwxthOucQfTGSUVKX07Vn1FoA0WstS2dkPu+Ur2m5x fSE92C4+odeFVxnwlZsMdQ3QHszG240iuP8lE= Received: by 10.204.138.81 with SMTP id z17mr833706bkt.49.1269345813890; Tue, 23 Mar 2010 05:03:33 -0700 (PDT) Received: from [10.0.10.2] (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by mx.google.com with ESMTPS id s17sm25473495bkd.4.2010.03.23.05.03.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Mar 2010 05:03:32 -0700 (PDT) Sender: Rui Paulo Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <2d3b7e441003130817y1210508fycb3cb22a9a7198d1@mail.gmail.com> Date: Tue, 23 Mar 2010 12:03:30 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <2d3b7e441003042348h2150de3eub5a7af5248b5e947@mail.gmail.com> <4B92F057.9080508@errno.com> <2d3b7e441003070004r74646cdci268a5101056c50e2@mail.gmail.com> <2d3b7e441003102332l1cc9b9ddh1e62fce61129248@mail.gmail.com> <6A317237-60A2-440A-9DBC-511545C34B36@FreeBSD.org> <2d3b7e441003130817y1210508fycb3cb22a9a7198d1@mail.gmail.com> To: Alexander Egorenkov X-Mailer: Apple Mail (2.1077) Cc: freebsd-net@freebsd.org Subject: Re: Setting HT capabilities in net80211 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2010 12:03:37 -0000 On 13 Mar 2010, at 16:17, Alexander Egorenkov wrote: > I have finally patched net80211 on my system and added HT extended = capabilities support. >=20 > Here are the patches. >=20 > I added a new variable to ieee80211com struct. > It seems that only the lowest 16 bit of ic_htcaps are used, an = alternative to a new variable would be to use the highest 16 bit of = ic_htcaps. >=20 > Here is a code snippet from my driver which sets ic_htextcaps: >=20 > ic->ic_htextcaps =3D IEEE80211_HTCAP_MCSFBACK_UNSOL | > IEEE80211_HTCAP_HTC | > IEEE80211_HTCAP_RDR; >=20 > I also captured an association process with 802.11n AP and it seems = the capabilities were set right. Thanks, I've committed this. -- Rui Paulo