wrong activation of internal radius server

Felix Fietkau nbd at nbd.name
Fri Jun 4 06:35:54 PDT 2021


Hi Hartmut,

On 2021-06-04 15:22, e9hack wrote:
> OpenWrt has been supporting hostapd's internal radius server for a few days. For several years there has been a line in the init-script that activates the internal radius server too. I think this is wrong (from hostapd.sh):
> 
> 	[ -n "$wps_possible" -a -n "$config_methods" ] && {
> 		set_default ext_registrar 0
> 		set_default wps_device_type "6-0050F204-1"
> 		set_default wps_device_name "OpenWrt AP"
> 		set_default wps_manufacturer "www.openwrt.org"
> 		set_default wps_independent 1
> 
> 		wps_state=2
> 		[ -n "$wps_not_configured" ] && wps_state=1
> 
> 		[ "$ext_registrar" -gt 0 -a -n "$network_bridge" ] && append bss_conf "upnp_iface=$network_bridge" "$N"
> 
> ===>		append bss_conf "eap_server=1" "$N"
I just checked the hostapd WPS README file, and it seems that the
eap_server=1 line is actually required:
https://w1.fi/cgit/hostap/tree/hostapd/README-WPS#n94

- Felix



More information about the openwrt-devel mailing list