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
This commit is contained in:
taschenb 2018-08-09 22:09:55 +02:00 committed by NBonaparte
parent e7e24e9979
commit 0daae86fc9
1 changed files with 1 additions and 3 deletions

View File

@ -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<unsigned char>(c)); });
std::copy(essid_begin, essid_end, std::back_inserter(m_essid));
}
}
}