Declare wpa_debug_* variables in src/utils/wpa_debug.h
These were somewhat more hidden to avoid direct use, but there are now numerous places where these are needed and more justification to make the extern int declarations available from wpa_debug.h. In addition, this avoids some warnings from sparse. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
fcc61230d1
commit
0187c41d88
27 changed files with 4 additions and 73 deletions
|
@ -41,8 +41,6 @@ static int hostapd_broadcast_wep_clear(struct hostapd_data *hapd);
|
|||
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;
|
||||
|
||||
|
||||
int hostapd_for_each_interface(struct hapd_interfaces *interfaces,
|
||||
int (*cb)(struct hostapd_iface *iface,
|
||||
|
|
|
@ -125,8 +125,6 @@ static void tls_log_func(int level, const char *msg)
|
|||
}
|
||||
|
||||
|
||||
extern int wpa_debug_show_keys;
|
||||
|
||||
void * tls_init(const struct tls_config *conf)
|
||||
{
|
||||
struct tls_global *global;
|
||||
|
|
|
@ -2901,7 +2901,6 @@ int tls_connection_get_write_alerts(void *ssl_ctx, struct tls_connection *conn)
|
|||
static void ocsp_debug_print_resp(OCSP_RESPONSE *rsp)
|
||||
{
|
||||
#ifndef CONFIG_NO_STDOUT_DEBUG
|
||||
extern int wpa_debug_level;
|
||||
BIO *out;
|
||||
size_t rlen;
|
||||
char *txt;
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
#include "radius_das.h"
|
||||
|
||||
|
||||
extern int wpa_debug_level;
|
||||
|
||||
|
||||
struct radius_das_data {
|
||||
int sock;
|
||||
u8 *shared_secret;
|
||||
|
|
|
@ -298,8 +298,6 @@ struct radius_server_data {
|
|||
};
|
||||
|
||||
|
||||
extern int wpa_debug_level;
|
||||
|
||||
#define RADIUS_DEBUG(args...) \
|
||||
wpa_printf(MSG_DEBUG, "RADIUS SRV: " args)
|
||||
#define RADIUS_ERROR(args...) \
|
||||
|
|
|
@ -11,6 +11,10 @@
|
|||
|
||||
#include "wpabuf.h"
|
||||
|
||||
extern int wpa_debug_level;
|
||||
extern int wpa_debug_show_keys;
|
||||
extern int wpa_debug_timestamp;
|
||||
|
||||
/* Debugging function - conditional printf and hex dump. Driver wrappers can
|
||||
* use these for debugging purposes. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue