OpenWrt Forum Archive

Topic: Need a hostapd with disable_dgaf

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello All,

I am trying to set up my /etc/config/wireless with disable_dgaf, but it seems that UCI doesn't support this option for now?
I tried to hack the hostapd.sh to output disable_dgaf=1 in hostapd.conf generated by netifd, but my hostapd failed to run. It says in the log file that disable_dgaf command is not recognized.

I am using OpenWrt Chaos Calmers on my system so the hostapd version is 2.5-devel. And I am using WPA-PSK2 Personal encryption.

Could anyone help me with a hostapd version that has disable_dgaf? AFAIK, this is enabled when the binary is compiled with the option for Hotspot 2.0. I am assuming the default hostapd wasn't built with this option?

Thank you all!

I have found the answer to this problem.
1) Basically I rebuilt the hostapd package by downloading the source code from OpenWrt GitHub.
https://github.com/openwrt/openwrt/
I took the Chaos Calmer branch.

2) Then I just followed the instructions to build just one package from here:
https://wiki.openwrt.org/doc/howtobuild/single.package

3) Then I made sure that all the dependencies are followed for hostapd. Please refer to the Makefile:
https://github.com/openwrt/openwrt/blob … d/Makefile

PKG_CONFIG_DEPENDS:= \
    CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK \
    CONFIG_PACKAGE_kmod-ath9k \
    CONFIG_PACKAGE_kmod-cfg80211 \
    CONFIG_PACKAGE_hostapd \
    CONFIG_PACKAGE_hostapd-mini \
    CONFIG_PACKAGE_kmod-hostap \
    CONFIG_WPA_RFKILL_SUPPORT \
    CONFIG_DRIVER_WEXT_SUPPORT \
    CONFIG_DRIVER_11N_SUPPORT

Make sure that all of these are enabled in "make menuconfig" or just edit ".config" file directly.
Basically after all the setup we type: "make package/hostapd/compile". And we'll get the required .ipk.

The discussion might have continued from here.