# To ignore possible wrong network configurations
L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS
+# Set Android log name
+L_CFLAGS += -DANDROID_LOG_NAME=\"hostapd\"
+
ifdef CONFIG_DRIVER_NL80211
L_CFLAGS += -DANDROID_BRCM_P2P_PATCH
endif
#include <android/log.h>
+#ifndef ANDROID_LOG_NAME
+#define ANDROID_LOG_NAME "wpa_supplicant"
+#endif
+
void android_printf(int level, char *format, ...)
{
if (level >= wpa_debug_level) {
else
level = ANDROID_LOG_DEBUG;
va_start(ap, format);
- __android_log_vprint(level, "wpa_supplicant", format, ap);
+ __android_log_vprint(level, ANDROID_LOG_NAME, format, ap);
va_end(ap);
}
}
# To ignore possible wrong network configurations
L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS
+# Set Android log name
+L_CFLAGS += -DANDROID_LOG_NAME=\"wpa_supplicant\"
+
ifdef CONFIG_DRIVER_NL80211
L_CFLAGS += -DANDROID_BRCM_P2P_PATCH
endif