Ok, this time it worked, but with the old commands and not with the new ones, I think that last time I made a couple of mistakes, I forgot to install "iw.tcz" and maybe I made a mistake with the path (if it is necessary that the path /var/lib/iwd/myssid ends with the ssid of the wifi connection).
But I always had to use sudo su otherwise it wouldn't work.
root@box:/home/tc# printf "mypass" | iwd_passphrase "myssid" > /var/lib/iwd/myssid
Save this output to /var/lib/iwd/myssid.psk
TIP: You can use this output directly as the
help messages are printed to stderr.
root@box:/home/tc# iwd -i wlan0 &
root@box:/home/tc# No Diffie-Hellman support found, WPS will not be available
The following options are missing in the kernel:
CONFIG_KEY_DH_OPERATIONS
Wireless daemon version 1.6
netconfig: Network configuration is disabled.
Wiphy: 0, Name: phy0
Permanent Address: 00:16:ea:85:19:f8
Bands: 2.4 GHz 5 GHz
Ciphers: CCMP TKIP
Supported iftypes: ad-hoc station
Wiphy phy0 will only use the default interface
Could not register frame watch type 00d0: -114
Could not register frame watch type 00d0: -114
root@box:/home/tc# udhcpc -i wlan0
udhcpc: started, v1.33.0
udhcpc: sending discover
udhcpc: sending select for 192.168.43.6
udhcpc: lease of 192.168.43.6 obtained, lease time 3600
deleting routers
route: SIOCDELRT: No such process
adding dns 192.168.43.51
root@box:/home/tc# ping www.google.it
PING www.google.it (142.250.184.195): 56 data bytes
64 bytes from 142.250.184.195: seq=0 ttl=55 time=110.276 ms
64 bytes from 142.250.184.195: seq=1 ttl=55 time=85.981 ms
^C
--- www.google.it ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 85.981/98.128/110.276 ms
Instead the last commands you gave me didn't work:
tc@box:~$ printf "[Security]\nPassphrase=mypass\n" | sudo tee /var/lib/iwd/ima
c.psk
[Security]
Passphrase=mypass
tc@box:~$ cat /var/lib/iwd/myssid.psk
[Security]
Passphrase=mypass
tc@box:~$ sudo iwd -i wlan0 &
tc@box:~$ No Diffie-Hellman support found, WPS will not be available
The following options are missing in the kernel:
CONFIG_KEY_DH_OPERATIONS
Wireless daemon version 1.6
netconfig: Network configuration is disabled.
Wiphy: 0, Name: phy0
Permanent Address: 00:16:ea:85:19:f8
Bands: 2.4 GHz 5 GHz
Ciphers: CCMP TKIP
Supported iftypes: ad-hoc station
Wiphy phy0 will only use the default interface
tc@box:~$ authentication timed out
tc@box:~$ sudo udhcpc -i wlan0
udhcpc: started, v1.33.0
udhcpc: sending discover
udhcpc: sending discover
...