Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 88) sorted by relevance

1234

/hostap-latest/src/utils/
Dwpa_debug_zephyr.h28 #define wpa_debug_level_enabled(level) (CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_LEVEL <= (level)) argument
66 #define wpa_printf(level, fmt, ...) \ argument
67 wpa_debug_cond_run(wpa_debug_level_enabled(level), \
68 wpa_printf_impl(level, fmt, ##__VA_ARGS__))
70 void wpa_printf_impl(int level, const char *fmt, ...) PRINTF_FORMAT(2, 3);
84 #define wpa_hexdump(level, title, buf, len) \ argument
85 wpa_debug_cond_run(wpa_debug_level_enabled(level), wpa_hexdump_impl(level, title, buf, len))
87 void wpa_hexdump_impl(int level, const char *title, const void *buf, size_t len);
89 static inline void wpa_hexdump_buf(int level, const char *title, const struct wpabuf *buf) in wpa_hexdump_buf() argument
91 wpa_hexdump(level, title, buf ? wpabuf_head(buf) : NULL, buf ? wpabuf_len(buf) : 0); in wpa_hexdump_buf()
[all …]
Dwpa_debug_zephyr.c26 void wpa_printf_impl(int level, const char *fmt, ...) in wpa_printf_impl() argument
32 if (level < wpa_debug_level) in wpa_printf_impl()
45 switch (level) { in wpa_printf_impl()
67 static void _wpa_hexdump(int level, const char *title, const u8 *buf, size_t len, int show) in _wpa_hexdump() argument
73 if (level < wpa_debug_level) in _wpa_hexdump()
93 wpa_printf(level, "%s - hexdump(len=%lu):%s", title, (unsigned long)len, content); in _wpa_hexdump()
97 void wpa_hexdump_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_impl() argument
99 _wpa_hexdump(level, title, buf, len, 1); in wpa_hexdump_impl()
102 void wpa_hexdump_key_impl(int level, const char *title, const void *buf, size_t len) in wpa_hexdump_key_impl() argument
104 _wpa_hexdump(level, title, buf, len, wpa_debug_show_keys); in wpa_hexdump_key_impl()
[all …]
Dwpa_debug.c47 static int wpa_to_android_level(int level) in wpa_to_android_level() argument
49 if (level == MSG_ERROR) in wpa_to_android_level()
51 if (level == MSG_WARNING) in wpa_to_android_level()
53 if (level == MSG_INFO) in wpa_to_android_level()
108 static int syslog_priority(int level) in syslog_priority() argument
110 switch (level) { in syslog_priority()
209 void wpa_printf(int level, const char *fmt, ...) in wpa_printf() argument
213 if (level >= wpa_debug_level) { in wpa_printf()
216 __android_log_vprint(wpa_to_android_level(level), in wpa_printf()
223 vsyslog(syslog_priority(level), fmt, ap); in wpa_printf()
[all …]
Dwpa_debug.h74 void wpa_printf(int level, const char *fmt, ...)
88 void wpa_hexdump(int level, const char *title, const void *buf, size_t len);
90 static inline void wpa_hexdump_buf(int level, const char *title, in wpa_hexdump_buf() argument
93 wpa_hexdump(level, title, buf ? wpabuf_head(buf) : NULL, in wpa_hexdump_buf()
110 void wpa_hexdump_key(int level, const char *title, const void *buf, size_t len);
112 static inline void wpa_hexdump_buf_key(int level, const char *title, in wpa_hexdump_buf_key() argument
115 wpa_hexdump_key(level, title, buf ? wpabuf_head(buf) : NULL, in wpa_hexdump_buf_key()
132 void wpa_hexdump_ascii(int level, const char *title, const void *buf,
149 void wpa_hexdump_ascii_key(int level, const char *title, const void *buf,
187 void wpa_msg(void *ctx, int level, const char *fmt, ...) PRINTF_FORMAT(3, 4);
[all …]
/hostap-latest/src/fst/
Dfst_internal.h20 #define fst_printf(level, format, ...) \ argument
21 wpa_printf((level), "FST: " format, ##__VA_ARGS__)
23 #define fst_printf_group(group, level, format, ...) \ argument
24 wpa_printf((level), "FST: %s: " format, \
27 #define fst_printf_iface(iface, level, format, ...) \ argument
28 fst_printf_group(fst_iface_get_group(iface), (level), "%s: " format, \
Dfst_session.c28 #define fst_printf_session(s, level, format, ...) \ argument
29 fst_printf((level), "%u (0x%08x): [" MACSTR "," MACSTR "] :" format, \
35 #define fst_printf_siface(s, iface, level, format, ...) \ argument
36 fst_printf_session((s), (level), "%s: " format, \
39 #define fst_printf_sframe(s, is_old, level, format, ...) \ argument
42 (level), format, ##__VA_ARGS__)
/hostap-latest/tests/hwsim/
Dtest_hapd_ctrl.py647 level = hapd.request("LOG_LEVEL")
648 if "Current level: MSGDUMP" not in level:
649 raise Exception("Unexpected debug level(1): " + level)
650 if "Timestamp: 1" not in level:
651 raise Exception("Unexpected timestamp(1): " + level)
655 level = hapd.request("LOG_LEVEL")
656 if "Current level: MSGDUMP" not in level:
657 raise Exception("Unexpected debug level(2): " + level)
658 if "Timestamp: 0" not in level:
659 raise Exception("Unexpected timestamp(2): " + level)
[all …]
Dtest_wpas_ctrl.py1158 level = dev[2].request("LOG_LEVEL")
1159 if "Current level: MSGDUMP" not in level:
1160 raise Exception("Unexpected debug level(1): " + level)
1161 if "Timestamp: 1" not in level:
1162 raise Exception("Unexpected timestamp(1): " + level)
1166 level = dev[2].request("LOG_LEVEL")
1167 if "Current level: MSGDUMP" not in level:
1168 raise Exception("Unexpected debug level(2): " + level)
1169 if "Timestamp: 0" not in level:
1170 raise Exception("Unexpected timestamp(2): " + level)
[all …]
/hostap-latest/src/common/
Dctrl_iface_common.c77 void sockaddr_print(int level, const char *msg, struct sockaddr_storage *sock, in sockaddr_print() argument
93 wpa_printf(level, "%s %s:%s", msg, host, service); in sockaddr_print()
105 wpa_printf(level, "%s %s", msg, addr_txt); in sockaddr_print()
110 wpa_printf(level, "%s", msg); in sockaddr_print()
191 socklen_t fromlen, const char *level) in ctrl_iface_level() argument
195 wpa_printf(MSG_DEBUG, "CTRL_IFACE LEVEL %s", level); in ctrl_iface_level()
203 dst->debug_level = atoi(level); in ctrl_iface_level()
Dctrl_iface_common.h32 void sockaddr_print(int level, const char *msg, struct sockaddr_storage *sock,
40 socklen_t fromlen, const char *level);
/hostap-latest/wpa_supplicant/
Dctrl_iface_zephyr.c52 int level, const char *buf, in wpa_supplicant_ctrl_iface_send() argument
66 ifname, level); in wpa_supplicant_ctrl_iface_send()
68 os_snprintf(levelstr, sizeof(levelstr), "<%d>", level); in wpa_supplicant_ctrl_iface_send()
78 if (level >= dst->debug_level) { in wpa_supplicant_ctrl_iface_send()
95 static void wpa_supplicant_ctrl_iface_msg_cb(void *ctx, int level, in wpa_supplicant_ctrl_iface_msg_cb() argument
111 &priv->ctrl_dst, level, txt, len); in wpa_supplicant_ctrl_iface_msg_cb()
120 level, txt, len); in wpa_supplicant_ctrl_iface_msg_cb()
377 void wpa_supplicant_msg_send(void *ctx, int level, in wpa_supplicant_msg_send() argument
381 wpa_supplicant_ctrl_iface_msg_cb(ctx, level, type, txt, len); in wpa_supplicant_msg_send()
Dctrl_iface_unix.c56 int level; member
66 int level, const char *buf,
82 int level = MSG_MSGDUMP; in wpas_ctrl_sock_debug() local
85 level = MSG_EXCESSIVE; in wpas_ctrl_sock_debug()
95 wpa_printf(level, in wpas_ctrl_sock_debug()
121 char *level) in wpa_supplicant_ctrl_iface_level() argument
123 wpa_printf(MSG_DEBUG, "CTRL_IFACE LEVEL %s", level); in wpa_supplicant_ctrl_iface_level()
125 return ctrl_iface_level(&priv->ctrl_dst, from, fromlen, level); in wpa_supplicant_ctrl_iface_level()
331 gpriv->sock, &gpriv->ctrl_dst, msg->level, in wpas_ctrl_msg_send_pending_global()
352 &priv->ctrl_dst, msg->level, in wpas_ctrl_msg_send_pending_iface()
[all …]
Dctrl_iface_udp.c60 int level, const char *buf,
160 char *level) argument
167 wpa_printf(MSG_DEBUG, "CTRL_IFACE LEVEL %s", level);
186 dst->debug_level = atoi(level);
363 static void wpa_supplicant_ctrl_iface_msg_cb(void *ctx, int level, argument
380 priv->sock, &priv->ctrl_dst, level, txt, len);
389 level, txt, len);
522 int level, const char *buf, argument
540 ifname, level);
542 os_snprintf(levelstr, sizeof(levelstr), "<%d>", level);
[all …]
Dctrl_iface_named_pipe.c84 int level, const char *buf,
425 static void wpa_supplicant_ctrl_iface_msg_cb(void *ctx, int level, in wpa_supplicant_ctrl_iface_msg_cb() argument
432 wpa_supplicant_ctrl_iface_send(wpa_s->ctrl_iface, level, txt, len); in wpa_supplicant_ctrl_iface_msg_cb()
479 int level, const char *buf, in wpa_supplicant_ctrl_iface_send() argument
493 os_snprintf(levelstr, sizeof(levelstr), "<%d>", level); in wpa_supplicant_ctrl_iface_send()
506 if (dst->attached && level >= dst->debug_level) { in wpa_supplicant_ctrl_iface_send()
Dbss.h110 int level; member
213 bss->level = new_level; in wpa_bss_update_level()
Dctrl_iface.h147 wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv, int level, in wpa_supplicant_ctrl_iface_send() argument
Dwnm_sta.c689 (target->level < in get_mbo_transition_candidate()
760 MAC2STR(wpa_s->bssid), bss->level); in compare_scan_neighbor_results()
811 if (target->level < bss->level && target->level < -80) { in compare_scan_neighbor_results()
817 target->level); in compare_scan_neighbor_results()
843 MAC2STR(target->bssid), target->level, in compare_scan_neighbor_results()
/hostap-latest/tests/fuzzing/asn1/
Dasn1.c33 static int asn1_parse(const u8 *buf, size_t len, int level) in asn1_parse() argument
42 _level = level; in asn1_parse()
67 if (asn1_parse(pos, hdr.length, level + 1) < 0) in asn1_parse()
134 if (asn1_parse(pos, hdr.length, level + 1) < 0) in asn1_parse()
140 if (asn1_parse(pos, hdr.length, level + 1) < 0) in asn1_parse()
/hostap-latest/src/tls/
Dtlsv1_server_i.h77 void tlsv1_server_alert(struct tlsv1_server *conn, u8 level, u8 description);
82 u8 * tlsv1_server_send_alert(struct tlsv1_server *conn, u8 level,
Dtlsv1_client_i.h79 void tls_alert(struct tlsv1_client *conn, u8 level, u8 description);
87 u8 * tlsv1_client_send_alert(struct tlsv1_client *conn, u8 level,
/hostap-latest/tests/fuzzing/p2p/
Dp2p.c18 static void debug_print(void *ctx, int level, const char *msg) in debug_print() argument
20 wpa_printf(level, "P2P: %s", msg); in debug_print()
/hostap-latest/src/ap/
Dwpa_auth_i.h313 logger_level level, const char *txt);
315 logger_level level, const char *fmt, ...)
/hostap-latest/hostapd/
Dmain.c46 int level, const char *txt, size_t len) in hostapd_logger_cb() argument
115 if ((conf_stdout & module) && level >= conf_stdout_level) { in hostapd_logger_cb()
121 if ((conf_syslog & module) && level >= conf_syslog_level) { in hostapd_logger_cb()
123 switch (level) { in hostapd_logger_cb()
Dhostapd_cli_zephyr.c354 void hostapd_msg_send(void *hapd, int level, in hostapd_msg_send() argument
366 if (type == WPA_MSG_PER_INTERFACE && level >= MSG_INFO && in hostapd_msg_send()
/hostap-latest/src/eapol_auth/
Deapol_auth_sm.h54 void (*logger)(void *ctx, const u8 *addr, eapol_logger_level level,

1234