]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Rename struct wpa_driver_ops to hapd_driver_ops
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 26 Mar 2009 18:35:49 +0000 (20:35 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Mar 2009 18:35:49 +0000 (20:35 +0200)
This avoids conflicts with the wpa_supplicant structure with the same
name.

14 files changed:
hostapd/config.c
hostapd/config.h
hostapd/driver.h
hostapd/driver_atheros.c
hostapd/driver_bsd.c
hostapd/driver_hostap.c
hostapd/driver_madwifi.c
hostapd/driver_nl80211.c
hostapd/driver_none.c
hostapd/driver_prism54.c
hostapd/driver_test.c
hostapd/driver_wired.c
hostapd/drivers.c
hostapd/hostapd.h

index d01514bbfe21bcfd8a5da4c2f8e41891f52543ab..0f1d45196edbe0fa87175f5c0430895eeb86c569 100644 (file)
@@ -33,7 +33,7 @@
 
 #define MAX_STA_COUNT 2007
 
-extern struct wpa_driver_ops *hostapd_drivers[];
+extern struct hapd_driver_ops *hostapd_drivers[];
 
 
 #ifndef CONFIG_NO_VLAN
@@ -200,7 +200,7 @@ static void hostapd_config_defaults_bss(struct hostapd_bss_config *bss)
 }
 
 
