Add an option to create interface of a certain type with INTERFACE_ADD
authorAvraham Stern <avraham.stern@intel.com>
Tue, 3 Nov 2015 14:30:10 +0000 (16:30 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Nov 2015 15:46:54 +0000 (17:46 +0200)
commit0f039e343273e89c0e9bd9e047d2191dd706099c
tree970a1800567c3c111c717d16e40a9ed6dec21305
parentd8a3b66d7f5da3b5583d9c69d17a3630499e516f
Add an option to create interface of a certain type with INTERFACE_ADD

Some drivers do not support having two station interfaces, so the fact
that wpa_supplicant always creates a new interface in station mode, even
if it will be used as another type of interface, may prevent
wpa_supplicant from creating new interfaces. Allow setting the interface
type when a new interface is created so that interfaces of supported
types can be created.

Currently supported types are station ("sta") and AP ("ap"). If the
interface type is not specified, a station interface will be created.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/ctrl_iface.c