[Nix-dev] Network Manager vs WPA_Supplicant on Live CD Boot

Domen Kožar domen at dev.si
Thu Nov 5 11:42:37 CET 2015


You're using wrong key:

wlp6s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn"
auth_failures=1 duration=10 reason=WRONG_KEY


On Tue, Nov 3, 2015 at 10:40 AM, Roger Qiu <roger.qiu at polycademy.com> wrote:

> Hi everybody,
>
> On my new laptop, I've been attempting to install NixOS.
>
> My latest problem concerns the WiFi.
>
> Simply put, I tried a bunch of different guides, and tried using
> `wpa_supplicant` to connect to a WPA2 encrypted Wifi network.
>
> It didn't work. Then I tried using `nm_cli` to do the same thing, and it
> worked instantly!
>
> So here's what succeeded in the end (I can access internet):
>
> ```
> nmcli dev wifi connect "TheFishburn" password "#startupaus"
> ```
>
> However this did not work:
>
> ```
> wpa_supplicant -i wlp6s0 -c <(wpa_passphrase "TheFishburn" "#startupaus")
> ```
>
> What would be the reason for Network Manager to work, and yet
> wpa_supplicant to not work? The Network Manager uses wpa_supplicant in the
> backend, so it must be performing some magic that I cannot divine.
>
> For more information, here's my system information:
>
> `lspci -k`:
>
> ```
> 06:00:0 Network controller: Intel Corporation Wireless 7265 (rev 59)
>         Subsystem: Intel Corporation Dual Band Wireless-AC 7265
> Kernel driver in use: iwlwifi
> ```
>
> At bootup I checked the systemctl:
>
> `systemctl status wpa_supplicant.service`:
>
> ```
>
> ● wpa_supplicant.service - WPA supplicant
>    Loaded: loaded
> (/nix/store/kd9pgi9mx3r7cdvwi68xqn4csjkvm59h-wpa_supplicant-2.4/etc/systemd/system/wpa_supplicant.service)
>   Drop-In:
> /nix/store/h4mhqzcbqfj6az0wxgkqh9dpw1hxw2w1-system-units/wpa_supplicant.service.d
>            └─overrides.conf
>    Active: activating (start) since Tue 2015-11-03 08:20:05 UTC; 9min ago
>  Main PID: 916 (wpa_supplicant)
>    CGroup: /system.slice/wpa_supplicant.service
>            └─916
> /nix/store/kd9pgi9mx3r7cdvwi68xqn4csjkvm59h-wpa_supplicant-2.4/sbin//wpa_supplicant
> -u
>
> Nov 03 08:20:05 nixos wpa_supplicant[916]: Successfully initialized
> wpa_supplicant
> Nov 03 08:20:05 nixos wpa_supplicant[916]: Could not read interface
> p2p-dev-wlp6s0 flags: No such device
>
> ```
>
> Here is what `wpa_supplicant` shows when I run the command, the first is
> non-debugging output, the second is where I have the `-d` flag on. It seems
> to run forever, so I just cancel after a while (I also noticed that wpa_cli
> says that it cannot connect to wpa_supplicant).
>
>
> ```
> Successfully initialized wpa_supplicant
> Could not read interface p2p-dev-wlp6s0 flags: No such device
> nl80211: Could not set interface 'p2p-dev-wlp6s0' UP
> nl80211: deinit ifname=p2p-dev-wlp6s0 disabled_11b_rates=0
> p2p-dev-wlp6s0: Failed to initialize driver interface
> P2P: Failed to enable P2P Device interface
> wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
> wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
> wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
> wlp6s0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
> wlp6s0: SME: Trying to authenticate with 2c:e6:cc:1e:e2:9c
> (SSID='TheFishburn' freq=5745 MHz)
> wlp6s0: Trying to associate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn'
> freq=5745 MHz)
> wlp6s0: Associated with 2c:e6:cc:1e:e2:9c
> wlp6s0: CTRL-EVENT-DISCONNECTED bssid=2c:e6:cc:1e:e2:9c reason=3
> locally_generated=1
> wlp6s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
> wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn"
> auth_failures=1 duration=10 reason=WRONG_KEY
> wlp6s0: CTRL-EVENT-SSID-REENABLED id=0 ssid="TheFishburn"
> wlp6s0: SME: Trying to authenticate with 2c:e6:cc:1e:e2:9c
> (SSID='TheFishburn' freq=5745 MHz)
> wlp6s0: Trying to associate with 2c:e6:cc:1e:e2:9c (SSID='TheFishburn'
> freq=5745 MHz)
> wlp6s0: Associated with 2c:e6:cc:1e:e2:9c
> wlp6s0: CTRL-EVENT-DISCONNECTED bssid=2c:e6:cc:1e:e2:9c reason=3
> locally_generated=1
> wlp6s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
> wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn"
> auth_failures=2 duration=23 reason=WRONG_KEY
> wlp6s0: Failed to initiate sched scan
> wlp6s0: CTRL-EVENT-SSID-REENABLED id=0 ssid="TheFishburn"
> wlp6s0: SME: Trying to authenticate with 2c:e6:cc:1e:e2:9c
> (SSID='TheFishburn' freq=5745 MHz)
> wlp6s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="TheFishburn"
> auth_failures=3 duration=46 reason=CONN_FAILED
> nl80211: deinit ifname=wlp6s0 disabled_11b_rates=0
> wlp6s0: CTRL-EVENT-TERMINATING
> ```
>
> And with debugging, see attachment, it's far too long.
>
> Thanks,
> Roger
>
> --
> Founder of Matrix AI
> http://matrix.ai/
> +61420925975
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151105/3de8c127/attachment.html 


More information about the nix-dev mailing list