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

  1. stop network-manager

    using upstart

    sudo stop network-manager 

    using systemd

    sudo systemctl stop networkmanager.service 
  2. 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 
  3. start wpa_supplicant in daemon mode:

    sudo wpa_supplicant -b -dwext -iwlan0 -c/etc/wpa_supplicant.conf 
  4. run sudo wpa_cli. start interactive wpa_cli session.

    • verify it's working issuing command status. should see wpa_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 seconds wpa_supplicant picks bssid , tries associate , perform key negotiation. want see ctrl-event-connected, indicate pin accepted , you're associated.

    • type command save, should output "ok". update wpa_supplicant.conf file, specified command line, static configuration new network.
    • now exit wpa_cli hitting ctrl d
  5. run sudo dhclient wlan0 ip ap (assuming dhcpd enabled).

  6. verify cat /etc/wpa_supplicant.conf newly updated config-file.

    if went well, should have line under new network titled psk.

good luck!


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User