From owner-freebsd-wireless@FreeBSD.ORG Thu Dec 1 02:44:33 2011 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 283F81065672; Thu, 1 Dec 2011 02:44:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id BF2588FC08; Thu, 1 Dec 2011 02:44:32 +0000 (UTC) Received: by vcbfk1 with SMTP id fk1so1634265vcb.13 for ; Wed, 30 Nov 2011 18:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=1U9SVGbaUzbhHWvggeK/XJRSXpbyq05i/eSgOnlY9MI=; b=IUMeTTFgnFzYtsJ2xlIWTd4zK/KjpQBRgr/ZuK5GJqj/dTWYmyBM5q1ZmPtia7IYin oUNAc/ay42lMJjge/Tu355nAvWBVY9zJKBczIIScWAuJQOIzUZVTofTSeOOGYX06pRgV CpaW8bL75760PeC6RkjhUcs9DMrUeZvltEs04= MIME-Version: 1.0 Received: by 10.220.186.199 with SMTP id ct7mr878189vcb.114.1322707472109; Wed, 30 Nov 2011 18:44:32 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.186.74 with HTTP; Wed, 30 Nov 2011 18:44:32 -0800 (PST) In-Reply-To: References: <20111130224422.GA36424@freebsd.org> <20111201000243.GB44877@freebsd.org> <20111201001158.GA48051@freebsd.org> <20111201003938.GA52503@freebsd.org> <20111201010057.GA54970@freebsd.org> Date: Thu, 1 Dec 2011 10:44:32 +0800 X-Google-Sender-Auth: xR9bvCw4GzqSORt7Ze36pEppDB4 Message-ID: From: Adrian Chadd To: Igor Mozolevsky Content-Type: text/plain; charset=ISO-8859-1 Cc: Alexander Best , freebsd-wireless@freebsd.org Subject: Re: comparing floating points via "==" or "!=" 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, 01 Dec 2011 02:44:33 -0000 The macros are just to be "clearer" about the TX rate. The values themselves aren't used - they . The speed/MCS is actually taken from the HAL rate tables, rather than this. This just assigns rate table indexes to the tx schedule table. I'll take patches to tidy it up by just changing them to macro definitions, so the tx schedule can be edited without having to keep looking at the rate index table. Since all of that is open source now, it's doable - it's just very tedious. :) (Sorry, I'm still relocating; my time for anything but email is very limited.) Adrian