linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: Matt Smith <smithm@qca.qualcomm.com>,
	Sundar Sankaran <sunsanka@qca.qualcomm.com>,
	Helmut Schaa <helmut.schaa@googlemail.com>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	hostap@lists.shmoo.com
Subject: Re: Initial automatic channel selection implementation
Date: Fri, 03 Jun 2011 01:49:37 +0200	[thread overview]
Message-ID: <4DE82191.3010205@openwrt.org> (raw)
In-Reply-To: <BANLkTikhihyTqg+yR8MnR1cp5wJ35sybNA@mail.gmail.com>

On 2011-06-03 12:36 AM, Luis R. Rodriguez wrote:
> On Thu, May 26, 2011 at 5:59 PM, Luis R. Rodriguez<mcgrof@gmail.com>  wrote:
>>    What I'd like to do is to affect the ratio to nullify it if the noise
>>    is very low on the channel. Given that noise is logarithmic we'd have
>>    to use a logarithmic function as well. Working on that now.
>
> OK I've figured a way to plug the noise into this, I designed the
> following function we can use as a factor:
>
> 1.1^(x+110)
>
> Wolfram|Alpha boring details of this function:
>
> http://bit.ly/mJNXE9
>
> x,y results of different noise values in dBm, using apcalc:
>
> mcgrof@tux ~ $ calc
> C-style arbitrary precision calculator (version 2.12.3.3)
> Calc is open software. For license details type:  help copyright
> [Type "exit" to exit, or "help" for help.]
>
> ; define f(x) = 1.1^(x+110)
> f(x) defined
>
> ; f(-130)
> 	~0.14864362802414368640
> ; f(-120)
> 	~0.38554328942953174736
> ; f(-119)
> 	~0.42409761837248492210
> ; f(-118)
> 	~0.46650738020973341431
> ; f(-117)
> 	~0.51315811823070675574
> ; f(-116)
> 	~0.56447393005377743132
> ; f(-115)
> 	~0.62092132305915517445
> ; f(-114)
> 	~0.68301345536507069189
> ; f(-113)
> 	~0.75131480090157776108
> ; f(-112)
> 	~0.82644628099173553719
> ; f(-111)
> 	~0.90909090909090909091
> ; f(-110)
> 	1
> ; f(-109)
> 	1.1
> ; f(-108)
> 	1.21
> ; f(-107)
> 	1.331
>
> So then, we'd use a frequency for initiating beaconing (AP, Mesh, P2P)
> which uses the lowest value from the following computation:
>
> (busy time - tx time) / (active time - tx time) * 1.1^(noise + 110)
>
> The 1.1 factor can be modified more accurately to represent the
> exponential factor of how noise should affect interference decisions,
> the 110 value here can be modified for any other arbitrary value we
> find as representative of a regular noise value from a simple AP on
> the frequency we are observing, my assumption here was -110 dBm.
-110 dBm is not a real noise value. It's an unrealistic, ath9k-specific 
value. I have a patch that changes ath9k to make noise and signal 
strength values more realistic, and I'll submit it soon, as soon as I've 
made it a bit more precise.

- Felix

  reply	other threads:[~2011-06-02 23:49 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-24 12:48 Initial automatic channel selection implementation Luis R. Rodriguez
2011-05-24 14:27 ` Helmut Schaa
2011-05-24 18:07   ` Eduard GV
2011-05-24 21:21     ` Pavel Roskin
2011-05-24 22:54   ` Luis R. Rodriguez
2011-05-25 12:19     ` Helmut Schaa
2011-05-25 14:37       ` Luis R. Rodriguez
2011-05-25 14:45         ` Helmut Schaa
2011-05-25 15:01           ` Luis R. Rodriguez
2011-05-25 19:20             ` Felix Fietkau
2011-05-25 19:24               ` Luis R. Rodriguez
2011-05-25 19:27                 ` Luis R. Rodriguez
2011-05-25 20:01                   ` Luis R. Rodriguez
2011-05-26 10:45                   ` Felix Fietkau
2011-05-26 23:45                     ` Luis R. Rodriguez
2011-05-27  0:23                       ` Felix Fietkau
2011-05-27  0:59                         ` Luis R. Rodriguez
2011-06-02 22:36                           ` Luis R. Rodriguez
2011-06-02 23:49                             ` Felix Fietkau [this message]
2011-06-03  5:23                               ` Luis R. Rodriguez
2011-05-26  7:37         ` Jouni Malinen
2011-05-24 15:28 ` Pavel Roskin
2011-05-24 16:44   ` Cristian Ionescu-Idbohrn
2011-05-24 17:04     ` Pavel Roskin
2011-05-25  4:24       ` Helmut Schaa
2011-05-25  4:39         ` Adrian Chadd
2011-05-25  8:08         ` Cristian Ionescu-Idbohrn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DE82191.3010205@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=helmut.schaa@googlemail.com \
    --cc=hostap@lists.shmoo.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    --cc=smithm@qca.qualcomm.com \
    --cc=sunsanka@qca.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).