Move network add/remove operations to a common function

All the 3 control interfaces: socket based, dbus & binder needs to perform the
same sequence of steps for network add/remove. So, move these to a common
utility method in |wpa_supplicant.c| instead of duplicating the code everywhere.

Change-Id: I196290cee05f5b96003eead7768f71a6e67b33ac
Signed-off-by: Roshan Pius <rpius@google.com>
1 file changed