diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2011-07-15 15:32:26 -0700 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-08-02 13:03:58 +0300 |
commit | d8f247df4107675cc2ea93c7ccff322f93cb4992 (patch) | |
tree | 14c5b94a407a713f9fbf331d14bb5594e8e6811f /src | |
parent | 334c1663ed53c1f584662c7b58ad2aa23c940097 (diff) | |
download | external_wpa_supplicant_8_ti-d8f247df4107675cc2ea93c7ccff322f93cb4992.zip external_wpa_supplicant_8_ti-d8f247df4107675cc2ea93c7ccff322f93cb4992.tar.gz external_wpa_supplicant_8_ti-d8f247df4107675cc2ea93c7ccff322f93cb4992.tar.bz2 |
Add WPA_UNICODE_SSID support
Change-Id: I1f938b97169d4468ee5b05316826ee509a10d9ad
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/common.c b/src/utils/common.c index 99861ae..5fd5022 100644 --- a/src/utils/common.c +++ b/src/utils/common.c @@ -368,8 +368,10 @@ const char * wpa_ssid_txt(const u8 *ssid, size_t ssid_len) os_memcpy(ssid_txt, ssid, ssid_len); ssid_txt[ssid_len] = '\0'; for (pos = ssid_txt; *pos != '\0'; pos++) { +#ifndef WPA_UNICODE_SSID if ((u8) *pos < 32 || (u8) *pos >= 127) *pos = '_'; +#endif /* WPA_UNICODE_SSID */ } return ssid_txt; } |