LinuxKPI: 802.11: fix re-creation of VAP

After dbf7691999 (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:		dbf7691999 ("improve lkpi_ic_vap_delete()")
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2023-10-03 21:14:55 +00:00
parent 1e99b2ee90
commit 6c38c6b1b9

View file

@ -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);
}