Skip to content

Commit 3bdfbc5

Browse files
committed
Fix #71: Examples->LWiFi->ScanNetworks won't print specific AP if the BSSID starts with 0x00
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.
1 parent 5399336 commit 3bdfbc5

File tree

1 file changed

+1
-1
lines changed
  • middleware/third_party/arduino/hardware/arduino/mt7697/libraries/LWiFi/src/utility

1 file changed

+1
-1
lines changed

middleware/third_party/arduino/hardware/arduino/mt7697/libraries/LWiFi/src/utility/ard_mtk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ int32_t get_scan_list(wifi_event_t event, uint8_t *payload, uint32_t length)
529529
i = 0;
530530
while (number--)
531531
{
532-
if (strlen((char*)ptr->bssid) != 0 && ssid_checkout((char*)ptr->ssid, i)) {
532+
if (strlen((char*)ptr->ssid) != 0 && ssid_checkout((char*)ptr->ssid, i)) {
533533
#if 0
534534
pr_debug("%d\r\n", i);
535535
pr_debug(" rssi:%d\r\n", ptr->rssi);

0 commit comments

Comments
 (0)