From owner-freebsd-net@FreeBSD.ORG Tue Mar 23 13:23:54 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 B3031106564A; Tue, 23 Mar 2010 13:23:54 +0000 (UTC) (envelope-from egorenar@googlemail.com) Received: from mail-ew0-f223.google.com (mail-ew0-f223.google.com [209.85.219.223]) by mx1.freebsd.org (Postfix) with ESMTP id 1892C8FC0C; Tue, 23 Mar 2010 13:23:53 +0000 (UTC) Received: by ewy23 with SMTP id 23so1281781ewy.34 for ; Tue, 23 Mar 2010 06:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=+la/xUcwUHtA73ZpWLzGiM6m0pA8udVSzp6UvYPgBhc=; b=Mf4DCwRE+sJLuOoAXJsT8T+D52haBtb+K1vXNedXVxS0uP/J3K7VPrTuVtprgbtAK+ 9AsKhzp5UXoi7qo01ISBXL2FagxhWRYsOlSQdj86RYmR4bY/fAZbY98c7ByRIK3SfbZM /q73w2TNwE6Fvzy0OAcrPJpOuNSovfXFCLsY4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=iPptoIU5C5s9Uzay2yrSEU9yTuMLQ9021hflSkxGkPjCKS/J5jCidG0kxbqvOKZAeV 9SxSVYm/6Gr6w/Zw3zs7aKg01ggpy7KneMEz4T9m71tFjHd375HWLlC64rICayyTdeIE mXsksF0DPykC91bvKmc5ocIbMBuHiD4pJmrbM= MIME-Version: 1.0 Received: by 10.213.80.10 with SMTP id r10mr4380205ebk.56.1269350631718; Tue, 23 Mar 2010 06:23:51 -0700 (PDT) In-Reply-To: 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> Date: Tue, 23 Mar 2010 14:23:47 +0100 Message-ID: <2d3b7e441003230623t2423bcw665ce6df554f63f9@mail.gmail.com> From: Alexander Egorenkov To: Rui Paulo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 13:23:54 -0000 We also need to set/update/delete these capabilities for nodes, e.g. after a beacon or a (re)association frame is received from a node. I mean the field ni_flags in struct ieee80211_node. And ifconfig support would be nice to have in order to be able to enable/disable these features dynamically. On Tue, Mar 23, 2010 at 1:03 PM, Rui Paulo wrote: > > On 13 Mar 2010, at 16:17, Alexander Egorenkov wrote: > > > I have finally patched net80211 on my system and added HT extended > capabilities support. > > > > Here are the patches. > > > > 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. > > > > Here is a code snippet from my driver which sets ic_htextcaps: > > > > ic->ic_htextcaps = IEEE80211_HTCAP_MCSFBACK_UNSOL | > > IEEE80211_HTCAP_HTC | > > IEEE80211_HTCAP_RDR; > > > > 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 > >