wifi: brcmfmac: correctly remove all p2p vif
authorBrian Henriquez <brian.henriquez@cypress.com>
Mon, 24 Oct 2022 08:52:13 +0000 (03:52 -0500)
committerKalle Valo <kvalo@kernel.org>
Tue, 8 Nov 2022 07:38:23 +0000 (09:38 +0200)
commitc7caaa6f727871ff00b49c3bb7260137a05491bf
tree4e459f281b56d4ad86b715c3a911d6a03083b7e4
parentbd954a7e4aa0739630884fc572d2d0e4dcd16e25
wifi: brcmfmac: correctly remove all p2p vif

When deleting a P2P AGO interface we should make sure that
relevant entry in bss_idx[] array is removed. We were always
removing only 'vif' at P2PAPI_BSSCFG_CONNECTION before,
regardless of the number of created P2P AGO interfaces.
brcmfmac: correctly remove all p2p vif

Signed-off-by: Brian Henriquez <brian.henriquez@cypress.com>
Signed-off-by: Chi-hsien Lin <chi-hsien.lin@infineon.com>
Signed-off-by: Ian Lin <ian.lin@infineon.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221024085215.27616-2-ian.lin@infineon.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c