wireless - How to connect to Wi-Fi AP through WPS? - Ask Ubuntu
how connect wi-fi ap through wps? ways nice: configs, cli, gui - anything.
solution ryanjna...@gmail.com http://code.google.com/p/reaver-wps/issues/detail?id=203
stop network-manager
using upstart
sudo stop network-managerusing systemd
sudo systemctl stop networkmanager.serviceset basic
wpa_supplicant.confin/etc/wpa_supplicant.conf. command overwrite pre-exsiting wpa_supplicant.conf file!:echo -e "ctrl_interface=/var/run/wpa_supplicant\nctrl_interface_group=0\nupdate_config=1" | sudo tee /etc/wpa_supplicant.confstart
wpa_supplicantin daemon mode:sudo wpa_supplicant -b -dwext -iwlan0 -c/etc/wpa_supplicant.confrun
sudo wpa_cli. start interactive wpa_cli session.- verify it's working issuing command
status. should seewpa_state=inactive - issue
scanscan existing access-points. - issue
scan_resultafter few seconds show results scan add our bssid , pin:
wps_reg xx:xx:xx:xx:xx:xx 12345678where
xx:xx:xx:xx:xx:xxbssid scan results. should see "ok". wait few more secondswpa_supplicantpicks bssid , tries associate , perform key negotiation. want seectrl-event-connected, indicate pin accepted , you're associated.- type command
save, should output "ok". updatewpa_supplicant.conffile, specified command line, static configuration new network. - now exit
wpa_clihitting ctrl d
- verify it's working issuing command
run
sudo dhclient wlan0ip ap (assuming dhcpd enabled).verify
cat /etc/wpa_supplicant.confnewly updated config-file.if went well, should have line under new network titled
psk.
good luck!
Comments
Post a Comment