mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 12:14:26 +01:00
take wildcard SSID into account
Specification states (Ch 8.4.2.2 of IEEE Std 802.11-2007) that in Probe Reqest frames SSID IE of length 0 signifies "wildcard" SSID. Return "BROADCAST" from Dot11ManagementFrame::ssid() in such case. Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com>
This commit is contained in:
committed by
Matias Fontanini
parent
cf19c8758d
commit
14b1a4988b
@@ -610,9 +610,12 @@ RSNInformation Dot11ManagementFrame::rsn_information() {
|
||||
|
||||
string Dot11ManagementFrame::ssid() const {
|
||||
const Dot11::option *option = search_option(SSID);
|
||||
if(!option || option->data_size() == 0)
|
||||
if(!option)
|
||||
throw option_not_found();
|
||||
return string((const char*)option->data_ptr(), option->data_size());
|
||||
if(option->data_size() == 0 && this->subtype() == Dot11::PROBE_REQ)
|
||||
return "BROADCAST";
|
||||
else
|
||||
return string((const char*)option->data_ptr(), option->data_size());
|
||||
}
|
||||
|
||||
Dot11ManagementFrame::rates_type Dot11ManagementFrame::supported_rates() const {
|
||||
|
||||
Reference in New Issue
Block a user