Skip to content

wifi-scripts: ucode: create wpa_psk_file and sae_password_file when needed - #20784

Merged
openwrt-bot merged 1 commit into
openwrt:mainfrom
rany2:optimize-psk-sae
Nov 15, 2025
Merged

openwrt-bot merged 1 commit into
openwrt:mainfrom
rany2:optimize-psk-sae

Conversation

@rany2

@rany2 rany2 commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

This handles the case when 'wpad' or 'wpad-mini' package is used which is missing WPA3 support. This makes it impossible to use ucode wifi-scripts on such APs as it will raise an error:

daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts. The behavior now matches.

Fixes: #20781

@github-actions github-actions Bot added the core packages pull request/issue for core (in-tree) packages label Nov 14, 2025
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
@openwrt-bot
openwrt-bot merged commit 6df060b into openwrt:main Nov 15, 2025
@robimarko

Copy link
Copy Markdown
Contributor

Thanks! Rebased on top of main and merged!

@rany2

rany2 commented Nov 15, 2025

Copy link
Copy Markdown
Contributor Author

@robimarko Can you please also take a look at these related bug fixes too?

@Neustradamus

Copy link
Copy Markdown

@rany2: Thanks, good job and thanks to robimarko for merging!

Linked to:

codetiger666 pushed a commit to codetiger666/openwrt that referenced this pull request Nov 16, 2025
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Nov 16, 2025
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Nov 17, 2025
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt/openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt/openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Dec 16, 2025
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt/openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt/openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
@Rudd-O

Rudd-O commented Dec 29, 2025

Copy link
Copy Markdown

Problem persists!

I have the latest wifi-scripts package from snapshot (Dec 29) with these fixes and the linked ones. Still won't work.

@rany2

rany2 commented Dec 30, 2025

Copy link
Copy Markdown
Contributor Author

@Rudd-O Can you show your apk info and (redacted) /etc/config/wireless?

@Rudd-O

Rudd-O commented Dec 30, 2025 •

Copy link
Copy Markdown

OK. Turns out the wpad package doesn't work for this. Wild guess of mine led me to install wpad-openssl -- not something noted in the FreeRADIUS howto of OpenWrt. This is therefore absolutely incorrect:

image

FYI I am using 25.12-rc1 just installed today. I had to use snapshot packages for FreeRADIUS because the FreeRADIUS shipped in the repos is horribly broken with RSA keys.

@rany2

rany2 commented Dec 30, 2025 •

Copy link
Copy Markdown
Contributor Author

That's correct. You need one of the hostapd variants that have link to some SSL backend (wolfssl, mbedtls, openssl, ...) for SAE and 802.1x. This has always been the case.

@Rudd-O

Rudd-O commented Dec 30, 2025 •

Copy link
Copy Markdown

Well the documentation better point that out!

(Ideally the software makes it impossible to operate without this precondition being met, otherwise an obscure error message appears.)

@rany2

rany2 commented Dec 30, 2025

Copy link
Copy Markdown
Contributor Author

I have updated the wiki, thanks for pointing it out :)

@rany2

rany2 commented Dec 30, 2025

Copy link
Copy Markdown
Contributor Author

@Rudd-O Actually, 802.1x does work with wpad. Can you show me your /etc/config/wireless again?

@Rudd-O

Rudd-O commented Dec 30, 2025 •

Copy link
Copy Markdown

Sure thang:

# root@ap:~# cat /etc/config/wireless
config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/18000000.wifi'
	option band '2g'
	option channel '1'
	option htmode 'HE20'
	option num_global_macaddr '7'
	option cell_density '0'

config wifi-device 'radio1'
	option type 'mac80211'
	option path 'platform/soc/18000000.wifi+1'
	option band '5g'
	option channel '36'
	option htmode 'HE160'
	option num_global_macaddr '7'
	option cell_density '0'
	option country '<COUNTRY>'

