Simplify driver_ops for virtual interface add/remove
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 11 Apr 2010 16:23:09 +0000 (19:23 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Apr 2010 16:23:09 +0000 (19:23 +0300)
commitf3585c8a8507180830047894dddceb4b0159e299
treed7ea7fc6c96f76d18963f9b9ff473ea4913afc5a
parent977b11747f9c354d4f9e17c82175822f16329317
Simplify driver_ops for virtual interface add/remove

There is no absolute requirement for separating address allocation
into separate functions, so simplify the driver wrapper interface
to use just if_add and if_remove instead of adding the new
alloc_interface_addr() and release_interface_addr() functions.

if_add() can now indicate if the driver forced a different interface
name or address on the virtual interface.
src/ap/ap_drv_ops.c
src/ap/ap_drv_ops.h
src/ap/hostapd.c
src/drivers/driver.h
src/drivers/driver_ndis.c
src/drivers/driver_nl80211.c
src/drivers/driver_test.c
wpa_supplicant/driver_i.h