]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Consider P2P when changing vif type
authorEliad Peller <eliad@wizery.com>
Sun, 17 Jul 2011 17:22:11 +0000 (20:22 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 17 Jul 2011 17:22:11 +0000 (20:22 +0300)
commitb1f625e0d81b76bb2380d0b47b95f5ad61123ba5
treeb1292c15ce67b2aa61f9317a741eb5f058f9a0ba
parentff6a158b40e9ba7bd315318a0da9f5bc41779860
nl80211: Consider P2P when changing vif type

Commit 9f51b11395646efeb5d6a75d2cabc0bf7626496f added support for P2P
interfaces when adding a new interface. However, it didn't handle the
case in which the same interface is being used and its type is being
changed. Add support for this case.

Consequently, when doing "ap_scan_as_station" we now need to save the
actual AP interface type (AP/P2P GO) in order to restore it properly.
For that, change ap_scan_as_station type from int to nl80211_iftype, and
set it to NL80211_IFTYPE_UNSPECIFED when not used.

Signed-off-by: Eliad Peller <eliad@wizery.com>
src/drivers/driver_nl80211.c