#19081: acs not working for mtk7620n
-------------------------+----------------------------------
 Reporter:  anonymous    |      Owner:  developers
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  Chaos Calmer (trunk)
Component:  kernel       |    Version:  Trunk
 Keywords:  acs mtk7620  |
-------------------------+----------------------------------
 Hey:
      i used compat-wireless-2014-11-04.tar.bz2 and
 hostapd-2014-10-25.tar.bz2 inclued acs.
      my platform is MTK7620n.
      Fixed channel is worked fine,but it failed the auto channel
 selection.
      First,hostapd reported "ACS: Survey is missing noise floor". I
 checked the function(rt2800_get_survey) from the rt2800 wireless driver
 code. Then I added code below
     survey->filled |= SURVEY_INFO_NOISE_DBM;
     survey->noise = -95;.
   But it still failed to work.It alaways selected  channel 1. Below is the
 debug output:
 /usr/sbin/hostapd -P /var/run/wifi-phy0.pid /var/run/hostapd-phy0.
 conf -dd
 Configuration file: /var/run/hostapd-phy0.conf
 [ 2710.620000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
 [ 2710.620000] device wlan0 entered promiscuous mode
 wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
 ACS: Automatic channel selection started, this may take a bit
 ACS: Scanning 1 / 5
 wlan0: interface state COUNTRY_UPDATE->ACS
 wlan0: ACS-STARTED
 ACS: Using survey based algorithm (acs_num_scans=5)
 wpa_driver_nl80211_get_survey send EVENT_SURVEY to hostapd
 hostapd_event_get_survey survey data received for chan(2412MHz)
 ACS: Scanning 2 / 5
 ACS: Using survey based algorithm (acs_num_scans=5)
 hostapd_event_get_survey survey data received for chan(2412MHz)
 ACS: Scanning 3 / 5
 ACS: Using survey based algorithm (acs_num_scans=5)
 wpa_driver_nl80211_get_survey send EVENT_SURVEY to hostapd
 hostapd_event_get_survey survey data received for chan(2412MHz)
 ACS: Scanning 4 / 5
 ACS: Using survey based algorithm (acs_num_scans=5)
 hostapd_event_get_survey survey data received for chan(2412MHz)
 ACS: Scanning 5 / 5
 ACS: Using survey based algorithm (acs_num_scans=5)
 hostapd_event_get_survey survey data received for chan(2412MHz)
 ACS: Trying survey-based ACS
 ACS: Survey analysis for channel 1 (2412 MHz)
 ACS: 1: min_nf=-95 interference_factor=0.0592593 nf=-95 time=135 busy=8
 rx=0
 ACS: 2: min_nf=-95 interference_factor=0.072 nf=-95 time=125 busy=9 rx=0
 ACS: 3: min_nf=-95 interference_factor=0.0367647 nf=-95 time=136 busy=5
 rx=0
 ACS: 4: min_nf=-95 interference_factor=0.048 nf=-95 time=125 busy=6 rx=0
 ACS: 5: min_nf=-95 interference_factor=0.0661765 nf=-95 time=136 busy=9
 rx=0
 ACS:  * interference factor average: 0.0564401
 ***** ACS: Survey analysis skip channel 2 (2417 MHz)
 ***** ACS: Survey analysis skip channel 3 (2422 MHz)
 ***** ACS: Survey analysis skip channel 4 (2427 MHz)
 ***** ACS: Survey analysis skip channel 5 (2432 MHz)
 ***** ACS: Survey analysis skip channel 6 (2437 MHz)
 ***** ACS: Survey analysis skip channel 7 (2442 MHz)
 ***** ACS: Survey analysis skip channel 8 (2447 MHz)
 ***** ACS: Survey analysis skip channel 9 (2452 MHz)
 ***** ACS: Survey analysis skip channel 10 (2457 MHz)
 ***** ACS: Survey analysis skip channel 11 (2462 MHz)
 ***** ACS: Survey analysis skip channel 12 (2467 MHz)
 ***** ACS: Survey analysis skip channel 13 (2472 MHz)
 ***** ACS: Survey analysis skip channel 14 (2484 MHz)
 ACS: Survey analysis for selected bandwidth 40 MHz
 ACS:  * channel 1: total interference = 0.0564401
 ACS:  * channel 2: total interference = 0.0564401
 ACS:  * channel 3: total interference = 0.0564401
 ACS:  * channel 4: total interference = 0
 ACS:  * channel 5: total interference = 0
 ACS:  * channel 6: total interference = 0
 ACS:  * channel 7: total interference = 0
 ACS:  * channel 8: total interference = 0
 ACS:  * channel 9: total interference = 0
 ACS: Channel 10: not enough bandwidth
 ACS: Channel 11: not enough bandwidth
 ACS: Channel 12: not enough bandwidth
 ACS: Channel 13: not enough bandwidth
 ACS: Ideal channel is 1 (2412 MHz) with total interference factor of
 0.0564401
 wlan0: ACS-COMPLETED freq=2412 channel=1
 Using interface wlan0 with hwaddr 24:05:0f:18:95:bd and ssid "LeU_95bd"
 [ 2722.670000] br-lan: port 2(wlan0) entered forwarding state
 [ 2722.680000] br-lan: port 2(wlan0) entered forwarding state
 [ 2722.680000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
 wlan0: interface state ACS->ENABLED
 wlan0: AP-ENABLED
 I don't know why hostapd didn't get survey from driver.
 Regards.

--
Ticket URL: <https://dev.openwrt.org/ticket/19081>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to