config wifi-iface 'wlan_cis_2g_ent'
	option device 'radio0'
	option mode 'ap'
	option ssid 'Home CIS WPA-Enterprise'
	option encryption 'wpa3'
	# Increase EAP reauthentication period to a week,
	# to mitigate problems with certain ESP devices
	# failing to reauthenticate.
	option eap_reauth_period '604800'
	option server '127.0.0.1'
	option port '1812'
	option auth_server '127.0.0.1'
	option auth_port '1812'
	option auth_secret '<auth secret>'
	option key '<key>'
	option acct_server '127.0.0.1'
	option acct_port '1813'
	option acct_secret '<acct secret>'
	option ieee80211w '2'
	option ocv '0'
	option wpa_disable_eapol_key_retries '1'
	option tdls_prohibit '1'
	option network 'CIS'
	option radius_client_addr '127.0.0.1'
	option ifname 'wlan_cis_2g_ent'

config wifi-iface 'wlan_netc_5g_e'
	option device 'radio1'
	option mode 'ap'
	option ssid 'Home WPA-Enterprise'
	option encryption 'wpa3'
	option server '127.0.0.1'
	option port '1812'
	option auth_server '127.0.0.1'
	option auth_port '1812'
	option auth_secret '<auth secret>'
	option key '<key>'
	option acct_server '127.0.0.1'
	option acct_port '1813'
	option acct_secret '<acct secret>'
	option ieee80211w '2'
	option ocv '0'
	option wpa_disable_eapol_key_retries '1'
	option tdls_prohibit '1'
	option network 'NETC'
	option radius_client_addr '127.0.0.1'
	option ifname 'wlan_netc_5g_e'

This led to the dreaded sae_password_file issue.

I can't show you my apk info since I have already uninstalled wpad and installed wpad-openssl which would make the apk info report misleading to other readers. My top priority was to restore service over helping debug this ticket (sorry, but I have to be honest). But this snippet is relevant:

freeradius3
freeradius3-common
freeradius3-default
freeradius3-democerts
freeradius3-mod-always
freeradius3-mod-attr-filter
freeradius3-mod-chap
freeradius3-mod-detail
freeradius3-mod-digest
freeradius3-mod-eap
freeradius3-mod-eap-gtc
freeradius3-mod-eap-md5
freeradius3-mod-eap-mschapv2
freeradius3-mod-eap-peap
freeradius3-mod-eap-pwd
freeradius3-mod-eap-tls
freeradius3-mod-eap-ttls
freeradius3-mod-exec
freeradius3-mod-expiration
freeradius3-mod-expr
freeradius3-mod-files
freeradius3-mod-logintime
freeradius3-mod-mschap
freeradius3-mod-pap
freeradius3-mod-preprocess
freeradius3-mod-radutmp
freeradius3-mod-realm
freeradius3-mod-unix
freeradius3-utils

Confirming here that, on 2025.12-rc1, wpad won't work with RADIUS -- the fix is to install wpad-openssl instead.

@rany2

rany2 commented Dec 30, 2025 •

Copy link
Copy Markdown
Contributor Author

I cannot reproduce this on 25.12-rc1. sae_password_file is not set in the config. My best guess is that there is something up with caching of the build and you should do a clean build.

@Rudd-O

Rudd-O commented Jan 4, 2026 via email

Copy link
Copy Markdown

HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Jan 6, 2026
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
Quarx2k pushed a commit to Quarx2k/OpenWRT-BE7000 that referenced this pull request Sep 22, 2026
…eeded

This handles the case when 'wpad' or 'wpad-mini' package is used which is
missing WPA3 support. This makes it impossible to use ucode wifi-scripts
on such APs as it will raise an error:

   daemon.err hostapd: Line 87: unknown configuration item 'sae_password_file'

This also achieves parity with what is currently happening with old wifi-scripts.
The behavior now matches.

Fixes: openwrt/openwrt#20781
Signed-off-by: Rany Hany <[email protected]>
Link: openwrt/openwrt#20784
Signed-off-by: Robert Marko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AX80 EU hostapd: unknown configuration item 'sae_password_file' after latest snapshot

5 participants