]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Silence compiler warning in no-NEED_AP_MLME builds
authorJouni Malinen <jouni@codeaurora.org>
Thu, 9 Jan 2020 10:44:08 +0000 (12:44 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 9 Jan 2020 10:44:08 +0000 (12:44 +0200)
Make the dummy hostapd_hw_mode_txt() wrapper return "UNKNOWN" instead of
NULL to avoid a warning from a debug printf using %s with NULL.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/hw_features.h

index 902a19f9f3100cc3415c04cd9bb532aacb60d229..67493193aa21c7791dae41ef2243eb33b8f2baff 100644 (file)
@@ -49,7 +49,7 @@ static inline int hostapd_select_hw_mode(struct hostapd_iface *iface)
 
 static inline const char * hostapd_hw_mode_txt(int mode)
 {
-       return NULL;
+       return "UNKNOWN";
 }
 
 static inline int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)