]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP MLD: Do not allow disabling first interface affiliated with an AP MLD
authorChenming Huang <quic_chenhuan@quicinc.com>
Wed, 20 Dec 2023 08:39:18 +0000 (14:09 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 2 Feb 2024 20:54:44 +0000 (22:54 +0200)
commit7ba039ba11a34639411fa56053ea158241eaa211
tree717dbbd300d151b122657f34c7ea5d5e7b27b5b7
parente3d16575c4532ee99bf3a2f6c4291597b6319c23
AP MLD: Do not allow disabling first interface affiliated with an AP MLD

Disabling the first interface calls hapd_deinit(), which causes some
issues, e.g., failure when trying to disable other interfaces due to
NULL drv_priv.

So check that all other interfaces are already disabled before disable
the first interface.

Signed-off-by: Chenming Huang <quic_chenhuan@quicinc.com>
src/ap/hostapd.c