nl80211: Fix regression in P2P group interface removal
authorJouni Malinen <j@w1.fi>
Sun, 24 Nov 2013 10:41:32 +0000 (12:41 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 24 Nov 2013 10:41:32 +0000 (12:41 +0200)
commit158b090cda6f97e947f7fe83c7baa85da7bcd281
tree770c797d7284597f69c7a64e7e5aa94e5ee35867
parent6f72577f2963759898f18e86294c275aaed9de9a
nl80211: Fix regression in P2P group interface removal

Commit 390e489c0d9415caf103367136eaa534b559837c extended hostapd BSS
interface removal capabilities. However, it ended up causing a
regression in wpa_supplicant P2P group interface handling. That P2P
group interface is removed through another driver_nl80211.c BSS context
and as such, the bss->added_if is not set. Fix this by verifying whether
the request is for another ifindex and if so, removing the interface
even if added_if is not marked.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c