Hi,
I'm trying to use a recompiled version of hostapd (v2.5, downloaded from the website and cross compiled) with a very minor patch (commenting out a single line that causes all wireless devices to disconnect on configuration changes).
I installed my cross compiled version of hostapd on the router and it was missing some dependencies (such as librt) but I solved that and got hostapd to run. I copied my new hostapd binary to the /usr/sbin folder under a new name and changed the symlink between hostapd and wpad to point to my new hostapd. (I'm also not sure what this wpad is, that might be related to the issue I'm having)
How when I try to run hostapd with the same configuration file as before I get the following lines:
root@OpenWrt:~# /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
Configuration file: /var/run/hostapd-phy0.conf
Line 12: unknown configuration item 'ieee80211n'
Line 13: unknown configuration item 'ht_coex'
Line 14: unknown configuration item 'ht_capab'
Line 15: unknown configuration item 'vht_oper_chwidth'
Line 16: unknown configuration item 'vht_oper_centr_freq_seg0_idx'
Line 17: unknown configuration item 'ieee80211ac'
Line 18: unknown configuration item 'vht_capab'
7 errors found in configuration file '/var/run/hostapd-phy0.conf'
Failed to set up interface with /var/run/hostapd-phy0.conf
Failed to initialize interface
The lines that were in the code that correspond to those errors are:
ieee80211n=1
ht_coex=0
ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
ieee80211ac=1
vht_capab=[RXLDPC][SHORT-GI-80][SU-BEAMFORMER][SU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTER
I decided to try to comment out these lines because I couldn't figure out why they were giving me errors and I tried to run hostapd again and got these errors:
root@OpenWrt:~# /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
Configuration file: /var/run/hostapd-phy0.conf
rfkill: Cannot open RFKILL control device
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn't started
Does anyone understand what I did wrong?
Also if anyone has a different way to get the same result I want that could also be an interesting work around...
Thanks
Niv