Hostapd configuration

Hello,

if I am correct, the var/run/hostapd-phy0.conf file depends on what is written in etc/config/wireless.

For example the following wireless configuration:

config wifi-device 'radio0'
    option type 'mac80211'
    option channel '11'
    option path 'platform/ar933x_wmac'
    option htmode 'HT20'
    list ht_capab 'SHORT-GI-20'
    list ht_capab 'SHORT-GI-40'
    list ht_capab 'RX-STBC1'
    list ht_capab 'DSSS_CCK-40'
    option hwmode '11g'
    option txpower '16'

config wifi-iface
    option device 'radio0'
    option mode 'ap'
    option ssid 'x'
    option encryption 'none'
    option network 'lan'

would results in:

driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
hw_mode=g
channel=11

ieee80211n=1
ht_coex=0
ht_capab=[SHORT-GI-20][SHORT-GI-40][RX-STBC1][DSSS_CCK-40]

interface=wlan0
ctrl_interface=/var/run/hostapd
disassoc_low_ack=1
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
uapsd_advertisement_enabled=1
auth_algs=1
wpa=0
ssid=x
bssid=xxxx

How can I directly modify the hostapd configuration file? I tried to add an option but after restarting the network it was not there anymore and I don't know how to add it from the wireless file.

Thanks

Google: Openwrt hostapd

Best of Luck