You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered: