{
accounting_report_state(hapd, 0);
}
-
-
-int accounting_reconfig(struct hostapd_data *hapd,
- struct hostapd_config *oldconf)
-{
- if (!hapd->radius_client_reconfigured)
- return 0;
-
- accounting_deinit(hapd);
- return accounting_init(hapd);
-}
int accounting_init(struct hostapd_data *hapd);
void accounting_deinit(struct hostapd_data *hapd);
#endif /* CONFIG_NO_ACCOUNTING */
-int accounting_reconfig(struct hostapd_data *hapd,
- struct hostapd_config *oldconf);
#endif /* ACCOUNTING_H */
eloop_cancel_timeout(ap_list_timer, iface, NULL);
hostapd_free_aps(iface);
}
-
-
-int ap_list_reconfig(struct hostapd_iface *iface,
- struct hostapd_config *oldconf)
-{
- time_t now;
- struct ap_info *ap;
-
- if (iface->conf->ap_table_max_size == oldconf->ap_table_max_size &&
- iface->conf->ap_table_expiration_time ==
- oldconf->ap_table_expiration_time)
- return 0;
-
- time(&now);
-
- while (iface->ap_list) {
- ap = iface->ap_list->prev;
- if (iface->num_ap <= iface->conf->ap_table_max_size &&
- ap->last_beacon + iface->conf->ap_table_expiration_time >=
- now)
- break;
-
- ap_free_ap(iface, iface->ap_list->prev);
- }
-
- return 0;
-}
{
}
#endif /* NEED_AP_MLME */
-int ap_list_reconfig(struct hostapd_iface *iface,
- struct hostapd_config *oldconf);
#endif /* AP_LIST_H */
void *msg_ctx; /* ctx for wpa_msg() calls */
struct radius_client_data *radius;
- int radius_client_reconfigured;
u32 acct_session_id_hi, acct_session_id_lo;
struct iapp_data *iapp;
}
os_free(iapp);
}
-
-int iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
- struct hostapd_bss_config *oldbss)
-{
- if (hapd->conf->ieee802_11f != oldbss->ieee802_11f ||
- os_strcmp(hapd->conf->iapp_iface, oldbss->iapp_iface) != 0) {
- iapp_deinit(hapd->iapp);
- hapd->iapp = NULL;
-
- if (hapd->conf->ieee802_11f) {
- hapd->iapp = iapp_init(hapd, hapd->conf->iapp_iface);
- if (hapd->iapp == NULL)
- return -1;
- }
- }
-
- return 0;
-}
void iapp_new_station(struct iapp_data *iapp, struct sta_info *sta);
struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface);
void iapp_deinit(struct iapp_data *iapp);
-int iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
- struct hostapd_bss_config *oldbss);
#else /* CONFIG_IAPP */
{
}
-static inline int
-iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
- struct hostapd_bss_config *oldbss)
-{
- return 0;
-}
-
#endif /* CONFIG_IAPP */
#endif /* IAPP_H */
}
}
-
-int hostapd_acl_reconfig(struct hostapd_data *hapd,
- struct hostapd_config *oldconf)
-{
- if (!hapd->radius_client_reconfigured)
- return 0;
-
- hostapd_acl_deinit(hapd);
- return hostapd_acl_init(hapd);
-}
-
#endif /* CONFIG_NATIVE_WINDOWS */
u32 *acct_interim_interval, int *vlan_id);
int hostapd_acl_init(struct hostapd_data *hapd);
void hostapd_acl_deinit(struct hostapd_data *hapd);
-int hostapd_acl_reconfig(struct hostapd_data *hapd,
- struct hostapd_config *oldconf);
#endif /* IEEE802_11_AUTH_H */
}
-int ieee802_1x_reconfig(struct hostapd_data *hapd,
- struct hostapd_config *oldconf,
- struct hostapd_bss_config *oldbss)
-{
- ieee802_1x_deinit(hapd);
- return ieee802_1x_init(hapd);
-}
-
-
int ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
const u8 *buf, size_t len, int ack)
{
void ieee802_1x_dump_state(FILE *f, const char *prefix, struct sta_info *sta);
int ieee802_1x_init(struct hostapd_data *hapd);
void ieee802_1x_deinit(struct hostapd_data *hapd);
-int ieee802_1x_reconfig(struct hostapd_data *hapd,
- struct hostapd_config *oldconf,
- struct hostapd_bss_config *oldbss);
int ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
const u8 *buf, size_t len, int ack);
u8 * ieee802_1x_get_identity(struct eapol_state_machine *sm, size_t *len);
}
-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)
#ifndef CONFIG_NO_VLAN
int vlan_init(struct hostapd_data *hapd);
void vlan_deinit(struct hostapd_data *hapd);
-int vlan_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
- struct hostapd_bss_config *oldbss);
struct hostapd_vlan * vlan_add_dynamic(struct hostapd_data *hapd,
struct hostapd_vlan *vlan,
int vlan_id);