Add INTERWORKING_ADD_NETWORK command
authorJouni Malinen <j@w1.fi>
Sun, 8 Feb 2015 14:56:04 +0000 (16:56 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Feb 2015 20:49:58 +0000 (22:49 +0200)
commitf91a512f1f4964316ab9f00bfc7c70cb1986ff5d
tree046bafcd8bb9df77394c5a8b8dbe8375eeb84688
parentc612ae97a419e55bb3e815f68376a0d78c871ccf
Add INTERWORKING_ADD_NETWORK command

This can be used to provide more control to upper layers on network
blocks generated as part of Interworking network selection.
INTERWORKING_ADD_NETWORK behaves otherwise identically to
INTERWORKING_CONNECT, but it does not request a new connection after
having added the network block and it returns the network id of the
added network.

INTERWORKING_ADD_NETWORK followed by REASSOCIATE would behave more or
less identically to INTERWORKING_CONNECT, but this allows the created
network profile to be modified, if desired, and/or stored externally.
SELECT_NETWORK can also be used with the network id returned from
INTERWORKING_ADD_NETWORK to enforce that specific network profile to be
used for the next connection (though, it should be noted that this
behavior may not meet all Hotspot 2.0 requirements if there were other
enabled networks that could have higher priority).

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/interworking.c
wpa_supplicant/interworking.h
wpa_supplicant/wpa_cli.c