]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Declare wpa_drivers in src/drivers/driver.h
authorJouni Malinen <j@w1.fi>
Tue, 31 Dec 2013 17:19:37 +0000 (19:19 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 31 Dec 2013 17:19:37 +0000 (19:19 +0200)
This avoids some warnings from sparse.

Signed-hostap: Jouni Malinen <j@w1.fi>

hostapd/config_file.c
hostapd/main.c
src/ap/hostapd.c
src/drivers/driver.h
src/drivers/drivers.c
wpa_supplicant/ctrl_iface.c
wpa_supplicant/main.c
wpa_supplicant/wpa_priv.c
wpa_supplicant/wpa_supplicant.c

index ae059176e6698381c38811f9fda9437e27f9d1fa..fa1a7fb4bb258843f2e78b6cae2d0e40ecf5727e 100644 (file)
@@ -22,9 +22,6 @@
 #include "config_file.h"
 
 
-extern struct wpa_driver_ops *wpa_drivers[];
-
-
 #ifndef CONFIG_NO_VLAN
 static int hostapd_config_read_vlan_file(struct hostapd_bss_config *bss,
                                         const char *fname)
index 4e9fe404d5a9086b1ec09c2653e07d654d6a97a4..1b798dafc0427f9910934682e8e7f8f24ffe13ce 100644 (file)
@@ -33,8 +33,6 @@ extern int wpa_debug_level;
 extern int wpa_debug_show_keys;
 extern int wpa_debug_timestamp;
 
-extern struct wpa_driver_ops *wpa_drivers[];
-
 
 struct hapd_global {
        void **drv_priv;
index 69459f77dfb1b9cc7ebd22056f79371afcf707b2..71f8ee2b424e86c4d542dabad48ad5be56ee625e 100644 (file)
@@ -42,7 +42,6 @@ static int setup_interface2(struct hostapd_iface *iface);
 static void channel_list_update_timeout(void *eloop_ctx, void *timeout_ctx);
 
 extern int wpa_debug_level;
-extern struct wpa_driver_ops *wpa_drivers[];
 
 
 int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
index eecb736be5b18a2fe45d267bd472d14f4ac73b5f..b4442becbb5a4c86d190b01a1fee6d463c493f58 100644 (file)
@@ -3803,4 +3803,7 @@ void wpa_scan_results_free(struct wpa_scan_results *res);
 /* Convert wpa_event_type to a string for logging */
 const char * event_to_string(enum wpa_event_type event);
 
+/* NULL terminated array of linked in driver wrappers */
+extern struct wpa_driver_ops *wpa_drivers[];
+
 #endif /* DRIVER_H */
index 04eb4fd1c17e1e47397b7bd64f53dffae2391259..446ab63926d69b5e50869bf56c0c65b04ca8b090 100644 (file)
@@ -6,8 +6,9 @@
  * See README for more details.
  */
 
-#include "includes.h"
-
+#include "utils/includes.h"
+#include "utils/common.h"
+#include "driver.h"
 
 #ifdef CONFIG_DRIVER_WEXT
 extern struct wpa_driver_ops wpa_driver_wext_ops; /* driver_wext.c */
index 557ed7a3bad64ac7b1af62302bc8ac5fbca7ff90..975e42c93cd98d2640a94003b112a0247ee19fc5 100644 (file)
@@ -41,8 +41,6 @@
 #include "autoscan.h"
 #include "wnm_sta.h"
 
-extern struct wpa_driver_ops *wpa_drivers[];
-
 static int wpa_supplicant_global_iface_list(struct wpa_global *global,
                                            char *buf, int len);
 static int wpa_supplicant_global_iface_interfaces(struct wpa_global *global,
index 39b837e58b4c8c61e2fe21495446538b117ff14c..37f0c78138bf395cd50e8e36d5579c5aab1f0b79 100644 (file)
@@ -16,8 +16,6 @@
 #include "driver_i.h"
 #include "p2p_supplicant.h"
 
-extern struct wpa_driver_ops *wpa_drivers[];
-
 
 static void usage(void)
 {
index 4afaae90496a048ab54661e6feda26e728d1f6a5..3c4355a19078869c53d06da5d1378436cabc773d 100644 (file)
@@ -552,8 +552,6 @@ static void wpa_priv_interface_deinit(struct wpa_priv_interface *iface)
 }
 
 
-extern struct wpa_driver_ops *wpa_drivers[];
-
 static struct wpa_priv_interface *
 wpa_priv_interface_init(const char *dir, const char *params)
 {
index d999e06a1dffd53c81c50d561af72f6dfcc9dbb7..d3e11acafcd063c51c3974290388fe4746ea66f1 100644 (file)
@@ -107,7 +107,6 @@ const char *wpa_supplicant_full_license5 =
 extern int wpa_debug_level;
 extern int wpa_debug_show_keys;
 extern int wpa_debug_timestamp;
-extern struct wpa_driver_ops *wpa_drivers[];
 
 /* Configure default/group WEP keys for static WEP */
 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)