From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 4 05:41:47 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 274B91065670 for ; Sun, 4 Dec 2011 05:41:46 +0000 (UTC) (envelope-from hapvbk@yahoo.co.uk) Received: from nm9-vm0.bullet.mail.ukl.yahoo.com (nm9-vm0.bullet.mail.ukl.yahoo.com [217.146.183.240]) by mx1.freebsd.org (Postfix) with SMTP id 274978FC0A for ; Sun, 4 Dec 2011 05:41:45 +0000 (UTC) Received: from [217.146.183.213] by nm9.bullet.mail.ukl.yahoo.com with NNFMP; 04 Dec 2011 05:41:45 -0000 Received: from [77.238.184.79] by tm6.bullet.mail.ukl.yahoo.com with NNFMP; 04 Dec 2011 05:41:45 -0000 Received: from [127.0.0.1] by smtp148.mail.ukl.yahoo.com with NNFMP; 04 Dec 2011 05:41:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1322977305; bh=02kaXOfrPF13jw9DkVbjWcJVJvmJ0aYuR4EURvRndHE=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:From:To:References:In-Reply-To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:Importance:X-Mailer:X-MimeOLE; b=vHB8ryZrf0su9Ch//WL2DsHD9rMoiPg6n7tPhyoYDcxnM+1uqpmBvn1Qr7akA1vzYCbY1tbR1uRFrt7oOE547qRI/cgEUBidHyFDwzcnCUWF4LZO8xuIwcWgwj2N9UFqHWikGPhkEPrHWOMNbp+1POSC6MqIauv3fhU2QwBeWog= X-Yahoo-Newman-Id: 73310.30176.bm@smtp148.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: LSPoNK8VM1m9UVhTnjXFA8onrTgZc56xjsnv9aZsJEW2Bgy nJuvdzxAxPLTxFq5hPZLfk8v.BCc2vQmbz1.cb62mDgrrYptBl.zofme14Ll Z6dCcpt1QNfZgeeCTjJbhVSBhSYL7zzmWeu7Q5DaIXXGJ2BdWOUeVLacTY5e 6i4E8Tt_8WTZkoEzvzTnnBirPCpaZN5dhd7UrTzAVKTNv83jjxrzVUrTEKMf aS4LodycVDSiUbfILBSht.YRletUT9790Hkr9hN29ozmmZbNaVmbacvE53Os M51dcykY5ylgrLj1w2CCDzongTSGmIEa0uQUGVZFTqKmnr8rbVPWFRmtDyli dZSnht5kfBwphyNb3iYqel9JMRbxceDsemmFPwZR3lqN6 X-Yahoo-SMTP: xBpCc9iswBApASleyiIs9lcZMA-- Received: from PC (hapvbk@129.100.254.158 with login) by smtp148.mail.ukl.yahoo.com with SMTP; 03 Dec 2011 21:41:44 -0800 PST Message-ID: From: "Viet-Ha Pham" To: "Freebsd Wireless" References: <3d4d2d249836fafc6acd885693c02198@webmail.entel.upc.edu><4ECFCDAB.1080407@entel.upc.edu><4ED3B4D1.3020701@entel.upc.edu><4EDA4BBA.6010203@entel.upc.edu><4EDA609F.2080401@entel.upc.edu> In-Reply-To: Date: Sun, 4 Dec 2011 00:36:19 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 Subject: Rate index for 11 Mbps 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: Sun, 04 Dec 2011 05:41:47 -0000 Hi there, I am working with the rate adaptation algorithm and at the very beginning point of testing/programing. I have a concern with the rate index used in the HAL. I wonder if the rate order in the rate table for 802.11g is 1 - 2 - 5.5 - 6 - 9 - 11 - 12 .... or 1 - 2 - 5.5 - 11 - 6 -9 - 12 ... ? This order will change the value of rate index for 11 Mbps from 5 to 3. I read the source code (ar5212_phy.c) but I am still confused. Also there is a comment with the rate table for 802.11g: /* Venice TODO: roundUpRate() is broken when the rate table does not represent rates * in increasing order e.g. 5.5, 11, 6, 9. * An average rate of 6 Mbps will currently map to 11 Mbps. */ I am using FreeBSD 8.2, AR5212 chipset. Any help to clarify this will be appreciated. HAPV