All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Lamparter <chunkeey@googlemail.com>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: MingAnn Ng <devil_eddie01@hotmail.com>,
	wireless testing <linux-wireless@vger.kernel.org>
Subject: Re: problem on ACS
Date: Tue, 26 Jul 2011 20:31:10 +0200	[thread overview]
Message-ID: <201107262031.11394.chunkeey@googlemail.com> (raw)
In-Reply-To: <CAB=NE6Wcn3-GwqPJQDXOT0JCNnZgCs1E7HecWrXpc8LS+XRyDA@mail.gmail.com>

On Tuesday, July 26, 2011 08:21:21 PM Luis R. Rodriguez wrote:
> On Mon, Jul 25, 2011 at 7:46 PM, MingAnn Ng <devil_eddie01@hotmail.com> wrote:
> > Hi Luis,
> >
> > this is what I'd got after applying logarithm identities patch that you
> > provide:
> >
> > 2412 MHz: -175.357726
> > 2417 MHz: -inf
> > 2422 MHz: -inf
> > 2427 MHz: -inf
> > 2432 MHz: -inf
> > 2437 MHz: -inf
> > 2442 MHz: -inf
> > 2447 MHz: -inf
> > 2452 MHz: -inf
> > 2457 MHz: -inf
> > 2462 MHz: -inf
> > 2467 MHz: -inf
> > 2472 MHz: -inf
> > 5180 MHz: -187.707255
> > 5200 MHz: -186.721397
> > 5220 MHz: -186.067982
> > 5240 MHz: -186.584516
> > 5260 MHz: -186.872511
> > 5280 MHz: -184.567340
> > 5300 MHz: -185.224387
> > 5320 MHz: -185.794143
> > 5500 MHz: -189.525424
> > 5520 MHz: -189.417120
> > 5540 MHz: -189.705191
> > 5560 MHz: -189.639734
> > 5580 MHz: -190.396324
> > 5600 MHz: -189.503429
> > 5620 MHz: -189.685961
> > 5640 MHz: -189.421184
> > 5660 MHz: -189.814113
> > 5680 MHz: -190.737770
> > 5700 MHz: -190.546318
> > Ideal freq: 2417 MHz
> 
> Hm, as for the new values -- they look very different from what you
> had gotten before so the math went wrong somewhere.. gotta revise that
> a bit more carefully.

well, take a close look at the patch.

> -       factor *= (base_to_power(2, survey->noise - min_noise));
> +		 factor += survey->noise + min_noise;

In the original version, you substracted the min band noise from the
channel. Whereas now you add them together.
 
> > The result is almost the same as the version before applying the patch. the
> > -inf still fall on those channel. and those channel are indeed very busy in
> > my lab. Is there any other solution which I can try to get a better result
> > out of it?
> >
> > I haven't try on the latest patch for hostapd which you uploaded. Is the acs
> > application work along with hostapd to calculate the interference level?
> 
> No, the ACS implementation on hostapd simply uses the internal code
> from hostapd so its much easier to write, the acs.git code is
> completely independent so adding anything there is just a bit harder,
> for example adding a scan prior to the ACS work. Please do try the
> hostapd patches to see if you get a good channel, and enable debugging
> to see the values you get. We do want to avoid the -inf stuff
> completely. Getting that means our data type is not sufficient for our
> data. The difficult aspect of this code is that the values range from
> fractional values to extremely large values..
well, if you do a [active] scan. channel_time_tx + channel_time_busy will
definetly not be "zero". Maybe we can get away by adding some threshold
cuts-offs. At least this would fix the -inf.

+       factor = log2(max(1, survey->channel_time_busy - survey->channel_time_tx));
+       factor -= log2(max(1, survey->channel_time - survey->channel_time_tx));

[However, we could also ignore channel surveys with result in a -inf]

Regards,
	Chr

  reply	other threads:[~2011-07-26 18:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <COL114-W9CEFD4E7F3803005186F98A4F0@phx.gbl>
     [not found] ` <COL114-W59BDCD7915EEDAF4BEE71A8A4E0@phx.gbl>
2011-07-25 20:32   ` problem on ACS Luis R. Rodriguez
2011-07-25 23:35     ` Luis R. Rodriguez
2011-07-26  0:13       ` Christian Lamparter
2011-07-26  2:21         ` Luis R. Rodriguez
2011-07-26  2:42           ` Luis R. Rodriguez
     [not found]           ` <COL114-W76260EA23039CA8000DB88A320@phx.gbl>
2011-07-26 18:21             ` Luis R. Rodriguez
2011-07-26 18:31               ` Christian Lamparter [this message]
2011-07-26 20:19                 ` Luis R. Rodriguez
     [not found]                   ` <COL114-W2204F3FA55EF4C0D20D0C58A350@phx.gbl>
2011-07-27 20:18                     ` Luis R. Rodriguez
2011-07-27 20:55                       ` Swaminathan Vasanth
2011-07-27 21:00                         ` Luis R. Rodriguez
     [not found]                       ` <COL114-W50D316103F96D9ED1310098A340@phx.gbl>
     [not found]                         ` <COL114-W54CACDD9B23D044E0916368A370@phx.gbl>
2011-07-29 20:50                           ` Luis R. Rodriguez
2011-07-30 11:17                             ` Christian Lamparter
2011-07-30 11:29                               ` Luis R. Rodriguez
2011-07-30 15:54                                 ` Christian Lamparter
2011-07-30 18:24                                   ` Luis R. Rodriguez
     [not found]                                     ` <COL114-W51F297F32C58B7D93C26828A380@phx.gbl>
2011-08-01 18:00                                       ` Luis R. Rodriguez

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=201107262031.11394.chunkeey@googlemail.com \
    --to=chunkeey@googlemail.com \
    --cc=devil_eddie01@hotmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.