1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Thu, 14 Sep 2023 11:28:03 +0200
3 Subject: [PATCH] driver_nl80211: update drv->ifindex on removing the first
6 Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 --- a/src/drivers/driver_nl80211.c
10 +++ b/src/drivers/driver_nl80211.c
11 @@ -8985,6 +8985,7 @@ static int wpa_driver_nl80211_if_remove(
12 if (drv->first_bss->next) {
13 drv->first_bss = drv->first_bss->next;
14 drv->ctx = drv->first_bss->ctx;
15 + drv->ifindex = drv->first_bss->ifindex;
18 wpa_printf(MSG_DEBUG, "nl80211: No second BSS to reassign context to");