From 0daae86fc92f25313c459f8911c3100940ace8cd Mon Sep 17 00:00:00 2001 From: taschenb Date: Thu, 9 Aug 2018 22:09:55 +0200 Subject: [PATCH] fix(net): Allow all characters for the SSID Don't filter out any character that is not part of the current C locale, since it might drop some wanted characters --- src/adapters/net_nl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/adapters/net_nl.cpp b/src/adapters/net_nl.cpp index 816812e4..0a72601a 100644 --- a/src/adapters/net_nl.cpp +++ b/src/adapters/net_nl.cpp @@ -182,9 +182,7 @@ namespace net { auto essid_begin = ies + hdr_len; auto essid_end = essid_begin + ies[1]; - // Only use printable characters of the current locale - std::copy_if(essid_begin, essid_end, std::back_inserter(m_essid), - [](char c) { return isprint(static_cast(c)); }); + std::copy(essid_begin, essid_end, std::back_inserter(m_essid)); } } }