Reference Manual

Table Of Contents
RS9116 n-Link Linux and Android Technical Reference Manual
Version 2.0
August 2019
81
9 ACS with Hostapd
Following steps should be followed for Auto Channel Selection using Hostapd:
1. Compilation Steps:
a. Enable CONFIG_ACS in Driver Makefile
b. Enable Hostapd and NL80211 in ‘make menuconfig’
c. Enable CONFIG_ACS in hostapd .config file. (wlan/hostapd/hostapd-2.4/hostapd/.config)
d. Compile the driver using ‘make’ command
2. Hostapd Conf File changes required for ACS:
Set the correct interface and driver in hostapd.conf file (driver will be nl80211 for this)
interface=wlan0
driver=nl80211
Set SSID you want to configure
ssid=”REDPINE”
Set hw_mode to ‘g’ for 2.4 GHz
hw_mode=g
Set channel=0 (For ACS this value should be zero. Hostapd will pick a channel depending upon survey dump from
driver)
channel=0
Select the number of scans to be performed to trigger survey data commands. Hostapd will call this much times for
new survey data
acs_num_scans=5 (Default Value)
Steps for Setting AP
1. Insert the driver and create AP interface using wlan_enable.sh and post_vap.sh
2. Up the ap interface created
3. Run the following command to run hostapd:
./hostapd hostapd.conf –ddd > log_file_name &