LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2017, 11:54 AM   #1
gilliat
LQ Newbie
 
Registered: Jul 2016
Posts: 8

Rep: Reputation: Disabled
realtek rtl8192ce modules does not work on Debian


My Debian:

Code:
lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.0 (stretch)
Release:	9.0
Codename:	stretch
and my kernel:

Code:
Linux debian 4.9.0-3-686-pae #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) i686 GNU/Linux
and my wifi chipset:

Code:
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)
	Subsystem: AzureWave AW-NE139H Half-size Mini PCIe Card
	Flags: bus master, fast devsel, latency 0, IRQ 17
	I/O ports at d000 [size=256]
	Memory at f7c00000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel
	Capabilities: [160] Device Serial Number 01-91-81-fe-ff-4c-e0-00
	Kernel driver in use: rtl8192ce
	Kernel modules: rtl8192ce
the package I use:
firmware-realtek_20161130-3_all.deb (from https://packages.debian.org/stretch/firmware-realtek)

Network-Manager package: purged
and I do not use other network manager like wicd or anything else.

and kernel modules loaded:

Code:
kernel module loaded: 
rtl8192ce              53248  0
rtl_pci                28672  1 rtl8192ce
rtl8192c_common        40960  1 rtl8192ce
rtlwifi                61440  3 rtl_pci,rtl8192ce,rtl8192c_common
mac80211              548864  3 rtl_pci,rtl8192ce,rtlwifi
my /etc/network/interfaces config:

Code:
auto wlp2s0
iface wlp2s0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
my /etc/wpa_supplicant/wpa_supplicant.conf config:
(as an example, I used http://www.linuxhomenetworking.com/w...g#.WXIWfZ4sLIE)

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
network={
        ssid="0rang3"
        key_mgmt=WPA-PSK
        psk="BLfinland980"
	#i also tried this proto=WPA
}
after loading the config and restart network,here is what happens:

tail -f /var/log/messages:

Code:
Jul 21 07:48:22 debian kernel: [ 2711.622144] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
Jul 21 07:48:24 debian kernel: [ 2712.773829] wlp2s0: authenticate with 24:7f:20:c6:31:3c
Jul 21 07:48:24 debian kernel: [ 2712.806018] wlp2s0: send auth to 24:7f:20:c6:31:3c (try 1/3)
Jul 21 07:48:24 debian kernel: [ 2712.808263] wlp2s0: authenticated
Jul 21 07:48:24 debian kernel: [ 2712.808944] wlp2s0: associate with 24:7f:20:c6:31:3c (try 1/3)
Jul 21 07:48:24 debian kernel: [ 2712.817200] wlp2s0: RX AssocResp from 24:7f:20:c6:31:3c (capab=0x431 status=0 aid=1)
Jul 21 07:48:24 debian kernel: [ 2712.817827] wlp2s0: associated
Jul 21 07:48:24 debian kernel: [ 2712.817880] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
Jul 21 07:48:28 debian kernel: [ 2716.857747] wlp2s0: disassociated from 24:7f:20:c6:31:3c (Reason: 2)
Jul 21 07:48:41 debian kernel: [ 2730.114449] wlp2s0: authenticate with 24:7f:20:c6:31:3c
Jul 21 07:48:41 debian kernel: [ 2730.146862] wlp2s0: send auth to 24:7f:20:c6:31:3c (try 1/3)
Jul 21 07:48:41 debian kernel: [ 2730.149084] wlp2s0: authenticated
Jul 21 07:48:41 debian kernel: [ 2730.153850] wlp2s0: associate with 24:7f:20:c6:31:3c (try 1/3)
Jul 21 07:48:41 debian kernel: [ 2730.158214] wlp2s0: RX AssocResp from 24:7f:20:c6:31:3c (capab=0x431 status=0 aid=1)
Jul 21 07:48:41 debian kernel: [ 2730.158870] wlp2s0: associated
Jul 21 07:48:45 debian kernel: [ 2734.197410] wlp2s0: disassociated from 24:7f:20:c6:31:3c (Reason: 2)ctrl_interface=/var/run/wpa_supplicant
it looks like the wifi connection (or at least the wifi association with the AP) is flapping:

if I 'watch' iwconfig wlp2s0, at some point, the association succeeds (but for a very short time as seen above)

Code:
IEEE 802.11  ESSID:"0rang3"
          Mode:Managed  Frequency:2.412 GHz  Access Point: 24:7F:20:C6:31:3C
          Bit Rate=1 Mb/s   Tx-Power=20 dBm
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=66/70  Signal level=-44 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
If I check the 'service networking status':

Code:
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: active (exited) since Fri 2017-07-21 07:49:23 EDT; 2min 30s ago
     Docs: man:interfaces(5)
  Process: 2964 ExecStop=/sbin/ifdown -a --read-environment --exclude=lo (code=exited, status=0/SUCCESS)
  Process: 3003 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
  Process: 2999 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ] && udevadm settle (code=exited, status=0/SUCCESS)
 Main PID: 3003 (code=exited, status=0/SUCCESS)
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/networking.service
           ├─3030 /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlp2s0.pid -i wlp2s0 -D nl80211,wext -c /etc/wpa_supplicant/wpa_supplicant.conf
           └─3054 /sbin/dhclient -4 -v -pf /run/dhclient.wlp2s0.pid -lf /var/lib/dhcp/dhclient.wlp2s0.leases -I -df /var/lib/dhcp/dhclient6.wlp2s0.leases wlp2s0

Jul 21 07:49:50 debian wpa_supplicant[3030]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jul 21 07:50:51 debian wpa_supplicant[3030]: wlp2s0: CTRL-EVENT-SSID-REENABLED id=0 ssid="0rang3"
Jul 21 07:50:51 debian wpa_supplicant[3030]: wlp2s0: SME: Trying to authenticate with 24:7f:20:c6:31:3c (SSID='0rang3' freq=2412 MHz)
Jul 21 07:50:51 debian wpa_supplicant[3030]: wlp2s0: Trying to associate with 24:7f:20:c6:31:3c (SSID='0rang3' freq=2412 MHz)
Jul 21 07:50:51 debian wpa_supplicant[3030]: wlp2s0: Associated with 24:7f:20:c6:31:3c
Jul 21 07:50:51 debian wpa_supplicant[3030]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=FR
Jul 21 07:50:56 debian wpa_supplicant[3030]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=24:7f:20:c6:31:3c reason=2
Jul 21 07:50:56 debian wpa_supplicant[3030]: wlp2s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
Jul 21 07:50:56 debian wpa_supplicant[3030]: wlp2s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="0rang3" auth_failures=6 duration=90 reason=WRONG_KEY
Jul 21 07:50:56 debian wpa_supplicant[3030]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Notice this log output:
Code:
Jul 21 07:50:56 debian wpa_supplicant[3030]: wlp2s0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
A very similar issue have been already posted:
http://www.linuxquestions.org/questi...failed-843394/
the solution was to put a clear text password which is what I 'm doing.

So I changed 'key_mgmt' in wpa_supplicant.conf as seen in manpage (https://linux.die.net/man/5/wpa_supplicant.conf)

Code:
network={
	ssid="0rang3"
	key_mgmt=WPA-PSK WPA-EAP IEEE8021X NONE
	psk="BLfinland980"
}
but the problem remains exactly the same.

if I put a wrong password, the interface gets associated as well (for very short time as seen in the logs above).
if I disable dhcp, the interface gets associated as well (for very short time as seen in the logs above).

any suggestion is welcome; thanx folks!
 
Old 07-21-2017, 12:32 PM   #2
gilliat
LQ Newbie
 
Registered: Jul 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Cool my glasses

please, sorry for my infinite stupidity; although I have got a brand new pair of glasses, I did not see the password was wrong. Everything is working fine now !!!!
 
Old 07-21-2017, 12:46 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by gilliat View Post
please, sorry for my infinite stupidity; although I have got a brand new pair of glasses, I did not see the password was wrong. Everything is working fine now !!!!
I was quite wondering since actually the config is pretty good. you even did well the /etc/network/interfaces

good job
 
  


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
LXer: Getting Realtek 8188EU Wireless Adapters to work in Linux (and possibly other wireless Realtek chipsets!) LXer Syndicated Linux News 0 02-04-2017 10:06 PM
RealTek 8192su / 8188 /8712 can't get to work with Debian 6 (Squeeze) csvella Linux - Wireless Networking 3 04-23-2013 10:43 PM
Problems with RTL8192CE-VA4 in Fedora 15 kressb Linux - Wireless Networking 15 06-25-2011 03:10 PM
Not able to get my Realtek 8139 to work in Debian 3.1 jhire70 Linux - Hardware 10 10-25-2005 06:42 PM
Install Realtek AC'97 drivers/modules Buck1 Linux - Hardware 3 04-15-2005 10:51 PM

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

All times are GMT -5. The time now is 01:41 AM.

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