From owner-freebsd-net@FreeBSD.ORG Sun Mar 7 08:04:04 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 33CBD106566B for ; Sun, 7 Mar 2010 08:04:04 +0000 (UTC) (envelope-from egorenar@googlemail.com) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by mx1.freebsd.org (Postfix) with ESMTP id BDAD98FC1F for ; Sun, 7 Mar 2010 08:04:03 +0000 (UTC) Received: by ewy27 with SMTP id 27so2213398ewy.34 for ; Sun, 07 Mar 2010 00:04:02 -0800 (PST) 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=6ZH0Fgs7pU3KK+vhIbAdKu6lWMZh0cZIreIVfyCBBDg=; b=o4uoLyZ4o2R5tRTS07r7qP6L8i9B3UYny5ajAhtSGlrBygbgKhxv16SGw1ATKL646C /f2LRdpFTXx4dctg0H9gQOMNenAd2pvOVqjdofnOvMOdgOT9o0+mZau8Z6kEwfQCMg6f qgU5pX92bnGbvSEfgu+9Ers3KdezgmyU3XF50= 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=nv3XxwAJsh5xA5GVWZogmSIaLvqtz9xAJKG1/xqaAOLJhcp3+mYpZ4P5P+tfE9ODHR wRCV4rNygK50LPp5+xbZ2FKWmh3NQOaQTxbqiHLcMbGIfd0ZDvSnj5Iu7cxyC6Q574LY fkEeVEbmK/uFBeXGIY8c6XNJuOwAwPIWL7Nug= MIME-Version: 1.0 Received: by 10.213.2.75 with SMTP id 11mr2150109ebi.14.1267949042490; Sun, 07 Mar 2010 00:04:02 -0800 (PST) In-Reply-To: <4B92F057.9080508@errno.com> References: <2d3b7e441003042348h2150de3eub5a7af5248b5e947@mail.gmail.com> <4B92F057.9080508@errno.com> Date: Sun, 7 Mar 2010 09:04:02 +0100 Message-ID: <2d3b7e441003070004r74646cdci268a5101056c50e2@mail.gmail.com> From: Alexander Egorenkov To: Sam Leffler 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: Sun, 07 Mar 2010 08:04:04 -0000 OK, here is an example. There is no way to set MCS feedback capability in the filed hc_extcap of the struct ieee80211_ie_htcap because the function ieee80211_add_htcap_body always sets it to 0. And my Ralink device supports MCS feedback according to Linux device driver code. The same problem is with HTC+ and RDR capabilities. On Sun, Mar 7, 2010 at 1:16 AM, Sam Leffler wrote: > Alexander Egorenkov wrote: > >> Currently there is no possibility to set some HT capabilities in e.g. an >> association request frame. >> The function ieee80211_add_htcap_body in ieee80211_ht.c simply sets some >> HT >> capabilities to zero. >> For example, there is no way to set HT extended capabilities which i need >> for my 802.11n device driver. >> I could of course patch the function on my system and recompile the kernel >> but it would be really nice >> to have official support of extended HT capabilities (and all other HT >> caps) >> in net80211. The header file >> ieee80211.h defines the necessary HT capability constants but they are not >> used in net80211 to >> set extended HT capabilities in association request frames. >> > > Can you be more specific? The current code dynamically sets those > capabilities that can be changed and the others are fixed according to the > capabilities of the hw/driver. Of course patches are always welcome; what's > there reflects what was needed for the projects I worked on. > > Sam >