We should stop the NetworkManger service first before test the wpa_supplicant!
In previous test suite,the connection progress failed because of the NetworkManger's block rule.
So if you want to test the wpa_supplicant wireless tool in your laptop,
be sure to stop the NetworkManager server first.
The following snapshots are my experiments:
only few commands are need to be input:
scan
scan_results
add_network
set_network 0 ssid "dyzdb" //it should supports WPA/WPA2.
set_network 0 psk "zhongduanbu"
enable_network 0