Merge "hostapd(hidl): Check for psk length only for psk network config"
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 15a4e83..a64ec79 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -26,6 +26,9 @@
 
 L_CFLAGS += -Wall -Werror
 
+# TODO: move off readdir_r upstream, pull fix back (http://b/72326431).
+L_CFLAGS += -Wno-error-deprecated-declarations
+
 # Disable unused parameter warnings
 L_CFLAGS += -Wno-unused-parameter
 
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index af64d24..699368e 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -37,6 +37,9 @@
 # Disable sign compare warnings
 L_CFLAGS += -Wno-sign-compare
 
+# TODO: move off readdir_r upstream, pull fix back (http://b/72326431).
+L_CFLAGS += -Wno-error-deprecated-declarations
+
 # Disable unused function warnings
 L_CFLAGS += -Wno-unused-function