Hi, just tested on STM32MP157x-DK2 with the https://wiki.st.com/stm32mpu/wiki/How_to_setup_a_WLAN_connection#Automatic_WiFi_configuration_at_start_up
(only section 3 to be followed).
No issue to ping google.com (using Android phone as hotspot)
Tested after sync + reboot and also after a complete power down. No issue, connection is still automatic and working.
root@stm32mp1:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:9D:6B:87:40:FB
inet addr:192.168.43.202 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::29d:6bff:fe87:40fb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4837 (4.7 KiB) TX bytes:10701 (10.4 KiB)
root@stm32mp1:~# cat /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
psk=b73eb99d9bb4e249def63d24177ca0d51ae9baa96306e0aeed87c063cf44b4e8
}
root@stm32mp1:~# iw wlan0 link
Connected to 4e:6a:f7:b4:f5:e4 (on wlan0)
SSID: xxxxxxx
freq: 2437
RX: 6726 bytes (35 packets)
TX: 12767 bytes (73 packets)
signal: -30 dBm
rx bitrate: 1.0 MBit/s
tx bitrate: 24.0 MBit/s
bss flags: short-preamble short-slot-time
dtim period: 2
beacon int: 100
root@stm32mp1:~# ping google.com
PING google.com (216.58.213.78) 56(84) bytes of data.
64 bytes from lhr25s01-in-f78.1e100.net (216.58.213.78): icmp_seq=1 ttl=113 time=59.6 ms
Did you have anything to share like above to see some error messages ?
Is timedatectl show synchronized data/time ?
On my side, the "temporary failure in name resolution" appear when I shutdown the wifi hotspot on the phone (so, you are likely not really connected to your iPhone hotspot).
Maybe start again the setup from a fresh Starter Package of Ecosystem v5.1.0
Regards