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!