]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix filtering of unsupported bands/modes
authorJouni Malinen <jouni@codeaurora.org>
Mon, 2 Nov 2020 16:38:41 +0000 (18:38 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 2 Nov 2020 16:38:41 +0000 (18:38 +0200)
commitc643c392874a7e41dc447cd29afe14a2934e2289
tree1f8b0771ef2d8d5ad096b9cd1890987deee6aed3
parent3b89dbaa7d44ea810e017ae0ff300fb639304c73
nl80211: Fix filtering of unsupported bands/modes

The loop for removing unsupported bands was assuming there is always
exactly one band/mode following the removed band. That was not at all
correct, so fix this by dynamically determining how many (if any) bands
need to be moved.

Fixes: 106d67a93c2d ("nl80211: Filter out unsupported bands")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/drivers/driver_nl80211_capa.c