Closed AcSiPCCW closed 6 years ago
Looks like a typo bug: the intention of the check should be checking the ssid
instead of the bssid
, as the BSSID is of fixed-length and should never be treated as text strings.
// BUG: why check bssid when we're only dealing with ssid???
if (strlen((char*)ptr->bssid) != 0 && ssid_checkout((char*)ptr->ssid, i)) {
Rssi[i] = ptr->rssi;
memcpy(Ssid[i], ptr->ssid, ptr->ssid_length);
Encr[i] = (uint8_t)ptr->encrypt_type;
++i;
}
In ard_mtk.c, get_scan_list() strlen((char*)ptr->bssid) would be zero if the BSSID starts with 0x00.