nl80211: Fix tearing down WDS STA interfaces
authorFelix Fietkau <nbd@openwrt.org>
Fri, 28 Feb 2014 14:41:49 +0000 (15:41 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 4 Mar 2014 18:13:01 +0000 (20:13 +0200)
commitd0595b25b467a841586a3492f4e10e9f58bc5da0
tree824a667ac8d4168141567a7194cee7eb6b17888a
parent05ef25a642d624efd95fadf6df168f8e7e39bf01
nl80211: Fix tearing down WDS STA interfaces

wpa_driver_nl80211_if_remove() checks bss->if_added before deleting an
interface, which is 0 for the first BSS. The only part of
wpa_driver_nl80211_if_remove() that should get called for WDS STA
interfaces is the call to nl80211_remove_iface(), which can be pulled in
here directly.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
src/drivers/driver_nl80211.c