hostapd: fix OWE association with mbedtls
authorDavid Bauer <mail@david-bauer.net>
Tue, 24 Oct 2023 01:07:48 +0000 (03:07 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 31 Oct 2023 20:15:57 +0000 (21:15 +0100)
commit16fcad47a4d92d5055a2b33293248564a8ce0466
tree441249911500bcb21982933bdc7f15e6ff5a4cbf
parent6bb3c2eba80a04c0d6ba4e10891338f445669ee1
hostapd: fix OWE association with mbedtls

The code for hostapd-mbedtls did not work when used for OWE association.

When handling association requests, the buffer offsets and length
assumptions were incorrect, leading to never calculating the y point,
thus denying association.

Also when crafting the association response, the buffer contained the
trailing key-type.

Fix up both issues to adhere to the specification and make
hostapd-mbedtls work with the OWE security type.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 39341f422f895a37b405b753c3630b1bdc9b8c6e)
package/network/services/hostapd/Makefile
package/network/services/hostapd/patches/135-mbedtls-fix-owe-association.patch [new file with mode: 0644]