jenssegers / RTL8188-hostapd

hostapd for Realtek RTL8188
http://jenssegers.com
GNU General Public License v2.0
334 stars 114 forks source link

8188eu Accessing the network causes kernel panic (Raspbian wheezy / jessie, kernel 3.x, 4.x) #7

Open elegos opened 9 years ago

elegos commented 9 years ago

Hello!

I've noticed that since I've updated my wheezy machine (and so the jessie with 3.x and 4.x kernels), whenever a client connects to the wifi, the raspberry just kernel panics.

Latest kernels include the rt8188eu module by themselves, but I tried compiling my own version from the sources with the same result.

hostapd.conf:

$ cat /etc/hostapd/hostapd.conf
# Basic configuration

interface=wlan0
ssid=WiFiNet
channel=9
#bridge=br0

# WPA and WPA2 configuration

macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

# Hardware configuration

driver=rtl871xdrv
ieee80211n=1
hw_mode=g
device_name=RTL8192CU
manufacturer=Realtek

lsmod:

 $ lsmod
Module                  Size  Used by
binfmt_misc             7225  1
cfg80211              499322  0
rfkill                 22487  1 cfg80211
ftdi_sio               32406  0
usbserial              31080  1 ftdi_sio
8188eu                770299  0
uio_pdrv_genirq         3682  0
uio                     9993  1 uio_pdrv_genirq
snd_bcm2835            22331  0
snd_pcm                92141  1 snd_bcm2835
snd_timer              23488  1 snd_pcm
snd                    67406  3 snd_bcm2835,snd_timer,snd_pcm
fuse                   92287  1
ipv6                  353799  26

hostapd log (till kernel panic):

Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0xcb6648
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr e8:de:27:0c:87:ab and ssid 'WiFiNet'
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid ignore_broadcast_ssid:0, WiFiNet,7
rtl871x_set_acl
+rtl871x_get_sta_wpaie, c4:9a:02:0f:fc:7d is sta's address
wlan0: STA c4:9a:02:0f:fc:7d IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
+rtl871x_get_sta_wpaie, c4:9a:02:0f:fc:7d is sta's address
wlan0: STA c4:9a:02:0f:fc:7d IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
wlan0: STA c4:9a:02:0f:fc:7d WPA: received EAPOL-Key 2/4 Pairwise with unexpected replay counter
+rtl871x_send_eapol
+rtl871x_send_eapol
rtl871x_set_key_ops
wlan0: AP-STA-CONNECTED c4:9a:02:0f:fc:7d
wlan0: STA c4:9a:02:0f:fc:7d RADIUS: starting accounting session 55C25E5D-00000000
wlan0: STA c4:9a:02:0f:fc:7d WPA: pairwise key handshake completed (RSN)