diff mbox series

[OpenWrt-Devel,19.07,05/14] hostapd: revert signature change in patch

Message ID 20191106110514.20413-6-ynezz@true.cz
State Changes Requested
Headers show
Series bump hostap to latest stable release | expand

Commit Message

Petr Štetiar Nov. 6, 2019, 11:05 a.m. UTC
From: "Leon M. George" <leon@georgemail.eu>

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 a123df275846b1b83aaf3d7488a1544f7c0e09aa)
---
 .../services/hostapd/patches/410-limit_debug_messages.patch     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/package/network/services/hostapd/patches/410-limit_debug_messages.patch b/package/network/services/hostapd/patches/410-limit_debug_messages.patch
index d182e8d98681..687589d74638 100644
--- a/package/network/services/hostapd/patches/410-limit_debug_messages.patch
+++ b/package/network/services/hostapd/patches/410-limit_debug_messages.patch
@@ -124,7 +124,7 @@ 
   * 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);
-+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)
 +		return;