]> git.ipfire.org Git - thirdparty/openwrt.git/commit
hostapd: extend DPP ucode API with WPS M7/M8 encrypted settings handling
authorFelix Fietkau <nbd@nbd.name>
Sun, 8 Feb 2026 11:03:18 +0000 (11:03 +0000)
committerFelix Fietkau <nbd@nbd.name>
Sun, 8 Feb 2026 11:25:20 +0000 (12:25 +0100)
commita7756346c7307ce84082cf0754bf4b6654850cf3
treeb11b946c18df50af816e3ffb9b270ae64519edcc
parente40d416c549e5379d76c3b4240dccd1c13952a0d
hostapd: extend DPP ucode API with WPS M7/M8 encrypted settings handling

Add callbacks to intercept WPS M7 reception (registrar side) and M8
reception (enrollee side), allowing external code to inject extra
encrypted attributes and optionally skip credential building.

On the registrar side, the m7_rx callback receives the decrypted M7
content and can return extra data to include in M8's encrypted settings
as well as a flag to skip credential generation.

On the enrollee side, add a wps_set_m7 method to set extra encrypted
data for M7, and a m8_rx callback to handle the decrypted M8 content
externally.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/hostapd/files/hostapd.uc
package/network/services/hostapd/files/wpa_supplicant.uc
package/network/services/hostapd/patches/601-ucode_support.patch
package/network/services/hostapd/src/src/ap/ucode.c
package/network/services/hostapd/src/src/ap/ucode.h
package/network/services/hostapd/src/wpa_supplicant/ucode.c
package/network/services/hostapd/src/wpa_supplicant/ucode.h