[Solved] Cannot detect any wifi network

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
laihama
Posts: 3
Joined: 28. Oct 2014, 22:43

[Solved] Cannot detect any wifi network

Post by laihama »

Hi,

I've recently installed salix 14.1 openbox x86_64 on my computer and I have some difficulties with the wifi connection. I would appreciate some help.

I have a TP Link WN951N PCI Card.
According to http://wireless.kernel.org/en/users/Dri ... s/external this card can be used with the module ath9k.
I can see my card:

Code: Select all

$ lspci | grep Wireless
05:02.0 Network controller: Atheros Communications Inc. AR5416 Wireless Network Adapter [AR5008 802.11(a)bgn] (rev 01)
The module ath9k is loaded:

Code: Select all

$ lsmod | grep ath
ath9k                  97417  0 
ath9k_common           13729  1 ath9k
ath9k_hw              391636  2 ath9k_common,ath9k
ath                    19179  3 ath9k_common,ath9k,ath9k_hw
mac80211              492624  1 ath9k
cfg80211              405306  4 ath,ath9k_common,ath9k,mac80211
compat                  4118  5 cfg80211,ath9k_common,ath9k,mac80211,ath9k_hw
If can find the interface wlan0:

Code: Select all

$ ifconfig
Password:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.25  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a01:e24:fe40:6240:6e62:fee6:6dff:391  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::6e62:fee6:6dff:391  prefixlen 64  scopeid 0x20<link>
        ether 6c:03:62:6d:f4:91  txqueuelen 1000  (Ethernet)
        RX packets 31204  bytes 34931788 (33.3 MiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 25535  bytes 4611395 (4.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 462  bytes 35652 (34.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 462  bytes 35652 (34.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 74:ea:3a:ae:14:b9  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=23 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
But I cannot find any wifi network using wicd or iwlist:

Code: Select all

$ sudo iwlist wlan0 scan
wlan0     No scan results
I can connect to my wifi network when I'm using Windows (dual boot).
I tried to reinstall ath9k using backports but the result is the same.

Any idea what I could try ?
Thanks for any replies.
Last edited by laihama on 31. Oct 2014, 22:42, edited 1 time in total.
User avatar
rokytnji
Posts: 76
Joined: 12. Sep 2014, 22:47
Location: Chihuahua Desert

Re: Cannot detect any wifi network

Post by rokytnji »

Make sure wlan0 is entered into wicd wireless preferences.

http://3.bp.blogspot.com/_nXxHA31u0-0/S ... shot_1.jpg

On of my old screenshots from one of my old how tos years ago,

Be sure to hit the refresh button after typing in wlan0 and closing preferences.

Make sure wext is also selected in wicd>preferences>advanced.
laihama
Posts: 3
Joined: 28. Oct 2014, 22:43

Re: Cannot detect any wifi network

Post by laihama »

Hi,

Thanks for your answer.
I checked and everything is ok in wicd, I have eth0 and wext.
User avatar
rokytnji
Posts: 76
Joined: 12. Sep 2014, 22:47
Location: Chihuahua Desert

Re: Cannot detect any wifi network

Post by rokytnji »

Throw a

Code: Select all

sudo dmesg | tail
In your thread for info. I run "inxi" also in Salix for posting system info. It is in Gslapt. It is invoked through the terminal.

You can use

Code: Select all

inxi -help
to see what options are available.

Code: Select all

inxi --recommends
to show what is missing for inxi to give a full report. Usually. ath5k and I never have any problems. I am surprised you do to be quite honest.
Hence the inxi recommendation so we can see the wifi chip being used.

Mine on this rig for a example

Code: Select all

$ inxi -N
Network:   Card-1: Intel 82567LM Gigabit Network Connection driver: e1000e
           Card-2: Intel WiFi Link 5100 driver: iwlwifi
Edit: My bad for missing wireless chip info in the 1st post. :oops:
Last edited by rokytnji on 30. Oct 2014, 17:21, edited 1 time in total.
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Cannot detect any wifi network

Post by djemos »

Try this and see if it works.

Code: Select all

sudo geany /etc/modprobe.d/ath9k.conf
add the line

Code: Select all

options ath9k nohwcrypt=1
Save the file

Another suggestion

Code: Select all

sudo modprobe -rfv ath5k
sudo modprobe -v ath5k nohwcrypt=1
Do not restart after issuing these commands, just wait till the wireless becomes active again, then retry to connect.
laihama
Posts: 3
Joined: 28. Oct 2014, 22:43

Re: Cannot detect any wifi network

Post by laihama »

Thanks for your suggestion to look in dmesg, I found a way to fix my issue.

Code: Select all

$ sudo dmesg |grep ath
[    0.606664] md: multipath personality registered for level -4
[    6.379535] ath: EEPROM regdomain: 0x809c
[    6.379537] ath: EEPROM indicates we should expect a country code
[    6.379538] ath: doing EEPROM country->regdmn map search
[    6.379539] ath: country maps to regdmn code: 0x52
[    6.379539] ath: Country alpha2 being used: CN
[    6.379540] ath: Regpair used: 0x52
Because my system thinks I'm in China, the wifi Channel 12 and 13 are disabled

Code: Select all

iw list
Wiphy phy0
	Band 1:
		Capabilities: 0x104e
			HT20/HT40
			SM Power Save disabled
			RX HT40 SGI
			No RX STBC
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 8 usec (0x06)
		HT TX/RX MCS rate indexes supported: 0-15
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (disabled)
			* 2472 MHz [13] (disabled)
			* 2484 MHz [14] (disabled)
My router was using the channel 13, everything is working fine with another channel.

Thanks
Post Reply