From owner-freebsd-mobile Wed Oct 16 9:57:28 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3101A37B401; Wed, 16 Oct 2002 09:57:27 -0700 (PDT) Received: from amsterdam.lcs.mit.edu (amsterdam.lcs.mit.edu [18.26.4.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6130043EB3; Wed, 16 Oct 2002 09:57:26 -0700 (PDT) (envelope-from decouto@lcs.mit.edu) Received: from lcs.mit.edu (bermuda.lcs.mit.edu [18.26.4.25]) by amsterdam.lcs.mit.edu (8.11.6/8.11.6) with ESMTP id g9GGvLW31579; Wed, 16 Oct 2002 12:57:21 -0400 (EDT) (envelope-from decouto@lcs.mit.edu) Message-ID: <3DAD9A71.2070203@lcs.mit.edu> Date: Wed, 16 Oct 2002 12:57:21 -0400 From: "Douglas S. J. De Couto" Reply-To: decouto@lcs.mit.edu Organization: MIT LCS User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.9) Gecko/20020318 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Doug Ambrisko Cc: Marco Molteni , freebsd-mobile@freebsd.org, ambrisko@freebsd.org Subject: Re: aironet signal/noise stats References: <200210161556.g9GFu9O09339@ambrisko.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Doug Ambrisko wrote: > Marco Molteni writes: > | On Tue, 15 Oct 2002, "Douglas S. J. De Couto" wrote: > | > | > Does anyone know what the units are for the an driver's noise level > | > information? Is it, for example, a dBm value that can be compared to > | > the signal value to get a signal-to-noise ratio? > | > | does this work for you? > | > | + u_int8_t an_noise_prev_sec_pc; /* 0x7A */ > | + u_int8_t an_noise_prev_sec_db; /* 0x7B */ > | + u_int8_t an_avg_noise_prev_min_pc; /* 0x7C */ > | + u_int8_t an_avg_noise_prev_min_db; /* 0x7D */ > | + u_int8_t an_max_noise_prev_min_pc; /* 0x7E */ > | + u_int8_t an_max_noise_prev_min_db; /* 0x7F */ > > Thanks for decoded these. I think now I got all my units figured out > for the in kernel cache and the summary. They finally make sense > and agree. Now I just have to clean it up and I should be able to commit > my latest changes. > > Doug A. Thanks Marco, I think this does work for me. Do you have documentation about these values, or are you making an educated guess? I have an old (pre-cisco) aironet programming manual that doesn't mention any of these values. I guess I have to ask the question, what are the *_pc values in relation to? i.e. percentage of what? Similar question for the *_db values... or are they really dBm (dB relative to 1mW)??? on a related note, you might also be able to make guesses about the link by looking at what speed the sender chose to send the packet at. i.e. look in the an_rx_rate field of an_rxframe header. Of course, this assumes the sender is doing something smart when it chosses transmission rates, like use slower rates from links with worse SNR. d -- Douglas S. J. De Couto decouto@lcs.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message