Declare wpa_drivers in src/drivers/driver.h
This avoids some warnings from sparse. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
7fd15145ff
commit
fcc61230d1
9 changed files with 6 additions and 15 deletions
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue