mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 03:51:35 +01:00
Return an empty string for dot11 ssid, if ssid is present but empty
References issue mentioned in #128
This commit is contained in:
@@ -383,12 +383,7 @@ string Dot11ManagementFrame::ssid() const {
|
||||
if (!option) {
|
||||
throw option_not_found();
|
||||
}
|
||||
if (option->data_size() == 0 && subtype() == Dot11::PROBE_REQ){
|
||||
return "BROADCAST";
|
||||
}
|
||||
else {
|
||||
return string((const char*)option->data_ptr(), option->data_size());
|
||||
}
|
||||
return option->to<string>();
|
||||
}
|
||||
|
||||
Dot11ManagementFrame::rates_type Dot11ManagementFrame::supported_rates() const {
|
||||
|
||||
Reference in New Issue
Block a user