]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused hostapd reconfig code
authorJouni Malinen <j@w1.fi>
Sun, 6 Dec 2009 16:48:30 +0000 (18:48 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 6 Dec 2009 16:48:30 +0000 (18:48 +0200)
13 files changed:
hostapd/accounting.c
hostapd/accounting.h
hostapd/ap_list.c
hostapd/ap_list.h
hostapd/hostapd.h
hostapd/iapp.c
hostapd/iapp.h
hostapd/ieee802_11_auth.c
hostapd/ieee802_11_auth.h
hostapd/ieee802_1x.c
hostapd/ieee802_1x.h
hostapd/vlan_init.c
hostapd/vlan_init.h

index 991fb5326243d2348404b4d4644977e62cef568d..8adaf88868368611e54dadcb5eab2e3172a1b6ad 100644 (file)
@@ -499,14 +499,3 @@ void accounting_deinit(struct hostapd_data *hapd)
 {
        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);
-}
index 5f6d9dc44cad4e84f4ed9c8f41100625c1850b25..f3d60f0155a64a9a1f441681f5e5fe1e52dd2395 100644 (file)
@@ -41,7 +41,5 @@ void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
 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 */
index 7cb7b37422461a278bc581d3d767ec60f2d6f44a..1807055b0762c91d5f72882f610102b4836065d2 100644 (file)
@@ -446,30 +446,3 @@ void ap_list_deinit(struct hostapd_iface *iface)
        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;
-}
index 2845aa4295d85ad0effb442628ffb18ac6ed1e4c..839f5a9085bfa94affc8be700a1ae0d47aa766c0 100644 (file)
@@ -76,7 +76,5 @@ static inline void ap_list_deinit(struct hostapd_iface *iface)
 {
 }
 #endif /* NEED_AP_MLME */
-int ap_list_reconfig(struct hostapd_iface *iface,
-                    struct hostapd_config *oldconf);
 
 #endif /* AP_LIST_H */
index 1c6372c91c9e90e515b5b548d6c9c873581232a3..dae3c12a0222346323f2ad0e193807730de4a86b 100644 (file)
@@ -64,7 +64,6 @@ struct hostapd_data {
        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;
index 1451aa4d77dc7ff6fce098c10b65f8d632208763..001e46e86ff3ef244e749b36817dfd2bbff3571d 100644 (file)
@@ -536,21 +536,3 @@ void iapp_deinit(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;
-}
index 86de59256043cb7043fcd3ca3e2b4c5df302b780..5fc01cb7035503e87c58918901b12fa54e496879 100644 (file)
@@ -22,8 +22,6 @@ struct iapp_data;
 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 */
 
@@ -42,13 +40,6 @@ static inline void iapp_deinit(struct iapp_data *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 */
index 0aa86b08a3bc81ea1a074d56e8ef902a8e20ff4f..092e27ab9b9ab34308fa89c676a2ab705a5cb322 100644 (file)
@@ -529,15 +529,4 @@ void hostapd_acl_deinit(struct hostapd_data *hapd)
        }
 }
 
-
-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 */
index 0eed825e29a404c9687bbbf03089efbab22006e3..b2971e5092b52b8d076c0df23372e150830255b2 100644 (file)
@@ -27,7 +27,5 @@ int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr,
                            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 */
index 5a0f4070bdfb7644166a41c469bc4cc9b076990b..a5bc0e3139e9eb1a83b3966d0d405b5ae141ee96 100644 (file)
@@ -1703,15 +1703,6 @@ 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)
-{
-       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)
 {
index 514502d6d369ded9dd0065273788200b2f818dd6..e7be41bb543b8bbb3297fd1bda0ce7e0e6ed48af 100644 (file)
@@ -58,9 +58,6 @@ void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
 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);
index 6de54ea2adab0fcb896eaf2b29d31193bf0d4ade..c4f223bb14225aedfaef9407a23790f943ee1522 100644 (file)
@@ -743,17 +743,6 @@ 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)
index 873fd55844bd30ee258b7b4bf153c0dc766a1f70..382d5dee4f8062a41396f7ea4d372d5beb67ca9d 100644 (file)
@@ -19,8 +19,6 @@
 #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);