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-manager
using systemd
sudo systemctl stop networkmanager.service
set basic
wpa_supplicant.conf
in/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.conf
start
wpa_supplicant
in daemon mode:sudo wpa_supplicant -b -dwext -iwlan0 -c/etc/wpa_supplicant.conf
run
sudo wpa_cli
. start interactive wpa_cli session.- verify it's working issuing command
status
. should seewpa_state=inactive
- issue
scan
scan existing access-points. - issue
scan_result
after few seconds show results scan add our bssid , pin:
wps_reg xx:xx:xx:xx:xx:xx 12345678
where
xx:xx:xx:xx:xx:xx
bssid scan results. should see "ok". wait few more secondswpa_supplicant
picks bssid , tries associate , perform key negotiation. want seectrl-event-connected
, indicate pin accepted , you're associated.- type command
save
, should output "ok". updatewpa_supplicant.conf
file, specified command line, static configuration new network. - now exit
wpa_cli
hitting ctrl d
- verify it's working issuing command
run
sudo dhclient wlan0
ip ap (assuming dhcpd enabled).verify
cat /etc/wpa_supplicant.conf
newly updated config-file.if went well, should have line under new network titled
psk
.
good luck!
Comments
Post a Comment