diff options
author | Jouni Malinen <j@w1.fi> | 2006-10-20 23:22:31 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2006-10-20 23:22:31 (GMT) |
commit | a47b0efbbdf01a7994e0614e388079ea3e171b9d (patch) | |
tree | 945ca48ec4330f06fecd361984a6bf70b6196b9a /hostapd/vlan_init.c | |
parent | 7dea1eed03e295b50936025ea6f60441a7722a4c (diff) | |
download | hostap-history-a47b0efbbdf01a7994e0614e388079ea3e171b9d.zip hostap-history-a47b0efbbdf01a7994e0614e388079ea3e171b9d.tar.gz hostap-history-a47b0efbbdf01a7994e0614e388079ea3e171b9d.tar.bz2 |
Add preliminary code for dynamic reconfiguration of the various hostapd
modules. This code is not yet called, but eventually, these new reconfig
handlers will be used to make sure that all runtime data is updated if the
configuration is changed without restarting hostapd process.
Diffstat (limited to 'hostapd/vlan_init.c')
-rw-r--r-- | hostapd/vlan_init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hostapd/vlan_init.c b/hostapd/vlan_init.c index d551ecf..2fec67f 100644 --- a/hostapd/vlan_init.c +++ b/hostapd/vlan_init.c @@ -751,6 +751,17 @@ void vlan_deinit(struct hostapd_data *hapd) } +int vlan_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf, + struct hostapd_bss_config *oldbss) +{ + vlan_dynamic_remove(hapd, oldbss->vlan); + if (vlan_dynamic_add(hapd, hapd->conf->vlan)) + return -1; + + return 0; +} + + struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id) |