aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-31 17:19:37 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-31 17:19:37 (GMT)
commitfcc61230d1475f5a7b185ad7e086dbefdb9f69b8 (patch)
tree322a45b02eecb4b85722775e97ea5c8e62269dd3 /src
parent7fd15145ffc45782306f4665875833f2e3c06597 (diff)
downloadhostap-fcc61230d1475f5a7b185ad7e086dbefdb9f69b8.zip
hostap-fcc61230d1475f5a7b185ad7e086dbefdb9f69b8.tar.gz
hostap-fcc61230d1475f5a7b185ad7e086dbefdb9f69b8.tar.bz2
Declare wpa_drivers in src/drivers/driver.h
This avoids some warnings from sparse. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/ap/hostapd.c1
-rw-r--r--src/drivers/driver.h3
-rw-r--r--src/drivers/drivers.c5
3 files changed, 6 insertions, 3 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index 69459f7..71f8ee2 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -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,
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index eecb736..b4442be 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -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 */
diff --git a/src/drivers/drivers.c b/src/drivers/drivers.c
index 04eb4fd..446ab63 100644
--- a/src/drivers/drivers.c
+++ b/src/drivers/drivers.c
@@ -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 */