From: Rakesh Kumar Date: Tue, 20 Oct 2009 00:58:41 -0500 Subject: [ath9k-devel] ath9k rate control - rc.c In-Reply-To: <20091020055121.GB4602@vasanth-laptop> References: <20091014222856.GB19352@tux> <20091020055121.GB4602@vasanth-laptop> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Tue, Oct 20, 2009 at 12:51 AM, Vasanthakumar Thiagarajan < vasanth@atheros.com> wrote: > > RSSI is never used to determine the tx rate. The code segment which > maintains rssi is removed in the latest rc kernel (2.6.32-rc). > > Vasanth > Hey Vasanth, Yes, you're right, my bad. I was using an old version of code from 2.6.30-rc4 which had those rssi calculations being done which apparently were not contributing to the rate decision. Anyway, I am thinking about writing a new rate control algorithm which takes into account the fact that ath9k is a MIMO card but I am having trouble identifying what information is available to the driver programmer? Is there a comprehensive document or something which explains it, if so is it available in public domain? I did stumble upon something here in mac.h: struct ath_tx_status { u32 ts_tstamp; u16 ts_seqnum; u8 ts_status; u8 ts_ratecode; u8 ts_rateindex; * int8_t ts_rssi;* u8 ts_shortretry; u8 ts_longretry; u8 ts_virtcol; u8 ts_antenna; u8 ts_flags; * int8_t ts_rssi_ctl0;* * int8_t ts_rssi_ctl1;* * int8_t ts_rssi_ctl2;* * int8_t ts_rssi_ext0;* * int8_t ts_rssi_ext1;* * int8_t ts_rssi_ext2;* u8 pad[3]; u32 ba_low; u32 ba_high; u32 evm0; u32 evm1; u32 evm2; }; I am just curious what these variables rssi_ctl0,ctl1,ctl2,ext0,ext1,ext2 contain? Also the rssi measurement ts_rssi, what does it really represent on a 2 link MIMO card? How is this number calculated and calibrated? -- Rakesh Kumar, Graduate Student, Electrical and Computer Engineering Dept, University of Illinois, Urbana-Champaign. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20091020/9b5b5b39/attachment.htm