Hello, Follow the proper commands as mentioned below.
To connect to a specific AP, use the –c option. For example, to connect to an AP with SSID myAPname with WPA-PSK authentication with TKIP encryption and password fY5jHot6, execute:
\> wlantool -c -ssid myAPname -auth WPAPSK -encr TKIP -key fY5jHot6
If connecting to an AP with SSID myAPname open authentication and no encryption, the command is:
\> wlantool -c -ssid myAPname -auth open -encr none