HomeFreeBSD

LinuxKPI: 802.11: improve lkpi_ic_vap_delete()

Description

LinuxKPI: 802.11: improve lkpi_ic_vap_delete()

Changing the order of cleanup in lkpi_ic_vap_delete() will avoid
firmware crashes or a direct panic as observed as ieee80211_vap_detach()
will do most cleanup for us and get us into the correct state.

The solution is not fully developed yet and one may not be able
to create a new vap (lkpi_ic_vap_create may fail with error 17)
afterwards. It is supposed to be a step towards more stability
for now.

Sponsored by: The FreeBSD Foundation
PR: 269842

(cherry picked from commit dbf7691999abe501e0ebc0fe4d8d9e97718d3890)

Details

Provenance
bzAuthored on Sep 30 2023, 3:20 PM
Parents
rG6b816fdfada1: LinuxKPI: 802.11: fix problem removing sta
Branches
Unknown
Tags
Unknown