I have also created one sample binary in which it is trying to connect to one specific router and captured logs of both working and not working boards in STA mode as well.
Please check following logs for reference.
I (2705) ESP_BOARD_TESTING: ********* initialise_wifi_in_sta_mode started ***********
tcpip_task_hdlxxx : 3ffc851c, prio:18,stack:2048
D (2725) nvs: nvs_open misc 1
D (2725) nvs: nvs_get_str_or_blob log
I (2725) wifi: frc2_timer_task_hdl:3ffc9f5c, prio:22, stack:2048
D (2735) nvs: nvs_open nvs.net80211 1
D (2735) nvs: nvs_get opmode 1
D (2745) nvs: nvs_get country 1
D (2745) nvs: nvs_get_str_or_blob sta.ssid
D (2745) nvs: nvs_get_str_or_blob sta.mac
D (2755) nvs: nvs_get sta.authmode 1
D (2755) nvs: nvs_get_str_or_blob sta.pswd
D (2765) nvs: nvs_get_str_or_blob sta.pmk
D (2765) nvs: nvs_get sta.chan 1
D (2765) nvs: nvs_get auto.conn 1
D (2775) nvs: nvs_get bssid.set 1
D (2775) nvs: nvs_get_str_or_blob sta.bssid
D (2775) nvs: nvs_get sta.phym 1
D (2785) nvs: nvs_get sta.phybw 1
D (2785) nvs: nvs_get_str_or_blob sta.apsw
D (2795) nvs: nvs_get_str_or_blob sta.apinfo
D (2795) nvs: nvs_get_str_or_blob ap.ssid
D (2795) nvs: nvs_get_str_or_blob ap.mac
D (2805) nvs: nvs_get_str_or_blob ap.passwd
D (2805) nvs: nvs_get_str_or_blob ap.pmk
D (2815) nvs: nvs_get ap.chan 1
D (2815) nvs: nvs_get ap.authmode 1
D (2815) nvs: nvs_get ap.hidden 1
D (2825) nvs: nvs_get ap.max.conn 1
D (2825) nvs: nvs_get bcn.interval 2
D (2825) nvs: nvs_get ap.phym 1
D (2835) nvs: nvs_get ap.phybw 1
D (2835) nvs: nvs_get ap.sndchan 1
D (2835) nvs: nvs_set_blob sta.mac 6
D (2845) nvs: nvs_set_blob ap.mac 6
I (2845) wifi: pp_task_hdl : 3ffcc7a8, prio:23, stack:8192
1) read ssid :::::::: ESP-WiFi
2)read pwd :::::::::: ESPWiFiIn
D (2855) nvs: nvs_set_blob sta.ssid 36
D (2865) nvs: nvs_set_blob sta.pswd 65
D (2865) nvs: nvs_set bssid.set 1 0
I (2865) ESP_BOARD_TESTING: Setting STATION WiFi configuration SSID ESP-WiFi...
I (2875) ESP_BOARD_TESTING: Setting STATION WiFi configuration password ESPWiFiIn...
I (2885) wifi: mode : sta (24:0a:c4:04:df:7c)
D (2885) event: SYSTEM_EVENT_STA_START
I (2895) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_START event called ***********
I (2905) ESP_BOARD_TESTING: JN516X_RESET_GPIO_26 on system startup :: 0
I (2905) ESP_BOARD_TESTING: TLINK_RESET_GPIO_27 on system startup :: 0
I (3025) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (3665) wifi: state: init -> auth (b0)
I (3675) wifi: state: auth -> assoc (0)
I (3675) wifi: state: assoc -> run (10)
I (3685) wifi: connected with ESP-WiFi, channel 1
D (3685) event: SYSTEM_EVENT_STA_CONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, channel:1, authmode:3
I (3695) ESP_BOARD_TESTING: ********* event_handler :: default called :: esp_get_free_heap_size :: 177696 ***********
D (7255) event: SYSTEM_EVENT_STA_GOTIP, ip:192.168.61.151, mask:255.255.255.0, gw:192.168.61.1
I (7255) event: ip: 192.168.61.151, mask: 255.255.255.0, gw: 192.168.61.1
I (7255) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_GOT_IP event called ***********
I (13675) wifi: pm start, type:0
I (2360) ESP_BOARD_TESTING: ********* initialise_wifi_in_sta_mode started ***********
tcpip_task_hdlxxx : 3ffc851c, prio:18,stack:2048
D (2380) nvs: nvs_open misc 1
D (2380) nvs: nvs_get_str_or_blob log
I (2380) wifi: frc2_timer_task_hdl:3ffc9f5c, prio:22, stack:2048
D (2390) nvs: nvs_open nvs.net80211 1
D (2390) nvs: nvs_get opmode 1
D (2400) nvs: nvs_get country 1
D (2400) nvs: nvs_get_str_or_blob sta.ssid
D (2400) nvs: nvs_get_str_or_blob sta.mac
D (2410) nvs: nvs_get sta.authmode 1
D (2410) nvs: nvs_get_str_or_blob sta.pswd
D (2420) nvs: nvs_get_str_or_blob sta.pmk
D (2420) nvs: nvs_get sta.chan 1
D (2420) nvs: nvs_get auto.conn 1
D (2430) nvs: nvs_get bssid.set 1
D (2430) nvs: nvs_get_str_or_blob sta.bssid
D (2430) nvs: nvs_get sta.phym 1
D (2440) nvs: nvs_get sta.phybw 1
D (2440) nvs: nvs_get_str_or_blob sta.apsw
D (2450) nvs: nvs_get_str_or_blob sta.apinfo
D (2450) nvs: nvs_get_str_or_blob ap.ssid
D (2450) nvs: nvs_get_str_or_blob ap.mac
D (2460) nvs: nvs_get_str_or_blob ap.passwd
D (2460) nvs: nvs_get_str_or_blob ap.pmk
D (2470) nvs: nvs_get ap.chan 1
D (2470) nvs: nvs_get ap.authmode 1
D (2470) nvs: nvs_get ap.hidden 1
D (2480) nvs: nvs_get ap.max.conn 1
D (2480) nvs: nvs_get bcn.interval 2
D (2480) nvs: nvs_get ap.phym 1
D (2490) nvs: nvs_get ap.phybw 1
D (2490) nvs: nvs_get ap.sndchan 1
D (2490) nvs: nvs_set_blob sta.mac 6
D (2500) nvs: nvs_set_blob ap.mac 6
I (2500) wifi: pp_task_hdl : 3ffcc7a8, prio:23, stack:8192
D (2510) nvs: nvs_set opmode 1 1
1) read ssid :::::::: ESP-WiFi
2)read pwd :::::::::: ESPWiFiIn
D (2520) nvs: nvs_set_blob sta.ssid 36
D (2520) nvs: nvs_set_blob sta.pswd 65
D (2520) nvs: nvs_set bssid.set 1 0
I (2530) ESP_BOARD_TESTING: Setting STATION WiFi configuration SSID ESP-WiFi...
I (2530) ESP_BOARD_TESTING: Setting STATION WiFi configuration password ESPWiFiIn...
I (2540) wifi: mode : sta (24:0a:c4:04:df:5c)
D (2550) event: SYSTEM_EVENT_STA_START
I (2550) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_START event called ***********
I (2560) ESP_BOARD_TESTING: JN516X_RESET_GPIO_26 on system startup :: 0
I (2570) ESP_BOARD_TESTING: TLINK_RESET_GPIO_27 on system startup :: 0
I (2680) wifi: n:1 0, o:6 0, ap:255 255, sta:1 0, prof:6
I (3330) wifi: state: init -> auth (b0)
I (4330) wifi: state: auth -> init (2)
D (4330) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (4330) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (4460) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (4460) wifi: state: init -> auth (b0)
I (5460) wifi: state: auth -> init (2)
D (5460) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (5460) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (5590) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (5590) wifi: state: init -> auth (b0)
I (6590) wifi: state: auth -> init (2)
D (6590) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (6590) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (6720) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (6720) wifi: state: init -> auth (b0)
I (7720) wifi: state: auth -> init (2)
D (7730) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (7730) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (7860) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (7860) wifi: state: init -> auth (b0)
I (8860) wifi: state: auth -> init (2)
D (8860) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (8860) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (8990) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (8990) wifi: state: init -> auth (b0)
I (9990) wifi: state: auth -> init (2)
D (9990) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (9990) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (10120) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (10120) wifi: state: init -> auth (b0)
I (11120) wifi: state: auth -> init (2)
D (11120) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (11130) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (11250) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (11260) wifi: state: init -> auth (b0)
I (12260) wifi: state: auth -> init (2)
D (12260) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (12260) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (12390) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (12390) wifi: state: init -> auth (b0)
I (13390) wifi: state: auth -> init (2)
D (13390) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (13390) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (13520) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (13520) wifi: state: init -> auth (b0)
I (14520) wifi: state: auth -> init (2)
D (14520) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (14520) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (14650) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (14650) wifi: state: init -> auth (b0)
I (15650) wifi: state: auth -> init (2)
D (15650) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (15660) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (15790) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (15790) wifi: state: init -> auth (b0)
I (16790) wifi: state: auth -> init (2)
D (16790) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (16790) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (16920) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (16920) wifi: state: init -> auth (b0)
I (17920) wifi: state: auth -> init (2)
D (17920) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (17920) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (18050) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (18050) wifi: state: init -> auth (b0)
I (19050) wifi: state: auth -> init (2)
D (19050) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:cc:16:7e:96:eb:60, reason:2
I (19060) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (19180) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (19190) wifi: state: init -> auth (b0)
I (20190) wifi: state: auth -> init (2)
D (20190) event: SYSTEM_EVENT_STA_DISCONNECTED, ssid:ESP-WiFi, ssid_len:8, bssid:ec:bd:1d:c3:90:b0, reason:2
I (20190) ESP_BOARD_TESTING: ********* SYSTEM_EVENT_STA_DISCONNECTED event called ***********
I (20320) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
I (20320) wifi: state: init -> auth (b0)
Also, I have checked list of requested devices into Router with the help of our admin and found that there is no any single entry into requested devices list for not working board into router with which i have tried to connect my board.
Let me know if anyone has any idea or clue for it.