My raspberry pi 2 (running Ubuntu 14.04) with SIIG wireless mini adapter is unable to maintain a connection with the access point. It does not seem to be signal strength related, as it behaves well while connected.
The setup has the raspberry pi powered from a powered USB 3 hub, with the wifi adapter also connected to the hub, and the raspberry pi also connected to the hub as master.
I have r8188 module loaded, with power saving disabled:
cat /etc/modprobe.d/r8188eu.conf
options r8188eu rtw_power_mgnt=0 rtw_enusbss=0
iwconfig wlan0 shows:
wlan0 IEEE 802.11bgn ESSID:"xxxxxxxx" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.437 GHz Access Point: 00:11:22:33:44:55
Bit Rate:72.2 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-****-**** Security mode:open
Power Management:off
Link Quality:0/100 Signal level:40/100 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
But the signal level reported changes from 0 to 40. On the router side it indicates 4 or 5 bars to this device.
From /etc/network/interfaces:
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant.conf
wireless-power off
Pinging from other machine on wireless network:
Request timeout for icmp_seq 2327
Request timeout for icmp_seq 2328
64 bytes from 192.168.2.199: icmp_seq=2329 ttl=64 time=4.445 ms
....
64 bytes from 192.168.2.199: icmp_seq=2341 ttl=64 time=1.969 ms
Request timeout for icmp_seq 2342
Request timeout for icmp_seq 2343
The number of successful pings is 12-15, with a similar number of requests timed out.
At boot time, this is listed in dmesg:
[ 4.536377] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.666079] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_UNKNOWN_CUT(10)_1T1R_RomVer(0)
[ 4.872514] usbcore: registered new interface driver r8188eu
In dmesg output, this is repeated:
[ 1604.256629] R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
[ 1606.205210] R8188EU: ERROR assoc success
[ 1630.304910] R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
[ 1632.523159] R8188EU: ERROR assoc success
Looking in /var/log/syslog:
Sep 23 20:15:20 piweather2 kernel: [ 1790.628050] R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
Sep 23 20:15:22 piweather2 kernel: [ 1792.578095] R8188EU: ERROR assoc success
Sep 23 20:15:22 piweather2 wpa_supplicant[498]: wlan0: Associated with 00:11:22:33:44:55
Sep 23 20:15:22 piweather2 wpa_supplicant[498]: wlan0: WPA: Key negotiation completed with 00:11:22:33:44:55 [PTK=CCMP GTK=CCMP]
Sep 23 20:15:22 piweather2 wpa_supplicant[498]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:11:22:33:44:55 completed [id=0 id_str=]
Sep 23 20:15:44 piweather2 kernel: [ 1814.672934] R8188EU: ERROR linked_status_chk(wlan0) disconnect or roaming
Sep 23 20:15:46 piweather2 kernel: [ 1816.641622] R8188EU: ERROR assoc success
Sep 23 20:15:46 piweather2 wpa_supplicant[498]: wlan0: WPA: EAPOL-Key Replay Counter did not increase - dropping packet
Sep 23 20:15:46 piweather2 wpa_supplicant[498]: wlan0: Associated with 00:11:22:33:44:55
Sep 23 20:15:47 piweather2 wpa_supplicant[498]: wlan0: WPA: Key negotiation completed with 00:11:22:33:44:55 [PTK=CCMP GTK=CCMP]
Sep 23 20:15:47 piweather2 wpa_supplicant[498]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:11:22:33:44:55 completed [id=0 id_str=]
Not sure what more I can try, so looking for advice
Thanks