]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Allow reuse of existing interface for AP MLD
authorPurushottam Kushwaha <quic_pkushwah@quicinc.com>
Tue, 15 Apr 2025 12:20:18 +0000 (17:50 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 17 Apr 2025 09:39:56 +0000 (12:39 +0300)
commitdd1587c915413afad7094b7de6c78a87fecd6153
tree1443b6f32095744edd1e6e06e772874a48640409
parent043c073e74e01b8a8bf56e060cdb77adaa8ea7f6
hostapd: Allow reuse of existing interface for AP MLD

Commit 00c2c20d74ee ("hostapd: Maintain single wpa_driver_nl80211_data
(drv) object across interfaces") adds 2nd AP MLD interface as a new
interface. However, in cases where the interface is already created and
are supposed to be reused, due to the new interface request, addition of
a new AP MLD fails.

Leverage the reuse parameter and handle the additional error code during
interface add for such cases and update the interface mode to
NL80211_IFTYPE_AP.

Fixes: 00c2c20d74ee ("hostapd: Maintain single wpa_driver_nl80211_data (drv) object across interfaces")
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
Signed-off-by: Chenming Huang <quic_chenhuan@quicinc.com>
hostapd/main.c
src/drivers/driver_nl80211.c