Hello, I apologize for yet another wi-fi topic, but I can't find a solution. Bear with me as I strike you with a wall of text, where I'll try to show you what I've done so far.
I should mention that wireless connection worked without any issues on this 6 or 7 years old laptop when running OpenSUSE and Ubuntu. Now I've installed a fresh full Slackware 13.37 (32 bit).
Haven't configured network during installation.
Code:
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Code:
#iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
(I've configured my router so that it has no encryption)
Code:
#iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: <router's mac>
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=70/70 Signal level=-30 dBm
Encryption key:off
ESSID:"linuxquestions"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000024300d80
Extra: Last beacon: 510ms ago
IE: Unknown: 000E6C696E75787175657374696F6E73
IE: Unknown: 010882848B960C121824
IE: Unknown: 030109
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: DD180050F2020101860003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C334E101BFFFF000000000000000000000000000000000000000000
IE: Unknown: 2D1A4E101BFFFF000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C34090F0800000000000000000000000000000000000000
IE: Unknown: 3D16090F0800000000000000000000000000000000000000
IE: Unknown: DD0900037F01010000FF7F
IE: Unknown: DD0A00037F04010000004000
#and a bunch of other networks
Trying to connect to my network:
Code:
#iwconfig wlan0 essid linuxquestions
Code:
#iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"linuxquestions"
Mode:Managed Frequency:2.452 GHz Access Point: F8:D1:11:CF:E8:FC
Bit Rate=1 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=70/70 Signal level=-30 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:1 Missed beacon:0
Looks good. Now to get IP:
Code:
#dhcpcd
dhcpcd[2105]: version 5.2.11 starting
dhcpcd[2105]: wlan0: rebinding lease of 192.168.0.103
dhcpcd[2105]: eth0: waiting for carrier
dhcpcd[2105]: wlan0: acknowledged 192.168.0.103 from 192.168.0.1
dhcpcd[2105]: wlan0: checking for 192.168.0.103
dhcpcd[2105]: wlan0: leased 192.168.0.103 for infinity
dhcpcd[2105]: forked to background, child pid 2152
It worked, but just to be sure:
Code:
#ping linuxquestions.org
PING linuxquestions.org (75.126.162.205) 56(84) bytes of data.
64 bytes from www.linuxquestions.org (75.126.162.205): icmp_req=1 ttl=48 time=161 ms
64 bytes from www.linuxquestions.org (75.126.162.205): icmp_req=2 ttl=48 time=163 ms
64 bytes from www.linuxquestions.org (75.126.162.205): icmp_req=3 ttl=48 time=161 ms
64 bytes from www.linuxquestions.org (75.126.162.205): icmp_req=4 ttl=48 time=160 ms
--- linuxquestions.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 160.654/161.793/163.821/1.252 ms
Great.
Now, need to check if automatic connection during boot works.
Code:
# vim /etc/rc.d/rc.inet1.conf
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.
# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.
# =============================================================================
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY=""
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
## Example config information for wlan0. Uncomment the lines you need and fill
## in your data. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=linuxquestions
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30
Reboot.
Code:
/etc/rc.d/rc.inet1: wlan0 information: 'Any ESSID'
Error for wireless request Set Nickname (8B1C) :
SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
dhcpcd[2017]: version 5.2.11 starting
dhcpcd[2017]: wlan0: waiting for carrier
dhcpcd[2017]: wlan0: carrier acquired
dhcpcd[2017]: wlan0: rebinding lease of 192.168.0.103
dhcpcd[2017]: wlan0: acknowledged 192.168.0.103 from 192.168.0.1
dhcpcd[2017]: wlan0: checking for 192.168.0.103
dhcpcd[2017]: wlan0: leased 192.168.0.103 for infinity
dhcpcd[2017]: forked to background, child pid 2055
There was an error, but it worked.
Now, of course I want my wi-fi to be encrypted eventually, so let's try wicd (but still with unprotected network).
I went back to the original inet1.conf (as suggested in extra/wicd package), installed it and rebooted.
Code:
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:36:6C:77:63
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
wlan0 Link encap:Ethernet HWaddr 00:17:C4:00:22:0B
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Looks like wicd enabled all my cards. That's fine. Now let's try connecting to my network:
Code:
#wicd-curses
Wireless Networks(s)
C STR ESSID ENCRYPT BSSID MODE CHNL
100% linuxquestions Unsecured <mac addr> Master 9
...
a bunch of other networks
...
Not connected
I select my network and press ENTER to connect to it, at the bottom the messages change like this:
Code:
Not connected
None: Putting interface up...
linuxquestions: Obtaining IP address...
Not connected
When I refresh the list:
Code:
No wireless networks found.
So wicd can't even connect to an unprotected network.
And it looks like wicd hard-blocks my card:
Code:
#rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
At this point I can do only one thing to bring back my card up - reboot.
After that ifconfig shows all 3 (eth0, lo, wlan0) interfaces up again.
Checking rfkill:
Code:
#rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
Bringing wlan0 down manually
Code:
#ifconfig wlan0 down
ifconfig shows only 2 interfaces and rfkill prints out no/no, but when I try to bring wlan0 up, it doesn't come up and rfkill shows no/yes!
This laptop has a separate physical button to enable/disable wi-fi card, but it has never worked under any distribution I've tried, so I can't enable it manually.
I've uninstalled wicd and went back to Alien BOB's wiki to configure wi-fi manually using wpa_supplicant (I've reconfigured my router to use WPA-PSK encryption).
Copied output from
Code:
#wpa_passphrase linuxquestions SlacKWaRE
to /etc/wpa_supplicant.conf
Code:
# See /usr/doc/wpa_supplicant-0.7.3/wpa_supplicant.conf.sample
# for many more options that you can use in this file.
# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
#country=US
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
scan_ssid=0
ssid="linuxquestions"
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
#psk="SlacKWaRE"
psk=8c52a60432c1109267723e89231fec2e5d87cc003af3015075b512615f99e799
priority=10
}
# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
network={
key_mgmt=NONE
priority=0
}
Edited /etc/rc.d/rc.inet1.conf as well:
Code:
/etc/rc.d/rc.inet1.conf
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY=""
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
## Example config information for wlan0. Uncomment the lines you need and fill
## in your data. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=linuxquestions
WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30
During boot, I see this:
Code:
/etc/rc.d/rc.M: wlan0 information: 'Any ESSID'
Error for wireless request Set Nickname (8B1C) :
SET failed on device wlan0 ; Operation not supported.
#hangs here for about a minute
SIOCSIFFLAGS: Operation not possible due to RF-kill
Polling for DHCP server on interface wlan0:
dhcpcd[1949]: version 5.2.11 starting
dhcpcd[1949]: wlan0: up_interface: Operation not possible due to RF-kill
dhcpcd[1949]: wlan0: waiting for carrier
dhcpcd[1949]: timed out
dhcpcd[1949]: allowing 8 seconds for IPv4LL timeout
dhcpcd[1949]: timed out
I've also tried setting IP manually in inet1.conf:
Code:
IFNAME[4]="wlan0"
IPADDR[4]="192.168.0.103"
NETMASK[4]="255.255.255.0"
USE_DHCP[4]=""
DHCP_HOSTNAME[4]=""
GATEWAY="192.168.0.1"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=linuxquestions
WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="auto"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30
So, with manual configuration rfkill also shows "hard block yes"
Can anyone throw ideas at me?
P.S. I've tried setting router to use WEP encryption and I could connect to it by editing /etc/rc.d/rc.inet1.conf. However I don't intend to run my router with WEP.
P.P.S I've now booted Ubuntu-live (which connected to my "linuxquestions" "SlaCKwaRE" without problems), but I wanted to check if bringing down and back up wlan0 would also hardblock my card, and the answer is: yes.