hostapd: revert signature change in patch
The original wpa_hexdump uses a 'void *' for the payload. With patch
410-limit_debug_messages, the signature changes and compiler warnings
occur at various places. One such warning is:
wpa_debug.h:106:20: note: expected 'const u8 * {aka const unsigned char *}' but argument is of type 'struct wpa_eapol_key *'
Signed-off-by: Leon M. George <leon@georgemail.eu>
[commit message facelift]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit a123df2758)
This commit is contained in:
committed by
Petr Štetiar
parent
047329273b
commit
0fcf02d0a5
@@ -124,7 +124,7 @@
|
|||||||
* configuration. The contents of buf is printed out has hex dump.
|
* configuration. The contents of buf is printed out has hex dump.
|
||||||
*/
|
*/
|
||||||
-void wpa_hexdump(int level, const char *title, const void *buf, size_t len);
|
-void wpa_hexdump(int level, const char *title, const void *buf, size_t len);
|
||||||
+static inline void wpa_hexdump(int level, const char *title, const u8 *buf, size_t len)
|
+static inline void wpa_hexdump(int level, const char *title, const void *buf, size_t len)
|
||||||
+{
|
+{
|
||||||
+ if (level < CONFIG_MSG_MIN_PRIORITY)
|
+ if (level < CONFIG_MSG_MIN_PRIORITY)
|
||||||
+ return;
|
+ return;
|
||||||
|
|||||||
Reference in New Issue
Block a user