You are not logged in.
I have a Dell N4010. It has wimax and wlan. I don't care too much about the wimax
I have to use wireless_tools (instead of iw) (WEXT compatible).
wifi-menu shows the WLANs that are within coverage. But when I enter the WPA password, the assocation/"connecting" fails instantly.
iwlist shows the following:
iwlist wlp3s0 scan
wlp3s0 No scan results
iwconfig wlp3s0
wlp3s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
dmesg | grep iwlwifi
[ 10.915846] iwlwifi 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 11.316600] iwlwifi 0000:03:00.0: loaded firmware version 41.28.5.1 build 33926 op_mode iwldvm
[ 11.489076] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 11.489078] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[ 11.489079] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[ 11.489080] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN, REV=0x84
[ 11.490919] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 13.676378] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[ 15.830939] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 15.831203] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 15.831304] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
[ 16.062439] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 16.062669] iwlwifi 0000:03:00.0: L1 Enabled - LTR Disabled
[ 16.062771] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Last edited by Bronze (2017-02-19 23:07:13)
Offline
Use wpa_supplicant and post the errors.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
sudo wpa_supplicant -iwlp3s0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
^Cnl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
wlp3s0: CTRL-EVENT-TERMINATING
This command didn't return, hence the ^C
sudo wpa_supplicant -Dwext -iwlp3s0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
^Cwlp3s0: CTRL-EVENT-TERMINATING
This command didn't return either.
wpa_supplicant.conf contains
ctrl_interface=/run/wpa_supplicant
update_config=1
sudo wpa_supplicant -B -iwlp3s0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
OK, so this last command had no errors ...
wpa_cli
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors
This software may be distributed under the terms of the BSD license.
See README for more details.
Selected interface 'wlp3s0'
Interactive mode
> ...
Making progress!
But it's bedtime. Will report further tomorrow.
Last edited by Bronze (2017-02-07 04:34:46)
Offline
Your last wpa_supplicant was different in two important ways. 1) you ran it with sudo: wpa_supplicant must be run as root or with sudo, so this is good. 2) You added the -B flag, which means it doesn't show any of the output I was looking for. Try these:
sudo wpa_supplicant -iwlp3s0 -c /etc/wpa_supplicant.conf
sudo wpa_cli
> scan
> scan_results
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
This will go on the back burner.
I have a week long business trip ...
Thank for your help so far, will report back my findings asap.
Offline
I ran the command as suggested, but after the last line of output nothing happens (no prompt). Is there other output I should provide?
$ sudo wpa_supplicant -iwlp3s0 -c /etc/wpa_supplicant.conf
[sudo] password for jlbakker:
Successfully initialized wpa_supplicant
wlp3s0: SME: Trying to authenticate with 58:6d:8f:a2:bd:25 (SSID='Bakker-G' freq=2462 MHz)
wlp3s0: Trying to associate with 58:6d:8f:a2:bd:25 (SSID='Bakker-G' freq=2462 MHz)
wlp3s0: Associated with 58:6d:8f:a2:bd:25
wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp3s0: WPA: Key negotiation completed with 58:6d:8f:a2:bd:25 [PTK=CCMP GTK=CCMP]
wlp3s0: CTRL-EVENT-CONNECTED - Connection to 58:6d:8f:a2:bd:25 completed [id=0 id_str=]
Offline
That actually looks like it worked fine. Generally one would run wpa_supplicant with the -B flag as you had previously, however this hides all the useful output it tends to give it something goes wrong. Now when you run it without the -B flag, you get to see the output but it isn't -Backgrounded, so it blocks the terminal. This is normal.
So you can either A) open another terminal or B) run the wpa_supplicant command again with the -B flag, then proceed with the next steps.
Based on the history of this thread, I would have thought the next step would be to start wpa_cli and scan (run `sudo wpa_cli` then at the promp `scan` then wait for a moment for results, then `scan_results`). However, based on your last post it looks like wpa_supplicant already successfully associated with a network. Did you add your network to wpa_supplicant.conf? If you're not sure, please post the contents of /etc/wpa_supplicant.conf here or on a file sharing site you can link to. Also, please post the output of `ip a` after wpa_supplicant starts successfully (as it did in your last post).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
My laptop has a wired connection: enp4s0
ip a:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether f0:4d:a2:6b:4a:89 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.13/24 brd 192.168.1.255 scope global enp4s0
valid_lft forever preferred_lft forever
inet6 fe80::2ae7:1934:1f03:57e0/64 scope link
valid_lft forever preferred_lft forever
3: enp0s29u1u5: <NO-CARRIER,NOARP,UP> mtu 1400 qdisc fq_codel state DOWN group default qlen 20
link/ether 64:d4:da:1f:68:ee brd ff:ff:ff:ff:ff:ff
4: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:23:15:b7:48:bc brd ff:ff:ff:ff:ff:ff
inet6 fe80::5f89:5d39:5a9f:4953/64 scope link tentative
valid_lft forever preferred_lft forever
wpa_supplicant.conf:
update_config=1
network={
ssid="..."
psk="..."
}
I am happy to report that ifconfig reported that an IP address was assigned after running "dhcpcd wlp3s0"!
How can I configure the laptop to get an IP address during reboot?
Having two IP addresses is somewhat cool (but useless as I have only one ISP) At least, I could move the laptop away from the ethernet cable.
Offline
Glad it's working. I'd not try to have both the ethernet and wireless connected at the same time. But to get wireless started automatically at boot, you can enable the wpa_supplicant hook for dhcpcd (as described in the wiki) and then just enable dhdpcd@wlp3s0.service
That way dhcpcd will start at boot and fire up wpa_supplicant which will connect to any available network that you have a conf entry for. This is great for roaming between networks, just add a network= block for each one to your wpa_supplicant.conf and you'll be connected on boot to whichever one is available.
There are also various complex network management tools ... I have no idea what they are for
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline