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:
parent
e7e24e9979
commit
0daae86fc9
@ -182,9 +182,7 @@ namespace net {
|
|||||||
auto essid_begin = ies + hdr_len;
|
auto essid_begin = ies + hdr_len;
|
||||||
auto essid_end = essid_begin + ies[1];
|
auto essid_end = essid_begin + ies[1];
|
||||||
|
|
||||||
// Only use printable characters of the current locale
|
std::copy(essid_begin, essid_end, std::back_inserter(m_essid));
|
||||||
std::copy_if(essid_begin, essid_end, std::back_inserter(m_essid),
|
|
||||||
[](char c) { return isprint(static_cast<unsigned char>(c)); });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user