Silence compiler warning in no-NEED_AP_MLME builds

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>
This commit is contained in:
Jouni Malinen 2020-01-09 12:44:08 +02:00 committed by Jouni Malinen
parent dd530b8739
commit b4fe37c4fa
1 changed files with 1 additions and 1 deletions

View 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)