[PATCH 0/3] hostapd: introduce Automatic Channel Selection (ACS)

Andreas Hartmann andihartmann
Sat Aug 24 05:30:22 PDT 2013


Michal Kazior wrote:
> Hi,
> 
> This is an attempt at ressurecting ACS effort for hostapd.
> 
> This is based on the work done by Luis R. Rodriguez
> <lrodriguez at qca.qualcomm.com>.

I tested it, too with ath9k (AR9300). It's working pretty fine for me
(at a first glance).

I'm using linux 3.4.47 with backports-20130617 in a VM with passed
through pcie wlan card.

1377346724.236305: wlan1: Event SURVEY (56) received
1377346724.236315: ACS: Trying survey-based ACS
1377346724.236324: ACS: Survey analysis for channel 1 (2412 MHz)
1377346724.236394: ACS:  1: min_nf=-95 interference_factor=0.0252101 nf=-95 time=119 busy=3 rx=0
1377346724.236436: ACS:  2: min_nf=-95 interference_factor=0.0209205 nf=-95 time=239 busy=5 rx=0
1377346724.236448: ACS:  3: min_nf=-95 interference_factor=0.0194986 nf=-95 time=359 busy=7 rx=0
1377346724.236458: ACS:  4: min_nf=-95 interference_factor=0.0187891 nf=-95 time=479 busy=9 rx=0
1377346724.236469: ACS:  5: min_nf=-95 interference_factor=0.0200334 nf=-95 time=599 busy=12 rx=0
1377346724.236479: ACS:  * interference factor average: 0.0208903
1377346724.236487: ACS: Survey analysis for channel 2 (2417 MHz)
1377346724.236495: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236507: ACS:  2: min_nf=-95 interference_factor=0.00909091 nf=-95 time=110 busy=1 rx=1
1377346724.236518: ACS:  3: min_nf=-95 interference_factor=0.0181818 nf=-95 time=110 busy=2 rx=1
1377346724.236528: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236539: ACS:  5: min_nf=-95 interference_factor=0.00909091 nf=-95 time=110 busy=1 rx=1
1377346724.236555: ACS:  * interference factor average: 0.00727273
1377346724.236564: ACS: Survey analysis for channel 3 (2422 MHz)
1377346724.236572: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236582: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236592: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236602: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236612: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236622: ACS:  * interference factor average: 1e-19
1377346724.236630: ACS: Survey analysis for channel 4 (2427 MHz)
1377346724.236638: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236647: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236657: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236668: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236678: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236687: ACS:  * interference factor average: 1e-19
1377346724.236695: ACS: Survey analysis for channel 5 (2432 MHz)
1377346724.236702: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236712: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236722: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236759: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236769: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236779: ACS:  * interference factor average: 1e-19
1377346724.236787: ACS: Survey analysis for channel 6 (2437 MHz)
1377346724.236794: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236804: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236814: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236824: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236834: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236843: ACS:  * interference factor average: 1e-19
1377346724.236851: ACS: Survey analysis for channel 7 (2442 MHz)
1377346724.236859: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236879: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236890: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236900: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236910: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236919: ACS:  * interference factor average: 1e-19
1377346724.236927: ACS: Survey analysis for channel 8 (2447 MHz)
1377346724.236935: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236945: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236955: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236965: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236975: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.236984: ACS:  * interference factor average: 1e-19
1377346724.236992: ACS: Survey analysis for channel 9 (2452 MHz)
1377346724.237000: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237010: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237020: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237030: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237040: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237056: ACS:  * interference factor average: 1e-19
1377346724.237064: ACS: Survey analysis for channel 10 (2457 MHz)
1377346724.237072: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237083: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237093: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237107: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237120: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237131: ACS:  * interference factor average: 1e-19
1377346724.237142: ACS: Survey analysis for channel 11 (2462 MHz)
1377346724.237152: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237166: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237180: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237193: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237207: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237219: ACS:  * interference factor average: 1e-19
1377346724.237230: ACS: Survey analysis for channel 12 (2467 MHz)
1377346724.237240: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237254: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237265: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237275: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237285: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237295: ACS:  * interference factor average: 1e-19
1377346724.237303: ACS: Survey analysis for channel 13 (2472 MHz)
1377346724.237310: ACS:  1: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237320: ACS:  2: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237331: ACS:  3: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237340: ACS:  4: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237350: ACS:  5: min_nf=-95 interference_factor=1e-19 nf=-95 time=110 busy=0 rx=0
1377346724.237363: ACS:  * interference factor average: 1e-19
1377346724.237371: ACS: Survey analysis for selected bandwidth 40MHz
1377346724.237379: ACS:  * channel 1: total interference = 0.0281631
1377346724.237389: ACS:  * channel 2: total interference = 0.0281631
1377346724.237398: ACS:  * channel 3: total interference = 0.0281631
1377346724.237407: ACS:  * channel 4: total interference = 0.00727273
1377346724.237416: ACS:  * channel 5: total interference = 1e-18
1377346724.237425: ACS:  * channel 6: total interference = 1e-18
1377346724.237434: ACS:  * channel 7: total interference = 1e-18
1377346724.237443: ACS:  * channel 8: total interference = 9e-19
1377346724.237452: ACS:  * channel 9: total interference = 8e-19
1377346724.237461: ACS: Channel 10: not enough bandwidth
1377346724.237467: ACS: Channel 11: not enough bandwidth
1377346724.237474: ACS: Channel 12: not enough bandwidth
1377346724.237481: ACS: Channel 13: not enough bandwidth
1377346724.237487: ACS: Ideal channel is 9 (2452 MHz) with total interference factor of 8e-19



Good job and thanks!
Regards,
Andreas



More information about the Hostap mailing list