nl80211: Do not add all virtual interfaces to drv->if_indices
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 27 May 2014 15:47:41 +0000 (18:47 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 27 May 2014 15:47:41 +0000 (18:47 +0300)
commit147848ec4d26613d5a117d4b35dbc7ff98dd65d1
tree768b74939185e2b402cbfc01fd4c173fd7bf90b2
parentde88430311d6abbbcd32f792c42a9c73c1386667
nl80211: Do not add all virtual interfaces to drv->if_indices

Commit 04eff7d5ba96b5b452e4e1a70db3af6668762b08 or something around that
timeframe may have caused a regression on how drv->if_indices gets used
with wpa_supplicant. Most (curretly likely all) wpa_supplicant virtual
interface use cases should not actually use this. This could result in
issues with P2P group interfaces delivering events to incorrect
interface (parent rather than the group interface). The previous commit
removed some of the issues, but more complete fix is to undo some of
those merged hostapd/wpa_supplicant operations.

Filter add_ifidx() uses based on hostapd vs. wpa_supplicant and iftype
to get closer to the earlier wpa_supplicant behavior for the driver
events from virtual interfaces.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c