Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 2023 21:19:32 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6c38c6b1b917 - main - LinuxKPI: 802.11: fix re-creation of VAP
Message-ID:  <202310032119.393LJWBa071510@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=6c38c6b1b917957d420902213f318bf0153214f2

commit 6c38c6b1b917957d420902213f318bf0153214f2
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-10-03 21:14:55 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-10-03 21:18:29 +0000

    LinuxKPI: 802.11: fix re-creation of VAP
    
    After dbf7691999abe (as indicated in that commit message) EEXISTS
    errors may be seen.  From current investigation that is due to the
    single-VAP support in LinuxKPI 802.11 and the related calls to
    mo_start() and mo_stop() and them being disabled in ic_parent()
    currently.  Calling mo_stop() in lkpi_ic_vap_delete() seems to
    fix the problem and new VAPs (wlan interfaces) can be created again
    after being destroyed.
    
    Fixes:          dbf7691999abe ("improve lkpi_ic_vap_delete()")
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index 7565f491606b..9f5f5bef7f27 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -2481,6 +2481,9 @@ lkpi_ic_vap_delete(struct ieee80211vap *vap)
 
 	lkpi_80211_mo_remove_interface(hw, vif);
 
+	/* Single VAP, so we can do this here. */
+	lkpi_80211_mo_stop(hw);
+
 	mtx_destroy(&lvif->mtx);
 	free(lvif, M_80211_VAP);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310032119.393LJWBa071510>