LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 03-21-2015, 11:32 AM   #1
SkarmoutsosV
LQ Newbie
 
Registered: Aug 2012
Location: Lagkadikia, Greece
Distribution: Debian testing
Posts: 27

Rep: Reputation: 11
WiFi can not connect


Hello
I am having difficulties getting RTL8188CUS working on Debian 7.8 (wheezy) LXDE on an old HP zv5112EA laptop.
It looks to me that the WiFi dongle is recognized but it can not connect to AP. After 3 days of tests I have no conclusion.
I am posting some command results which may be useful. Any help would be much appreciated.

Code:
$uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.65-1+deb7u2 i686 GNU/Linux
Code:
$lsusb
0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n
Code:
$sudo lsmod |grep rtl
rtl8192cu        69913 0
rtlwifi          71765 1 rtl8192cu
rtl8192c_common  43842 1 rtl8192cu
mac80211        171389 3 rtl8192c_common,rtlwifi,rtl8192cu
cfg80211        113445 2 mac80211,rtlwifi
usbcore         104555 5 ehci_hcd,ohci_hcd,rtlwifi,rtl8192cu
Code:
$ sudo iwconfig
lo        no wireless extensions.

wlan1     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          
eth0      no wireless extensions.
Code:
$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp

#home wifi
auto wlan1
iface wlan1 inet dhcp
  wpa-ssid SKARM_2.4GHz
  wpa-psk XXXXXXXX (<- 8 digits)
Code:
$ cat /etc/wpa_supplicant/wpa_supplicant.conf
update_config=1
ctrl_interface=/var/run/wpa_supplicant

# default eapol_version=1
eapol_version=2
ap_scan=1
fast_reauth=1
country=GR

# psk: WPA preshared key; 256-bit pre-shared key
# The key used in WPA-PSK mode can be entered either as 64 hex-digits, i.e.,
# 32 bytes or as an ASCII passphrase (in which case, the real PSK will be
# generated using the passphrase and SSID). ASCII passphrase must be between
# 8 and 63 characters (inclusive).
# This field is not needed, if WPA-EAP is used.
# Note: Separate tool, wpa_passphrase, can be used to generate 256-bit keys
# from ASCII passphrase. This process uses lot of CPU and wpa_supplicant
# startup and reconfiguration time can be optimized by generating the PSK only
# only when the passphrase or SSID has actually changed.

#sudo wpa_passphrase SKARM_2.4GHz (here goes my 8 digits)
network={
	ssid="SKARM_2.4GHz"
	scan_ssid=1
	key_mgmt=WPA-PSK
	#psk="XXXXXXXX" (here are the above 8 digits)
	psk=xxxxxxxxx...xxxxxxxxxx (here are 64 hex digits)
}
Code:
$sudo cat /var/log/syslog
Mar 21 18:25:33 debian wpa_supplicant[1742]: wlan1: Failed to initiate AP scan

Last edited by SkarmoutsosV; 03-21-2015 at 11:35 AM. Reason: Syntactic correction
 
Old 03-21-2015, 11:44 AM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Are you sure the SSID is correct?

Check by using:
Code:
# iwlist scan
 
Old 03-21-2015, 12:14 PM   #3
SkarmoutsosV
LQ Newbie
 
Registered: Aug 2012
Location: Lagkadikia, Greece
Distribution: Debian testing
Posts: 27

Original Poster
Rep: Reputation: 11
SSID exists and is functional thru other OS at the same laptop.
Anyway the command you asked gives:
Code:
$ sudo iwlist scan
lo        Interface doesn't support scanning.

wlan1     No scan results

eth0      Interface doesn't support scanning.
 
Old 03-21-2015, 12:24 PM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Do you have the firmware-realtek package installed?
https://wiki.debian.org/rtl819x#Debian_7_.22Wheezy.22
 
Old 03-21-2015, 12:29 PM   #5
SkarmoutsosV
LQ Newbie
 
Registered: Aug 2012
Location: Lagkadikia, Greece
Distribution: Debian testing
Posts: 27

Original Poster
Rep: Reputation: 11
Yes it is installed version 0.36+wheezy.1 (which is the latest for wheezy).
 
Old 03-21-2015, 12:32 PM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
What is the output of:
Code:
ip l
# rfkill list
 
Old 03-21-2015, 12:36 PM   #7
SkarmoutsosV
LQ Newbie
 
Registered: Aug 2012
Location: Lagkadikia, Greece
Distribution: Debian testing
Posts: 27

Original Poster
Rep: Reputation: 11
Code:
$ ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether 00:02:3f:21:27:01 brd ff:ff:ff:ff:ff:ff
3: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT qlen 1000
    link/ether 04:8d:38:37:3e:1e brd ff:ff:ff:ff:ff:ff

$ sudo rfkill list
0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
 
Old 03-21-2015, 12:54 PM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
I have no clue here, sorry.

Is there anything else in the syslog?
Code:
grep wlan1 /var/syslog
EDIT: Also:
Code:
dmesg|grep wlan1

Last edited by Head_on_a_Stick; 03-21-2015 at 01:10 PM. Reason: added `dmesg` command
 
Old 03-21-2015, 01:15 PM   #9
SkarmoutsosV
LQ Newbie
 
Registered: Aug 2012
Location: Lagkadikia, Greece
Distribution: Debian testing
Posts: 27

Original Poster
Rep: Reputation: 11
Actually syslog is full of two kind of messages the one is about AP scan as I posted earlier
and the second is dhclient which fails to get an IP. I suppose the latter is expected with no AP association.
Code:
$sudo grep wlan1 /var/log/syslog
debian dhclient: DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 3
Anyway, Head_on_a_Stick, thank you for your effort.

Any other suggestions are welcome.

Code:
$ sudo dmesg|grep wlan1
[   10.920801] udevd[368]: renamed network interface wlan0 to wlan1
[   17.655755] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 4320.333857] ADDRCONF(NETDEV_UP): wlan1: link is not ready

Last edited by SkarmoutsosV; 03-21-2015 at 01:31 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux mint 12 will not connect to wifi internet or android wifi tethers wilspeak Linux - General 4 06-06-2012 12:40 AM
WiFi can't switch the connection to wifi hotspot when already connect to an AP pologuy Linux - Wireless Networking 2 08-02-2011 03:05 AM
wifi works:how to connect to hotspot,with console?alternative to wifi-wiz assistant? frenchn00b Debian 7 10-30-2009 12:31 PM
Ubuntu 9.04 can't connect to wifi with Intel Wireless WiFi Link 5100 Shinbatsu Linux - Networking 3 08-30-2009 12:55 AM
can't connect wifi at home, but can connect everywhere else Javi2 SUSE / openSUSE 1 08-25-2005 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration