]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ACS: Update ACS documentation
authorHari Naraayana Desikan Kannan <quic_hnaraaya@quicinc.com>
Tue, 30 Apr 2024 09:52:30 +0000 (15:22 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 12 Jul 2024 09:38:10 +0000 (12:38 +0300)
Update the documentation to reflect the ACS algorithm used in the code.
No functionality change.

Signed-off-by: Hari Naraayana Desikan Kannan <quic_hnaraaya@quicinc.com>
src/ap/acs.c

index 6003f0e3878471f3c34fea04283c3f5f12260d41..c38d3632b3c6000eddd0ed140db0cdd30f11534e 100644 (file)
@@ -76,7 +76,7 @@
  *
  * This corresponds to:
  * ---
- * (busy time - tx time) / (active time - tx time) * 2^(chan_nf + band_min_nf)
+ * (busy time - tx time) / (active time - tx time) * 2^(chan_nf - band_min_nf)
  * ---
  *
  * The coefficient of 2 reflects the way power in "far-field"
@@ -93,7 +93,7 @@
  * calculated easily.
  * ---
  * (busy time - tx time) / (active time - tx time) *
- *    2^(10^(chan_nf/10) + 10^(band_min_nf/10))
+ *    2^(10^(chan_nf/10) - 10^(band_min_nf/10))
  * ---
  *
  * However to account for cases where busy/rx time is 0 (channel load is then
  * channel with lower noise floor is preferred. The equation becomes:
  * ---
  * 10^(chan_nf/5) + (busy time - tx time) / (active time - tx time) *
- *    2^(10^(chan_nf/10) + 10^(band_min_nf/10))
+ *    2^(10^(chan_nf/10) - 10^(band_min_nf/10))
  * ---
  *
  * All this "interference factor" is purely subjective and only time