-static struct hostapd_config * hostapd_config_defaults(void)
+struct hostapd_config * hostapd_config_defaults(void)
 {
        struct hostapd_config *conf;
        struct hostapd_bss_config *bss;
index fbcc353ca21c6965a09dc92767c0ce8f807cd2ab..6f53c3f057cbc84b34f10931b61a69cf4f413df7 100644 (file)
@@ -347,7 +347,7 @@ struct hostapd_config {
        int *supported_rates;
        int *basic_rates;
 
-       const struct wpa_driver_ops *driver;
+       const struct hapd_driver_ops *driver;
 
        int passive_scan_interval; /* seconds, 0 = disabled */
        int passive_scan_listen; /* usec */
@@ -392,6 +392,7 @@ struct hostapd_config {
 
 int hostapd_mac_comp(const void *a, const void *b);
 int hostapd_mac_comp_empty(const void *a);
+struct hostapd_config * hostapd_config_defaults(void);
 struct hostapd_config * hostapd_config_read(const char *fname);
 void hostapd_config_free(struct hostapd_config *conf);
 int hostapd_maclist_found(struct mac_acl_entry *list, int num_entries,
index f7b034242c0fd2ce1cdeca1d782c4c3804a325ac..6db7d37db9b61d54dd3ea1d346318f0bf437691a 100644 (file)
@@ -13,8 +13,8 @@
  * See README and COPYING for more details.
  */
 
-#ifndef DRIVER_H
-#define DRIVER_H
+#ifndef HOSTAPD_DRIVER_H
+#define HOSTAPD_DRIVER_H
 
 #include "defs.h"
 #include "sta_flags.h"
@@ -65,7 +65,7 @@ struct hostapd_neighbor_bss {
        int sec_chan; /* 0 for 20 MHz channels */
 };
 
-struct wpa_driver_ops {
+struct hapd_driver_ops {
        const char *name;               /* as appears in the config file */
 
        void * (*init)(struct hostapd_data *hapd);
@@ -243,4 +243,4 @@ void hostapd_mgmt_tx_cb(struct hostapd_data *hapd, u8 *buf, size_t len,
                        u16 stype, int ok);
 void hostapd_michael_mic_failure(struct hostapd_data *hapd, const u8 *addr);
 
-#endif /* DRIVER_H */
+#endif /* HOSTAPD_DRIVER_H */
index 7ab4bd6b5ad7dd4c31f5fcec78d523cf1e4daa36..17f11adde6be8594dbe331561335f899d5e48072 100644 (file)
@@ -1316,7 +1316,7 @@ madwifi_commit(void *priv)
        return madwifi_set_iface_flags(priv, 1);
 }
 
-const struct wpa_driver_ops wpa_driver_atheros_ops = {
+const struct hapd_driver_ops wpa_driver_atheros_ops = {
        .name                   = "atheros",
        .init                   = madwifi_init,
        .deinit                 = madwifi_deinit,
index 478acd72ca0ff8ef2fa7a9fb90c10763e648ff6f..1f24aa6e3d7a0bb06f9ce808be921438f0f39c92 100644 (file)
@@ -750,7 +750,7 @@ bsd_deinit(void *priv)
        free(drv);
 }
 
-const struct wpa_driver_ops wpa_driver_bsd_ops = {
+const struct hapd_driver_ops wpa_driver_bsd_ops = {
        .name                   = "bsd",
        .init                   = bsd_init,
        .deinit                 = bsd_deinit,
index ce92633eada1d6a8c5b4378159546ce782e2dcd2..a13f2dbddc9d69b4ce2b725d7e83c5ac8ac33692 100644 (file)
@@ -1227,7 +1227,7 @@ static struct hostapd_hw_modes * hostap_get_hw_feature_data(void *priv,
 }
 
 
-const struct wpa_driver_ops wpa_driver_hostap_ops = {
+const struct hapd_driver_ops wpa_driver_hostap_ops = {
        .name = "hostap",
        .init = hostap_init,
        .deinit = hostap_driver_deinit,
index fecb10407f0576a52052b8aaa1b2032c0535148d..7b2fb12d40f7ab91ca850630a284ae303825a7de 100644 (file)
@@ -1372,7 +1372,7 @@ madwifi_commit(void *priv)
        return madwifi_set_iface_flags(priv, 1);
 }
 
-const struct wpa_driver_ops wpa_driver_madwifi_ops = {
+const struct hapd_driver_ops wpa_driver_madwifi_ops = {
        .name                   = "madwifi",
        .init                   = madwifi_init,
        .deinit                 = madwifi_deinit,
index d76b456d83bdbc893fcd33be020804f96950467d..772b3e995177b7641cccdf77685a961e1209b224 100644 (file)
@@ -3103,7 +3103,7 @@ static void i802_deinit(void *priv)
 }
 
 
-const struct wpa_driver_ops wpa_driver_nl80211_ops = {
+const struct hapd_driver_ops wpa_driver_nl80211_ops = {
        .name = "nl80211",
        .init = i802_init,
        .init_bssid = i802_init_bssid,
index 96e7e644e52656f44f00bf7e1d150f0911a7c7f7..c82f0e98d61bf7009556fc14b48b2efa047dec5d 100644 (file)
@@ -54,7 +54,7 @@ static int none_driver_send_ether(void *priv, const u8 *dst, const u8 *src,
 }
 
 
-const struct wpa_driver_ops wpa_driver_none_ops = {
+const struct hapd_driver_ops wpa_driver_none_ops = {
        .name = "none",
        .init = none_driver_init,
        .deinit = none_driver_deinit,
index 8315e21be6f97656b70843d897ac83303d671fb6..a946c3b361dad6e88ea39b21b283f43bdfe66765 100644 (file)
@@ -1077,7 +1077,7 @@ static void prism54_driver_deinit(void *priv)
 }
 
 
-const struct wpa_driver_ops wpa_driver_prism54_ops = {
+const struct hapd_driver_ops wpa_driver_prism54_ops = {
        .name = "prism54",
        .init = prism54_driver_init,
        .deinit = prism54_driver_deinit,
index abd0c58a0af54c0bb8ae35387bf88878631cee3e..94da5d03b6bb3d68d24d378c5070709c2dea96c0 100644 (file)
@@ -1200,7 +1200,7 @@ static void test_driver_deinit(void *priv)
 }
 
 
-const struct wpa_driver_ops wpa_driver_test_ops = {
+const struct hapd_driver_ops wpa_driver_test_ops = {
        .name = "test",
        .init = test_driver_init,
        .deinit = test_driver_deinit,
index 5cb60d07cefa152413893ac98cfe9d4cd06c8bd0..cb942ff1d824272c7b5c4d537d2b3eb168c29755 100644 (file)
@@ -366,7 +366,7 @@ static void wired_driver_deinit(void *priv)
 }
 
 
-const struct wpa_driver_ops wpa_driver_wired_ops = {
+const struct hapd_driver_ops wpa_driver_wired_ops = {
        .name = "wired",
        .init = wired_driver_init,
        .deinit = wired_driver_deinit,
index bde6e609f3d4e045540e8f62bcbc3ceb76620067..baf1b9cdc2c63cc44290a7046e8920002f621d89 100644 (file)
 
 
 #ifdef CONFIG_DRIVER_HOSTAP
-extern struct wpa_driver_ops wpa_driver_hostap_ops; /* driver_hostap.c */
+extern struct hapd_driver_ops wpa_driver_hostap_ops; /* driver_hostap.c */
 #endif /* CONFIG_DRIVER_HOSTAP */
 #ifdef CONFIG_DRIVER_NL80211
-extern struct wpa_driver_ops wpa_driver_nl80211_ops; /* driver_nl80211.c */
+extern struct hapd_driver_ops wpa_driver_nl80211_ops; /* driver_nl80211.c */
 #endif /* CONFIG_DRIVER_NL80211 */
 #ifdef CONFIG_DRIVER_PRISM54
-extern struct wpa_driver_ops wpa_driver_prism54_ops; /* driver_prism54.c */
+extern struct hapd_driver_ops wpa_driver_prism54_ops; /* driver_prism54.c */
 #endif /* CONFIG_DRIVER_PRISM54 */
 #ifdef CONFIG_DRIVER_MADWIFI
-extern struct wpa_driver_ops wpa_driver_madwifi_ops; /* driver_madwifi.c */
+extern struct hapd_driver_ops wpa_driver_madwifi_ops; /* driver_madwifi.c */
 #endif /* CONFIG_DRIVER_MADWIFI */
 #ifdef CONFIG_DRIVER_ATHEROS
-extern struct wpa_driver_ops wpa_driver_atheros_ops; /* driver_atheros.c */
+extern struct hapd_driver_ops wpa_driver_atheros_ops; /* driver_atheros.c */
 #endif /* CONFIG_DRIVER_ATHEROS */
 #ifdef CONFIG_DRIVER_BSD
-extern struct wpa_driver_ops wpa_driver_bsd_ops; /* driver_bsd.c */
+extern struct hapd_driver_ops wpa_driver_bsd_ops; /* driver_bsd.c */
 #endif /* CONFIG_DRIVER_BSD */
 #ifdef CONFIG_DRIVER_WIRED
-extern struct wpa_driver_ops wpa_driver_wired_ops; /* driver_wired.c */
+extern struct hapd_driver_ops wpa_driver_wired_ops; /* driver_wired.c */
 #endif /* CONFIG_DRIVER_WIRED */
 #ifdef CONFIG_DRIVER_TEST
-extern struct wpa_driver_ops wpa_driver_test_ops; /* driver_test.c */
+extern struct hapd_driver_ops wpa_driver_test_ops; /* driver_test.c */
 #endif /* CONFIG_DRIVER_TEST */
 #ifdef CONFIG_DRIVER_NONE
-extern struct wpa_driver_ops wpa_driver_none_ops; /* driver_none.c */
+extern struct hapd_driver_ops wpa_driver_none_ops; /* driver_none.c */
 #endif /* CONFIG_DRIVER_NONE */
 
 
-struct wpa_driver_ops *hostapd_drivers[] =
+struct hapd_driver_ops *hostapd_drivers[] =
 {
 #ifdef CONFIG_DRIVER_HOSTAP
        &wpa_driver_hostap_ops,
index 0f1d684e3973f0a6011e9ba0dd317d8f660c2272..694a9c03e525c3707a37d47e980fc56174c5c7e1 100644 (file)
@@ -20,7 +20,7 @@
 #include "common.h"
 #include "hostapd_defs.h"
 
-struct wpa_driver_ops;
+struct hapd_driver_ops;
 struct wpa_ctrl_dst;
 struct radius_server_data;
 struct upnp_wps_device_sm;
@@ -54,7 +54,7 @@ struct hostapd_data {
 #define AID_WORDS ((2008 + 31) / 32)
        u32 sta_aid[AID_WORDS];
 
-       const struct wpa_driver_ops *driver;
+       const struct hapd_driver_ops *driver;
        void *drv_priv;
 
        u8 *default_wep_key;