2012-07-24 13:56:36

by Xavier de Almeida

[permalink] [raw]
Subject: Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Thanks Larry for your help.
I tried 3.4.6 and 3.5.0 Quantal kernels but they didn't boot with my i8042 keyboard chip.

So I have installed?3.2.23-030223 and it now starts OK.

FYI here is the new log (I ll have to investigate why the auth between the endpoint and the hotspot doesn't work)

MERCI
XabiX?

Configuration file: /etc/hostapd/hostapd.conf
nl80211: Register Action command failed: ret=-114 (Operation already in progress)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Interface wlan0 is in bridge br0
nl80211: Add own interface ifindex 3
nl80211: Add own interface ifindex 4
nl80211: New interface mon.wlan0 created: ifindex=9
nl80211: Add own interface ifindex 9
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Completing interface initialization
Mode: IEEE 802.11g ?Channel: 6 ?Frequency: 2437 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr e0:91:53:6f:55:e7 and ssid 'myWIFI'
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=12):
? ? ?53 77 65 65 74 20 48 6f 6d 65 20 32 ? ? ? ? ? ? ? myWIFI ? ?
PSK (ASCII passphrase) - hexdump_ascii(len=24): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=4 alg=3 addr=(nil) key_idx=1 set_tx=1 seq_len=0 key_len=16
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for our SSID
mgmt::proberesp cb
mgmt::auth
authentication: STA=88:30:8a:52:ed:cd auth_alg=0 auth_transaction=1 status_code=0 wep=0
? New STA
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authentication OK (open system)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-AUTHENTICATE.indication(88:30:8a:52:ed:cd, OPEN_SYSTEM)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-DELETEKEYS.request(88:30:8a:52:ed:cd)
authentication reply: STA=88:30:8a:52:ed:cd auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
mgmt::auth cb
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=88:30:8a:52:ed:cd capab_info=0x431 listen_interval=10
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
? new AID 1
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: associated (aid 1)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-ASSOCIATE.indication(88:30:8a:52:ed:cd)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-DELETEKEYS.request(88:30:8a:52:ed:cd)
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x981cb48 key_idx=0 set_tx=1 seq_len=0 key_len=0
? ?addr=88:30:8a:52:ed:cd
wlan0: STA 88:30:8a:52:ed:cd WPA: event 1 notification
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x981cb48 key_idx=0 set_tx=1 seq_len=0 key_len=0
? ?addr=88:30:8a:52:ed:cd
wlan0: STA 88:30:8a:52:ed:cd WPA: start authentication
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x981cb48 key_idx=0 set_tx=1 seq_len=0 key_len=0
? ?addr=88:30:8a:52:ed:cd
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.1X: unauthorizing port
WPA: 88:30:8a:52:ed:cd WPA_PTK_GROUP entering state IDLE
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state AUTHENTICATION
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state AUTHENTICATION2
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state INITPSK
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state PTKSTART
wlan0: STA 88:30:8a:52:ed:cd WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
IEEE 802.1X: 88:30:8a:52:ed:cd TX status - version=2 type=3 length=95 - ack=1
wlan0: STA 88:30:8a:52:ed:cd WPA: EAPOL-Key timeout
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state PTKSTART
wlan0: STA 88:30:8a:52:ed:cd WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 88:30:8a:52:ed:cd TX status - version=2 type=3 length=95 - ack=1
wlan0: STA 88:30:8a:52:ed:cd WPA: EAPOL-Key timeout
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state PTKSTART
wlan0: STA 88:30:8a:52:ed:cd WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 88:30:8a:52:ed:cd TX status - version=2 type=3 length=95 - ack=1
wlan0: STA 88:30:8a:52:ed:cd WPA: EAPOL-Key timeout
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state PTKSTART
wlan0: STA 88:30:8a:52:ed:cd WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 88:30:8a:52:ed:cd TX status - version=2 type=3 length=95 - ack=1
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for our SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for our SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for our SSID
mgmt::proberesp cb
wlan0: STA 88:30:8a:52:ed:cd WPA: EAPOL-Key timeout
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state PTKSTART
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 88:30:8a:52:ed:cd reason 2
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state DISCONNECTED
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x981cb48 key_idx=0 set_tx=1 seq_len=0 key_len=0
? ?addr=88:30:8a:52:ed:cd
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.1X: unauthorizing port
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: deauthenticated due to local deauth request
nl80211: Event message available
nl80211: Ignored unknown event (cmd=20)
Data/PS-poll frame from not associated STA 88:30:8a:52:ed:cd
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for our SSID
mgmt::proberesp cb
mgmt::auth
authentication: STA=88:30:8a:52:ed:cd auth_alg=0 auth_transaction=1 status_code=0 wep=0
? New STA
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authentication OK (open system)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-AUTHENTICATE.indication(88:30:8a:52:ed:cd, OPEN_SYSTEM)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-DELETEKEYS.request(88:30:8a:52:ed:cd)
authentication reply: STA=88:30:8a:52:ed:cd auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
mgmt::auth cb
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=88:30:8a:52:ed:cd capab_info=0x431 listen_interval=10
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
? new AID 1
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: associated (aid 1)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-ASSOCIATE.indication(88:30:8a:52:ed:cd)
wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-DELETEKEYS.request(88:30:8a:52:ed:cd)
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x981cb48 key_idx=0 set_tx=1 seq_len=0 key_len=0
? ?addr=88:30:8a:52:ed:cd
wlan0: STA 88:30:8a:52:ed:cd WPA: event 1 notification
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x981cb48 key_idx=0 set_tx=1 seq_len=0 key_len=0
? ?addr=88:30:8a:52:ed:cd
wlan0: STA 88:30:8a:52:ed:cd WPA: start authentication
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=0x981cb48 key_idx=0 set_tx=1 seq_len=0 key_len=0
? ?addr=88:30:8a:52:ed:cd
wlan0: STA 88:30:8a:52:ed:cd IEEE 802.1X: unauthorizing port
WPA: 88:30:8a:52:ed:cd WPA_PTK_GROUP entering state IDLE
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state AUTHENTICATION
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state AUTHENTICATION2
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state INITPSK
WPA: 88:30:8a:52:ed:cd WPA_PTK entering state PTKSTART
wlan0: STA 88:30:8a:52:ed:cd WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)


2012-07-30 20:03:16

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)


>> (any cheap, good and working USB wifi device which has more power than an embedded chip as the rtl8188 ? it's a shame that we can't add just an antenna vs another wifi hw)
>
>One of the Alfa AWUS036 models has an RTL8188CU chip in it. I think it ends in HR. Besides that, there are a number of devices that use the rt2800usb or ath9k variants that have external antennas.
>
>I cannot run my RTL8188CE as an internal device as it is not white listed by my BIOS, thus I have no idea how well it works with standard laptop antennas.
>
>Larry


I can't tell you as I don't have a laptop either, I have a xs36v which is a barebone so it's all embedded.
What do you mean by "it s not white listed by my BIOS"?

XabiX

2012-07-26 12:44:10

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Thanks for your script and the working config file.

1/ here is my output of "cat /proc/sys/fs/file-max"
333653

2/ I have compared the working hostapd.conf file with mine here are the differences: (working file -> mine)
#bridge=br0 ->?bridge=br0
ssid=home ->?ssid=Sweet Home 2 (and?wpa_passphrase changed)

then it gives me another error message when I launch hostapd:

xabix@HTPC:~$ sudo hostapd -dd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: Interface wlan0 is in bridge br0
nl80211: Add own interface ifindex 3
nl80211: Add own interface ifindex 4
nl80211: New interface mon.wlan0 created: ifindex=8
nl80211: Add own interface ifindex 8
Could not set interface mon.wlan0 flags: Success
nl80211: Remove interface ifindex=8
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x9a988f0 user_data=0x9a9a760 handler=0x807c5e0
ELOOP: remaining socket: sock=6 eloop_data=0x9a9c548 user_data=(nil) handler=0x8086770

syslog:
Jul 26 14:39:01 HTPC CRON[3689]: (root) CMD ( ?[ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
Jul 26 14:40:13 HTPC NetworkManager[1266]: ? ?SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0)
Jul 26 14:40:13 HTPC NetworkManager[1266]: ? ?SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0): no ifupdown configuration found.
Jul 26 14:40:13 HTPC kernel: [ 6327.389619] rtl8192ce:_rtl92ce_llt_write():<0-0> Failed to polling write LLT done at address 0!
Jul 26 14:40:13 HTPC kernel: [ 6327.389629] rtl8192ce:rtl92ce_hw_init():<0-0> Init MAC failed
Jul 26 14:40:13 HTPC avahi-daemon[1258]: Withdrawing workstation service for mon.wlan0.
Jul 26 14:40:13 HTPC NetworkManager[1266]: ? ?SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0)
Jul 26 14:41:46 HTPC kernel: [ 6420.634598] rtl8192ce:_rtl92ce_llt_write():<0-0> Failed to polling write LLT done at address 0!
Jul 26 14:41:46 HTPC kernel: [ 6420.634606] rtl8192ce:rtl92ce_hw_init():<0-0> Init MAC failed
Jul 26 14:41:46 HTPC NetworkManager[1266]: ? ?SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0)
Jul 26 14:41:46 HTPC NetworkManager[1266]: ? ?SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0): no ifupdown configuration found.
Jul 26 14:41:46 HTPC avahi-daemon[1258]: Withdrawing workstation service for mon.wlan0.
Jul 26 14:41:46 HTPC NetworkManager[1266]: ? ?SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0)

I will try your script and report.


Xabix

2012-07-30 18:06:29

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

A part of "modinfo rtl8192ce" says
>parm:? ips:Set to 0 to not use link power save (default 1) (bool)
>
>Load the modules with "sudo modprobe rtl8192ce ips=0" or create the appropriate rtl8192ce.conf file, and power saving is disables.
>
>The RTL8187L, the chip in the AWUS036H will never work in AP mode. It has only one hardware queue, and getting the timing right for beacons is extremely difficult, and not worth the effort.
>
>> Have you had to add parameters in your rtl8192ce.conf file in modprobe?
>Except for testing, I use no module parameters. If any were always necessary, I
>would change the default.
>
>Larry

Good to know so I will not waste my time with this AWUS036H device.

FYI a good blog on the sharing a wireline and wireless network, setthing up the AP with dhcp, proxy ARP etc...
http://savvyadmin.com/virtualbox-wireless-bridging-with-dhcp/?


AS you suggested, I only kept ips=0 for my rtl8192ce
/etc/modprobe.d/rtl8192ce.conf?
options rtl8192ce ips=0

# ips:Set to 0 to not use link power save (default 1)
# swlps:Set to 1 to use SW control power save (default 0)
# fwlps:Set to 1 to use FW control power save (default 1)
# debug:Set debug level (0-5) (default 0) (int)

(any cheap, good and working USB wifi device which has more power than an embedded chip as the rtl8188 ? it's a shame that we can't add just an antenna vs another wifi hw)

2012-07-27 11:51:31

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/27/2012 01:34 AM, Xavier de Almeida wrote:
> Hi Larry,
>
> I am using hostapd v0.7.3 but I did not install the bleeding-edge compat-wireless drivers.
>
> What I noticed is that your script refers to module se while I have a ce. (I am not sure if this can impact or explain the differences between your setup and mine).
>
> When I download the drivers from http://wireless.kernel.org/en/users/Download#Where_to_download_bleeding_edge, I got this file "compat-wireless-2.6.tar.bz2" which contains maybe a too old version compat-wireless-2012-05-10.
>
> Should I install this version?
> If I install kernel 3.5.0, will I still need to install the compat-wireless drivers?

The SE was in the ESSID. Do you think that matters?? The chip I used was an
RTL8188CE, the same as yours.

You need to install the bleeding-edge compat wireless from
http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2.
That sounds like the version you got.

Installing kernel 3.5 0 will get older drivers than compat-wireless. That is the
way that kernel development works. The ones in 3.5.0 should be OK, but
installing compat would be easier than generating a 3.5 kernel.

Larry




2012-07-30 19:51:45

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/30/2012 01:06 PM, Xavier de Almeida wrote:
>
> (any cheap, good and working USB wifi device which has more power than an embedded chip as the rtl8188 ? it's a shame that we can't add just an antenna vs another wifi hw)

One of the Alfa AWUS036 models has an RTL8188CU chip in it. I think it ends in
HR. Besides that, there are a number of devices that use the rt2800usb or ath9k
variants that have external antennas.

I cannot run my RTL8188CE as an internal device as it is not white listed by my
BIOS, thus I have no idea how well it works with standard laptop antennas.

Larry



2012-07-30 21:31:47

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/30/2012 03:03 PM, Xavier de Almeida wrote:
>
> I can't tell you as I don't have a laptop either, I have a xs36v which is a barebone so it's all embedded.
> What do you mean by "it s not white listed by my BIOS"?

Laptops made by HP and Lenovo, and maybe others, have a BIOS that contains
information about what wireless cards are approved - the so-called white list.
If you install a card not on the list, the machine refuses to boot.

Larry



2012-07-30 21:27:29

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/30/2012 03:17 PM, Xavier de Almeida wrote:
> I did some ADSL test connected through the wireless.
> When I use my router wifi (bcm57xx) I get 20 times a better download than with the rtl8188 chip. The upload is exactly the same and both are connected with g.

In my tests, the RTL8192CE has throughput of roughly 20 Mbps when connected to
an 802.11g network as a station. As 27 is the maximum, 20x is impossible. When
an 802.11n connection is used, I get about 80 Mbps. You need to give a detailed
setup, and actual numbers, preferably when connected to a local host, not
something on the Internet.

> Signal is lower but still good at 4/5 meters from the barebone.
>
> Any potential reason?

Driver rtl8192ce is optimized to work as a station. If you want better
performance as an AP, you will have to sort that out yourself.

Larry


2012-07-27 16:43:47

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Without touching anything it started to work:

Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: association OK (aid 1)
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: associated (aid 1)
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-ASSOCIATE.indication(88:30:8a:52:ed:cd)
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-DELETEKEYS.request(88:30:8a:52:ed:cd)
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: event 1 notification
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: start authentication
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.1X: unauthorizing port
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: sending 1/4 msg of 4-Way Handshake
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: received EAPOL-Key frame (2/4 Pairwise)
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: sending 3/4 msg of 4-Way Handshake
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: received EAPOL-Key frame (4/4 Pairwise)
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.1X: authorizing port
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd RADIUS: starting accounting session 5012BD3F-00000000
Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: pairwise key handshake completed (RSN)

but the signal is very weak so maybe that was one of the issues.

I am looking fwd to remove the power mgt stuff and maybe find out how to increase the signal power. Maybe I should be a kind of antennat but not sure this will work with a barebone like the xs36v.

Merci

----- Mail original -----
> De?: Xavier de Almeida <[email protected]>
> ??: "[email protected]" <[email protected]>
> Cc?: Larry Finger <[email protected]>
> Envoy? le : Vendredi 27 juillet 2012 17h59
> Objet?: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)
>
> Larry can you tell me what do you have for power mgt settings in
>
> /etc/modprobe.d/rtl8192ce.conf?
> options rtl8192ce ips=0 swenc=1
>
> systool -v -m rtl8192ce
> Module = "rtl8192ce"
>
> ? Attributes:
> ? ? coresize ? ? ? ? ? ?= "74421"
> ? ? initsize ? ? ? ? ? ?= "0"
> ? ? initstate ? ? ? ? ? = "live"
> ? ? refcnt ? ? ? ? ? ? ?= "0"
> ? ? srcversion ? ? ? ? ?= "AE758D5E662358264A4DB35"
> ? ? taint ? ? ? ? ? ? ? = ""
> ? ? uevent ? ? ? ? ? ? ?= <store method only>
>
> ? Parameters:
> ? ? debug ? ? ? ? ? ? ? = "0"
> ? ? fwlps ? ? ? ? ? ? ? = "Y"
> ? ? ips ? ? ? ? ? ? ? ? = "N"
> ? ? swenc ? ? ? ? ? ? ? = "Y"
> ? ? swlps ? ? ? ? ? ? ? = "N"
>
> ? Sections:
> ? ? .altinstr_replacement= "0x00000000"
> ? ? .altinstructions ? ?= "0x00000000"
> ? ? .bss ? ? ? ? ? ? ? ?= "0x00000000"
> ? ? .data ? ? ? ? ? ? ? = "0x00000000"
> ? ? .devinit.rodata ? ? = "0x00000000"
> ? ? .exit.text ? ? ? ? ?= "0x00000000"
> ? ? .gnu.linkonce.this_module= "0x00000000"
> ? ? .init.text ? ? ? ? ?= "0x00000000"
> ? ? .note.gnu.build-id ?= "0x00000000"
> ? ? .parainstructions ? = "0x00000000"
> ? ? .rodata ? ? ? ? ? ? = "0x00000000"
> ? ? .rodata.str1.1 ? ? ?= "0x00000000"
> ? ? .rodata.str1.4 ? ? ?= "0x00000000"
> ? ? .strtab ? ? ? ? ? ? = "0x00000000"
> ? ? .symtab ? ? ? ? ? ? = "0x00000000"
> ? ? .text ? ? ? ? ? ? ? = "0x00000000"
> ? ? __mcount_loc ? ? ? ?= "0x00000000"
> ? ? __param ? ? ? ? ? ? = "0x00000000"
>
> Thanks
> XabiX
>
>
> ----- Mail original -----
>> De?: Xavier de Almeida <[email protected]>
>> ??: "[email protected]"
> <[email protected]>
>> Cc?: Larry Finger <[email protected]>
>> Envoy? le : Vendredi 27 juillet 2012 17h38
>> Objet?: Re: Tr : Tr : Can't make RTL8188CE work with hostapd
> (rtl8192ce)
>>
>>> ? Hi Larry,
>>
>>>
>>> ? So after rebooting (and installing the compat drivers from 05-10) it
> seems
>> to
>>> ? work meaning that the process runs:
>>>
>>> ? 5 S root ? ? ?1486 ? ? 1 ?0 ?80 ? 0 - ?1415 poll_s 16:03 ? ? ? ?
> ?00:00:00
>>> ? /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd
> /etc/hostapd/hostapd.conf
>>>
>>>
>>> ? Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? authentication OK (open system)
>>> ? Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? authenticated
>>> ? Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? association OK (aid 1)
>>> ? Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? associated (aid 1)
>>> ? Jul 27 16:06:18 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? deauthenticated due to local deauth request
>>> ? Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? authentication OK (open system)
>>> ? Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? authenticated
>>> ? Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? association OK (aid 1)
>>> ? Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? associated (aid 1)
>>> ? Jul 27 16:06:25 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? deauthenticated due to local deauth request
>>> ? Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? authentication OK (open system)
>>> ? Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? authenticated
>>> ? Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? association OK (aid 1)
>>> ? Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE
> 802.11:
>>> ? associated (aid 1)
>>>
>>> ? but I launch manually it doesn't work anymore
>>>
>>> ? xabix@HTPC:~$ sudo service hostapd stop
>>> ? [sudo] password for xabix:?
>>> ? ?* Stopping advanced IEEE 802.11 management hostapd
>>> ? ? ?...done.
>>> ? xabix@HTPC:~$ /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd
>>> ? /etc/hostapd/hostapd.conf
>>> ? Configuration file: /etc/hostapd/hostapd.conf
>>> ? ctrl_interface_group=0
>>> ? nl80211: Register Action command failed: ret=-1 (Operation not
> permitted)
>>> ? nl80211: Register Action match - hexdump(len=1): 06
>>> ? nl80211: Failed to register Action frame processing - ignore for now
>>> ? nl80211: Add own interface ifindex 3
>>> ? nl80211: Add own interface ifindex 4
>>> ? nl80211: Failed to set interface 4 to mode 3: -1 (Operation not
> permitted)
>>> ? nl80211: Failed to set interface 4 to mode 3: -1 (Operation not
> permitted)
>>> ? Could not set interface wlan0 flags: Permission denied
>>> ? nl80211: Interface mode change to 3 from 0 failed
>>> ? nl80211: Failed to set interface wlan0 into AP mode
>>> ? nl80211 driver initialization failed.
>>> ? rmdir[ctrl_interface]: No such file or directory
>>> ? ELOOP: remaining socket: sock=4 eloop_data=0x9cdc910
> user_data=0x9cde780
>>> ? handler=0x807c
>>>
>>>
>>> ? so the only to launch it for now is to reboot :)
>>>
>>> ? I dit put this on the conf file
>>> ? # Levels (minimum value for logged events):
>>> ? # ?0 = verbose debugging
>>> ? # ?1 = debugging
>>> ? # ?2 = informational messages
>>> ? # ?3 = notification
>>> ? # ?4 = warning
>>> ? logger_syslog=1
>>> ? logger_syslog_level=0
>>>
>>>
>>> ? but I don't see enough logs to know why after the association
> there is
>> a
>>> ? deauthentication.
>>>
>>> ? Cheers
>>> ? almost there :D
>>
>>
>> Too me it looks like it's working but the isc-dhcp-relay dies when the
>> interface goes down for power mgt;
>>
>> xabix@HTPC:~$ sudo tcpdump -n -i br0 port bootps or port bootpc
>> [sudo] password for xabix:?
>> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
>> listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes
>> 16:42:48.997437 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request
> from
>> 88:30:8a:52:ed:cd, length 356
>>
>>
>> Jul 27 16:10:31 HTPC dhcrelay: receive_packet failed on wlan0: Network is
> down
>>
>> Jul 27 16:43:50 HTPC NetworkManager[1282]: <info> Unmanaged Device
> found;
>> state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
>> Jul 27 16:43:50 HTPC NetworkManager[1282]: <info> Unmanaged Device
> found;
>> state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
>> Jul 27 17:32:00 HTPC kernel: [ 5321.199053] init: isc-dhcp-relay main
> process
>> (4351) terminated with status 1
>> Jul 27 17:32:00 HTPC kernel: [ 5321.199116] init: isc-dhcp-relay main
> process
>> ended, respawning
>> Jul 27 17:32:00 HTPC dhcrelay: Usage: dhcrelay [-4] [-d] [-q] [-a] [-D]#012
> ? ?
>> ? ? ? ? ? ? ? ? [-A <length>] [-c <hops>] [-p <port>]#012
> ? ?
>> ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ?
> [-m
>> append|replace|forward|discard]#012 ? ? ? ? ? ? ? ? ? ? [-i interface0 [
> ... -i
>> interfaceN]#012 ? ? ? ? ? ? ? ? ? ? server0 [ ... serverN]#012#012 ? ? ?
>> dhcrelay -6 ? [-d] [-q] [-I] [-c <hops>] [-p <port>]#012 ? ? ?
> ? ? ?
>> ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? -l lower0
> [
>> ... -l lowerN]#012 ? ? ? ? ? ? ? ? ? ? -u upper0 [ ... -u upperN]#012 ? ? ?
>
>> lower (client link): [address%]interface[#index]#012 ? ? ? upper (server
> link):
>> [address%]interface
>> Jul 27 17:32:00 HTPC kernel: [ 5321.209552] init: isc-dhcp-relay main
> process
>> (4353) terminated with status 1
>> Jul 27 17:32:00 HTPC kernel: [ 5321.209637] init: isc-dhcp-relay main
> process
>> ended, respawning
>> Jul 27 17:32:00 HTPC dhcrelay: Usage: dhcrelay [-4] [-d] [-q] [-a] [-D]#012
> ? ?
>> ? ? ? ? ? ? ? ? [-A <length>] [-c <hops>] [-p <port>]#012
> ? ?
>> ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ?
> [-m
>> append|replace|forward|discard]#012 ? ? ? ? ? ? ? ? ? ? [-i interface0 [
> ... -i
>> interfaceN]#012 ? ? ? ? ? ? ? ? ? ? server0 [ ... serverN]#012#012 ? ? ?
>> dhcrelay -6 ? [-d] [-q] [-I] [-c <hops>] [-p <port>]#012 ? ? ?
> ? ? ?
>> ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? -l lower0
> [
>> ... -l lowerN]#012 ? ? ? ? ? ? ? ? ? ? -u upper0 [ ... -u upperN]#012 ? ? ?
>
>> lower (client link): [address%]interface[#index]#012 ? ? ? upper (server
> link):
>> [address%]interface
>> Jul 27 17:32:00 HTPC kernel: [ 5321.220074] init: isc-dhcp-relay main
> process
>> (4355) terminated with status 1
>> Jul 27 17:32:00 HTPC kernel: [ 5321.220143] init: isc-dhcp-relay main
> process
>> ended, respawning
>>
>

2012-07-28 15:25:26

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/27/2012 11:38 AM, Xavier de Almeida wrote:
> Without touching anything it started to work:
>
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: association OK (aid 1)
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: associated (aid 1)
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-ASSOCIATE.indication(88:30:8a:52:ed:cd)
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd MLME: MLME-DELETEKEYS.request(88:30:8a:52:ed:cd)
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: event 1 notification
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: start authentication
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.1X: unauthorizing port
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: sending 1/4 msg of 4-Way Handshake
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: received EAPOL-Key frame (2/4 Pairwise)
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: sending 3/4 msg of 4-Way Handshake
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: received EAPOL-Key frame (4/4 Pairwise)
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.1X: authorizing port
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd RADIUS: starting accounting session 5012BD3F-00000000
> Jul 27 18:34:27 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd WPA: pairwise key handshake completed (RSN)
>
> but the signal is very weak so maybe that was one of the issues.
>
> I am looking fwd to remove the power mgt stuff and maybe find out how to increase the signal power. Maybe I should be a kind of antennat but not sure this will work with a barebone like the xs36v.

I run mine, when I test AP mode, without any options.

I'm glad you got it working. Now you know why I recommend spending 40 euro for
an AP rather than trying to use a 600 euro computer for that purpose. BTW, I own
4 AP/routers.

Larry





2012-07-30 20:17:18

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

I did some ADSL test connected through the wireless.
When I use my router wifi (bcm57xx) I get 20 times a better download than with the rtl8188 chip. The upload is exactly the same and both are connected with g.

Signal is lower but still good at 4/5 meters from the barebone.

Any potential reason?

mon.wlan0 ?IEEE 802.11bgn ?Mode:Monitor ?Frequency:2.437 GHz ?Tx-Power=20 dBm ??
? ? ? ? ? Retry ?long limit:7 ? RTS thr:off ? Fragment thr:off
? ? ? ? ? Power Management:on

XabiX


2012-07-26 09:58:53

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Thanks Larry for your inputs.

>From this thread it looks like it's not a given piece of work to get the RTL8188CE stable.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/902557?

Anyway I have started to compile the 3.4.6 kernel see how it goes. I hope I don't need to add the compat-wireless drivers on top?

Will report in more than 4h after the make is completed :D

Merci

2012-07-26 14:49:52

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

In my case, I don't have a dhcp server but I use isc-dhcp-relay in order to reuse my master DHCP server for wireless endpoints. The advantage over one single point of control is that fixed and wireless endpoints will share the same network 192.168.0/24.

/etc/default/isc-dhcp-relay
? #?What servers should the DHCP relay forward requests to?
? SERVERS="192.168.0.254"
? # On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?

? INTERFACES="wlan0"
? # Additional options that are passed to the DHCP relay daemon?

? OPTIONS="-d"

Here are the results when using Larry's script:

sudo ./control_ap.sh start wlan0 eth0

Starting AP mode for wlan0 at address 192.168.0.200
hostapd: no process found
isc-dhcp-relay: no process found
touch: cannot touch `/var/lib/dhcp/db/dhcpd.leases': No such file or directory
Configuration file: /home/xabix/hostapd.conf
Could not set interface mon.wlan0 flags: Success
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x85a1910 user_data=0x85a3720 handler=0x807c5e0
ELOOP: remaining socket: sock=6 eloop_data=0x85a5538 user_data=(nil) handler=0x8086770

I think the problem I am having is the same as without the script.

Do you want me to enable additional logging? (plz confirmed how to do so)

Merci
XabiX

PS: I have attached the updated script for my case. Mainly?I just changed the IPTABLES=, the dhcpd with isc-dhcp-relay, .1 with .200, name of the SSID and the pwd I remove the "\"...""" entry with a pwd like?WPA_SECRET=test1234)


Attachments:
control_ap_xabix.txt (4.07 kB)

2012-07-27 06:34:53

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Hi Larry,

I am using?hostapd v0.7.3 but I did not install the?bleeding-edge compat-wireless drivers.

What I noticed is that your script refers to module se while I have a ce. (I am not sure if this can impact or explain the differences between your setup and mine).

When I download the drivers from?http://wireless.kernel.org/en/users/Download#Where_to_download_bleeding_edge, I got this file "compat-wireless-2.6.tar.bz2" which contains maybe a too old version compat-wireless-2012-05-10.

Should I install this version?
If I install kernel 3.5.0, will I still need to install the compat-wireless drivers?

Thanks
XabiX


> I finally finished the bug bisection that I was doing and set up an RTL8188CE
> with my script on wireless-testing 3.5.0, which is the same wireless code as you
>
> will get with the bleeding-edge compat-wireless. BTW, that is the wireless code
> that will be in 3.6.0 in about 3 months. When I started my script, I got the
> following:
>
> finger@larrylap:~> sudo ./control_ap start wlan0 eth0
> Starting AP mode for wlan0 at address 192.168.0.1
> iptables: No chain/target/match by that name.
> Internet Systems Consortium DHCP Server 4.2.3-P2
> Copyright 2004-2012 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
> Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not
> specified in the config file
> Wrote 1 leases to leases file.
> Listening on LPF/wlan0/1c:65:9d:15:c2:bd/192.168.0.0/24
> Sending on? LPF/wlan0/1c:65:9d:15:c2:bd/192.168.0.0/24
> Sending on? Socket/fallback/fallback-net
> Configuration file: /root/hostapd.conf
> finger@larrylap:~>
>
> I was able to associate and authenticate with this new AP and connect through it
>
> to the Internet. Obviously this kernel does not have one of the iptables
> modules, but otherwise all is well.
>
> What version of hostapd are you using? Mine is 1.0.
>
> You need to use compat-wireless and make certain that hostapd is new enough. I
> think 0.7.3 would be OK.
>
> Larry
>

2012-07-24 17:51:07

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/24/2012 12:06 PM, Xavier de Almeida wrote:
> Hi Larry and the team,
>
> couldn't install my compiled (make + checkinstall) package.
>
> sudo dpkg -i compat-wireless-2012-07_03-1_i386.deb
> (Reading database ... 214923 files and directories currently installed.)
> Unpacking compat-wireless-2012-07 (from compat-wireless-2012-07_03-1_i386.deb) ...
> dpkg: error processing compat-wireless-2012-07_03-1_i386.deb (--install):
> trying to overwrite '/bin/ntfs-3g', which is also in package ntfs-3g 1:2012.1.15AR.1-1ubuntu1
> dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
> Errors were encountered while processing:
> compat-wireless-2012-07_03-1_i386.deb
>
> Should I just to a make install instead?

Yes. Using "make" and "sudo make install" is the correct way. Building a .deb.
may be necessary to install a whole kernel (it is not on my distro), but not for
compat-wireless.

Larry




2012-07-24 15:46:22

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/24/2012 10:25 AM, Xavier de Almeida wrote:
> great following this thread to make my own compat-wireless:
> http://blog.securism.com/2009/01/how-to-cutting-edge-wireless-drivers-in-ubuntu/
>
>
> I hope it's accurate

A quick read shows that they have you pulling the entire wireless-testing tree.
If you do that, then build that kernel and skip compat-wireless. I think the
URLs have changed since 2009.

If you have your kernel headers installed, and /lib/modules/`uname -r`/build is
a link to a directory containing directory include/ with those headers, then you
can built the compat-wireless package.

Larry






2012-07-29 20:53:51

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/29/2012 02:57 PM, Xavier de Almeida wrote:
>> I run mine, when I test AP mode, without any options.
>
>>
>> I'm glad you got it working. Now you know why I recommend spending 40 euro
>> for
>> an AP rather than trying to use a 600 euro computer for that purpose. BTW, I own
>>
>> 4 AP/routers.
>>
>> Larry
>>
>
> My goal was to have a low power server that runs 24h for wireless, domotic, ... but I didn't find how to increase the signal and remove the power mgt.

A part of "modinfo rtl8192ce" says

parm: ips:Set to 0 to not use link power save (default 1) (bool)

Load the modules with "sudo modprobe rtl8192ce ips=0" or create the appropriate
rtl8192ce.conf file, and power saving is disables.


The RTL8187L, the chip in the AWUS036H will never work in AP mode. It has only
one hardware queue, and getting the timing right for beacons is extremely
difficult, and not worth the effort.

> Have you had to add parameters in your rtl8192ce.conf file in modprobe?

Except for testing, I use no module parameters. If any were always necessary, I
would change the default.

Larry

>
> I found this device in my garage :) which is known to be working well so I may try it just to compare the signal strengths between both
> rtl8187 Alfa AWUS036H 0x0bda 0x8187
>
>
> Again I would like to thank you again for all your reactive support in order to help me making my on-board pci wifi card working. At least I can now make a choice depending on the signal length.
>
> FYI I did find that the BW was quote low with the rtl8188ce AP. Did you notice the same issue?
>
> MERCI
>



2012-07-26 10:53:45

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/26/2012 04:58 AM, Xavier de Almeida wrote:
> Thanks Larry for your inputs.
>
> From this thread it looks like it's not a given piece of work to get the RTL8188CE stable.
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/902557
>
> Anyway I have started to compile the 3.4.6 kernel see how it goes. I hope I don't need to add the compat-wireless drivers on top?
>
> Will report in more than 4h after the make is completed :D

That Ubuntu report is for kernel 3.2. As I said before, we are making progress!!!!!

See https://bugzilla.redhat.com/show_bug.cgi?id=797709 for a better example.

I think 3.4.6 will be OK, but if you need compat-wireless, it will work OK there.

Larry


2012-07-27 08:14:07

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

I have installed the (and rebooted)
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/compat/compat.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/compat/sch_codel.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/compat/sch_fq_codel.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/drivers/misc/eeprom/eeprom_93cx6.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/drivers/net/wireless/rtl818x/rtl8180/rtl8180.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/net/mac80211/mac80211.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/net/rfkill/rfkill-regulator.ko
? INSTALL /home/xabix/tmp/compat-wireless-2012-07-03/net/wireless/cfg80211.ko
? DEPMOD ?3.4.6-custom

hostapd -dd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: Register Action command failed: ret=-19 (No such device)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 3
nl80211: Add own interface ifindex 0
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x8fe48f0 user_data=0x8fe6760 handler=0x807c5e0
ELOOP: remaining socket: sock=6 eloop_data=0x8fe8548 user_data=(nil) handler=0x8086770

which is the same with your script:
sudo ./control_ap.sh start wlan0 eth0
Starting AP mode for wlan0 at address 192.168.0.200
hostapd: no process found
isc-dhcp-relay: no process found
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
touch: cannot touch `/var/lib/dhcp/db/dhcpd.leases': No such file or directory
Configuration file: /home/xabix/hostapd.conf
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x96d1910 user_data=0x96d3720 handler=0x807c5e0
ELOOP: remaining socket: sock=6 eloop_data=0x96d5538 user_data=(nil) handler=0x8086770

What else can I try?

Thanks
XabiX

2012-07-25 17:19:42

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

After uninstall (make uninstall), it's back to normal.

The syslog says:
Jul 25 19:14:55 HTPC kernel: [10126.298298] rtl8192c_common: Loading firmware file rtlwifi/rtl8192cfw.bin
Jul 25 19:14:55 HTPC NetworkManager[1260]: ? ?SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0)
Jul 25 19:14:55 HTPC NetworkManager[1260]: ? ?SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.3/0000:03:00.0/net/mon.wlan0, iface: mon.wlan0): no ifupdown configuration found.
Jul 25 19:14:55 HTPC kernel: [10126.692251] device wlan0 entered promiscuous mode
Jul 25 19:14:55 HTPC kernel: [10126.693037] br0: port 2(wlan0) entering forwarding state
Jul 25 19:14:55 HTPC kernel: [10126.693073] br0: port 2(wlan0) entering forwarding state
Jul 25 19:14:57 HTPC avahi-daemon[1256]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::e291:53ff:fe6f:55e7.
Jul 25 19:14:57 HTPC avahi-daemon[1256]: New relevant interface wlan0.IPv6 for mDNS.
Jul 25 19:14:57 HTPC avahi-daemon[1256]: Registering new address record for fe80::e291:53ff:fe6f:55e7 on wlan0.*.
Jul 25 19:15:06 HTPC kernel: [10137.351494] wlan0: no IPv6 routers present
Jul 25 19:15:11 HTPC kernel: [10141.717652] br0: port 2(wlan0) entering forwarding state

Jul 25 19:15:39 HTPC dhcrelay: Discarding packet received on wlan0 interface that has no IPv4 address assigned.

kernel log says:
Jul 25 19:17:30 HTPC kernel: [10281.037865] rtl8192c_common: Loading firmware file rtlwifi/rtl8192cfw.bin
Jul 25 19:17:30 HTPC kernel: [10281.390776] device wlan0 entered promiscuous mode
Jul 25 19:17:30 HTPC kernel: [10281.391433] br0: port 2(wlan0) entering forwarding state
Jul 25 19:17:30 HTPC kernel: [10281.391465] br0: port 2(wlan0) entering forwarding state

Jul 25 19:17:41 HTPC kernel: [10292.174075] wlan0: no IPv6 routers present
Jul 25 19:17:45 HTPC kernel: [10296.404288] br0: port 2(wlan0) entering forwarding state

and hostapd says:
Using interface wlan0 with hwaddr e0:91:53:6f:55:e7 and ssid 'Sweet Home 2'
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=12):
? ? ?53 77 65 65 74 20 48 6f 6d 65 20 32 ? ? ? ? ? ? ? Sweet Home 2 ? ?
PSK (ASCII passphrase) - hexdump_ascii(len=24): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=4 alg=2 addr=(nil) key_idx=1 set_tx=1 seq_len=0 key_len=32
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 88:30:8a:52:ed:cd sent probe request for broadcast SSID
mgmt::proberesp cb

Does anyone have a suggestion? Am not sure if the complain about IPv6 is important here. ...

Merci
XabiX

2012-07-27 15:59:32

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Larry can you tell me what do you have for power mgt settings in

/etc/modprobe.d/rtl8192ce.conf?
options rtl8192ce ips=0 swenc=1

systool -v -m rtl8192ce
Module = "rtl8192ce"

? Attributes:
? ? coresize ? ? ? ? ? ?= "74421"
? ? initsize ? ? ? ? ? ?= "0"
? ? initstate ? ? ? ? ? = "live"
? ? refcnt ? ? ? ? ? ? ?= "0"
? ? srcversion ? ? ? ? ?= "AE758D5E662358264A4DB35"
? ? taint ? ? ? ? ? ? ? = ""
? ? uevent ? ? ? ? ? ? ?= <store method only>

? Parameters:
? ? debug ? ? ? ? ? ? ? = "0"
? ? fwlps ? ? ? ? ? ? ? = "Y"
? ? ips ? ? ? ? ? ? ? ? = "N"
? ? swenc ? ? ? ? ? ? ? = "Y"
? ? swlps ? ? ? ? ? ? ? = "N"

? Sections:
? ? .altinstr_replacement= "0x00000000"
? ? .altinstructions ? ?= "0x00000000"
? ? .bss ? ? ? ? ? ? ? ?= "0x00000000"
? ? .data ? ? ? ? ? ? ? = "0x00000000"
? ? .devinit.rodata ? ? = "0x00000000"
? ? .exit.text ? ? ? ? ?= "0x00000000"
? ? .gnu.linkonce.this_module= "0x00000000"
? ? .init.text ? ? ? ? ?= "0x00000000"
? ? .note.gnu.build-id ?= "0x00000000"
? ? .parainstructions ? = "0x00000000"
? ? .rodata ? ? ? ? ? ? = "0x00000000"
? ? .rodata.str1.1 ? ? ?= "0x00000000"
? ? .rodata.str1.4 ? ? ?= "0x00000000"
? ? .strtab ? ? ? ? ? ? = "0x00000000"
? ? .symtab ? ? ? ? ? ? = "0x00000000"
? ? .text ? ? ? ? ? ? ? = "0x00000000"
? ? __mcount_loc ? ? ? ?= "0x00000000"
? ? __param ? ? ? ? ? ? = "0x00000000"

Thanks
XabiX


----- Mail original -----
> De?: Xavier de Almeida <[email protected]>
> ??: "[email protected]" <[email protected]>
> Cc?: Larry Finger <[email protected]>
> Envoy? le : Vendredi 27 juillet 2012 17h38
> Objet?: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)
>
>> Hi Larry,
>
>>
>> So after rebooting (and installing the compat drivers from 05-10) it seems
> to
>> work meaning that the process runs:
>>
>> 5 S root ? ? ?1486 ? ? 1 ?0 ?80 ? 0 - ?1415 poll_s 16:03 ? ? ? ? ?00:00:00
>> /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd /etc/hostapd/hostapd.conf
>>
>>
>> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> authentication OK (open system)
>> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> authenticated
>> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> association OK (aid 1)
>> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> associated (aid 1)
>> Jul 27 16:06:18 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> deauthenticated due to local deauth request
>> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> authentication OK (open system)
>> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> authenticated
>> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> association OK (aid 1)
>> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> associated (aid 1)
>> Jul 27 16:06:25 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> deauthenticated due to local deauth request
>> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> authentication OK (open system)
>> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> authenticated
>> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> association OK (aid 1)
>> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
>> associated (aid 1)
>>
>> but I launch manually it doesn't work anymore
>>
>> xabix@HTPC:~$ sudo service hostapd stop
>> [sudo] password for xabix:?
>> ?* Stopping advanced IEEE 802.11 management hostapd
>> ? ?...done.
>> xabix@HTPC:~$ /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd
>> /etc/hostapd/hostapd.conf
>> Configuration file: /etc/hostapd/hostapd.conf
>> ctrl_interface_group=0
>> nl80211: Register Action command failed: ret=-1 (Operation not permitted)
>> nl80211: Register Action match - hexdump(len=1): 06
>> nl80211: Failed to register Action frame processing - ignore for now
>> nl80211: Add own interface ifindex 3
>> nl80211: Add own interface ifindex 4
>> nl80211: Failed to set interface 4 to mode 3: -1 (Operation not permitted)
>> nl80211: Failed to set interface 4 to mode 3: -1 (Operation not permitted)
>> Could not set interface wlan0 flags: Permission denied
>> nl80211: Interface mode change to 3 from 0 failed
>> nl80211: Failed to set interface wlan0 into AP mode
>> nl80211 driver initialization failed.
>> rmdir[ctrl_interface]: No such file or directory
>> ELOOP: remaining socket: sock=4 eloop_data=0x9cdc910 user_data=0x9cde780
>> handler=0x807c
>>
>>
>> so the only to launch it for now is to reboot :)
>>
>> I dit put this on the conf file
>> # Levels (minimum value for logged events):
>> # ?0 = verbose debugging
>> # ?1 = debugging
>> # ?2 = informational messages
>> # ?3 = notification
>> # ?4 = warning
>> logger_syslog=1
>> logger_syslog_level=0
>>
>>
>> but I don't see enough logs to know why after the association there is
> a
>> deauthentication.
>>
>> Cheers
>> almost there :D
>
>
> Too me it looks like it's working but the isc-dhcp-relay dies when the
> interface goes down for power mgt;
>
> xabix@HTPC:~$ sudo tcpdump -n -i br0 port bootps or port bootpc
> [sudo] password for xabix:?
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes
> 16:42:48.997437 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
> 88:30:8a:52:ed:cd, length 356
>
>
> Jul 27 16:10:31 HTPC dhcrelay: receive_packet failed on wlan0: Network is down
>
> Jul 27 16:43:50 HTPC NetworkManager[1282]: <info> Unmanaged Device found;
> state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
> Jul 27 16:43:50 HTPC NetworkManager[1282]: <info> Unmanaged Device found;
> state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
> Jul 27 17:32:00 HTPC kernel: [ 5321.199053] init: isc-dhcp-relay main process
> (4351) terminated with status 1
> Jul 27 17:32:00 HTPC kernel: [ 5321.199116] init: isc-dhcp-relay main process
> ended, respawning
> Jul 27 17:32:00 HTPC dhcrelay: Usage: dhcrelay [-4] [-d] [-q] [-a] [-D]#012 ? ?
> ? ? ? ? ? ? ? ? [-A <length>] [-c <hops>] [-p <port>]#012 ? ?
> ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? [-m
> append|replace|forward|discard]#012 ? ? ? ? ? ? ? ? ? ? [-i interface0 [ ... -i
> interfaceN]#012 ? ? ? ? ? ? ? ? ? ? server0 [ ... serverN]#012#012 ? ? ?
> dhcrelay -6 ? [-d] [-q] [-I] [-c <hops>] [-p <port>]#012 ? ? ? ? ? ?
> ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? -l lower0 [
> ... -l lowerN]#012 ? ? ? ? ? ? ? ? ? ? -u upper0 [ ... -u upperN]#012 ? ? ?
> lower (client link): [address%]interface[#index]#012 ? ? ? upper (server link):
> [address%]interface
> Jul 27 17:32:00 HTPC kernel: [ 5321.209552] init: isc-dhcp-relay main process
> (4353) terminated with status 1
> Jul 27 17:32:00 HTPC kernel: [ 5321.209637] init: isc-dhcp-relay main process
> ended, respawning
> Jul 27 17:32:00 HTPC dhcrelay: Usage: dhcrelay [-4] [-d] [-q] [-a] [-D]#012 ? ?
> ? ? ? ? ? ? ? ? [-A <length>] [-c <hops>] [-p <port>]#012 ? ?
> ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? [-m
> append|replace|forward|discard]#012 ? ? ? ? ? ? ? ? ? ? [-i interface0 [ ... -i
> interfaceN]#012 ? ? ? ? ? ? ? ? ? ? server0 [ ... serverN]#012#012 ? ? ?
> dhcrelay -6 ? [-d] [-q] [-I] [-c <hops>] [-p <port>]#012 ? ? ? ? ? ?
> ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? -l lower0 [
> ... -l lowerN]#012 ? ? ? ? ? ? ? ? ? ? -u upper0 [ ... -u upperN]#012 ? ? ?
> lower (client link): [address%]interface[#index]#012 ? ? ? upper (server link):
> [address%]interface
> Jul 27 17:32:00 HTPC kernel: [ 5321.220074] init: isc-dhcp-relay main process
> (4355) terminated with status 1
> Jul 27 17:32:00 HTPC kernel: [ 5321.220143] init: isc-dhcp-relay main process
> ended, respawning
>

2012-07-24 15:06:56

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/24/2012 08:56 AM, Xavier de Almeida wrote:
> Thanks Larry for your help.
> I tried 3.4.6 and 3.5.0 Quantal kernels but they didn't boot with my i8042 keyboard chip.
>
> So I have installed 3.2.23-030223 and it now starts OK.
>
> FYI here is the new log (I ll have to investigate why the auth between the endpoint and the hotspot doesn't work)
>
> MERCI
> XabiX

Yes, we do make progress. Kernel 3.2.23 has the bug fixes backported from later
kernels, but there are additional changes that cannot be implemented as they are
too intrusive. You may still need to incorporate compat-wireless.

Larry




2012-07-27 10:32:14

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Hum the issue is now different as I don't have anymore the wlan0 interface:

iwconfig?
br0 ? ? ? no wireless extensions.

lo ? ? ? ?no wireless extensions.

eth0 ? ? ?no wireless extensions.


xabix@HTPC:/var/log$ sudo modprobe rtl8192ce
WARNING: Error inserting rtl8192c_common (/lib/modules/3.4.6-custom/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko): Invalid argument
FATAL: Error inserting rtl8192ce (/lib/modules/3.4.6-custom/kernel/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko): Invalid argument

xabix@HTPC:/var/log$ ll /lib/modules/3.4.6-custom/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
-rw-r--r-- 1 root root 71208 Jul 26 12:28 /lib/modules/3.4.6-custom/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko

modinfo rtl8192ce
filename: ? ? ? /lib/modules/3.4.6-custom/kernel/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
firmware: ? ? ? rtlwifi/rtl8192cfwU_B.bin
firmware: ? ? ? rtlwifi/rtl8192cfwU.bin
firmware: ? ? ? rtlwifi/rtl8192cfw.bin
description: ? ?Realtek 8192C/8188C 802.11n PCI wireless
license: ? ? ? ?GPL
author: ? ? ? ? Larry Finger ? ?<[email protected]>
author: ? ? ? ? Realtek WlanFAE <[email protected]>
author: ? ? ? ? lizhaoming ? ? ?<[email protected]>
srcversion: ? ? AE758D5E662358264A4DB35
alias: ? ? ? ? ?pci:v000010ECd00008176sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008177sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008178sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008191sv*sd*bc*sc*i*
depends: ? ? ? ?rtlwifi,rtl8192c-common,mac80211
intree: ? ? ? ? Y
vermagic: ? ? ? 3.4.6-custom SMP mod_unload modversions 686?
parm: ? ? ? ? ? swenc:Set to 1 for software crypto (default 0)
parm: ? ? ? ? ? ips:Set to 0 to not use link power save (default 1)

parm: ? ? ? ? ? swlps:Set to 1 to use SW control power save (default 0)

parm: ? ? ? ? ? fwlps:Set to 1 to use FW control power save (default 1)

parm: ? ? ? ? ? debug:Set debug level (0-5) (default 0) (int)


Merci
XabiX

2012-07-27 15:38:29

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

> Hi Larry,

>
> So after rebooting (and installing the compat drivers from 05-10) it seems to
> work meaning that the process runs:
>
> 5 S root ? ? ?1486 ? ? 1 ?0 ?80 ? 0 - ?1415 poll_s 16:03 ? ? ? ? ?00:00:00
> /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd /etc/hostapd/hostapd.conf
>
>
> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> authentication OK (open system)
> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> authenticated
> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> association OK (aid 1)
> Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> associated (aid 1)
> Jul 27 16:06:18 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> deauthenticated due to local deauth request
> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> authentication OK (open system)
> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> authenticated
> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> association OK (aid 1)
> Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> associated (aid 1)
> Jul 27 16:06:25 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> deauthenticated due to local deauth request
> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> authentication OK (open system)
> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> authenticated
> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> association OK (aid 1)
> Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11:
> associated (aid 1)
>
> but I launch manually it doesn't work anymore
>
> xabix@HTPC:~$ sudo service hostapd stop
> [sudo] password for xabix:?
> ?* Stopping advanced IEEE 802.11 management hostapd
> ? ?...done.
> xabix@HTPC:~$ /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd
> /etc/hostapd/hostapd.conf
> Configuration file: /etc/hostapd/hostapd.conf
> ctrl_interface_group=0
> nl80211: Register Action command failed: ret=-1 (Operation not permitted)
> nl80211: Register Action match - hexdump(len=1): 06
> nl80211: Failed to register Action frame processing - ignore for now
> nl80211: Add own interface ifindex 3
> nl80211: Add own interface ifindex 4
> nl80211: Failed to set interface 4 to mode 3: -1 (Operation not permitted)
> nl80211: Failed to set interface 4 to mode 3: -1 (Operation not permitted)
> Could not set interface wlan0 flags: Permission denied
> nl80211: Interface mode change to 3 from 0 failed
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.
> rmdir[ctrl_interface]: No such file or directory
> ELOOP: remaining socket: sock=4 eloop_data=0x9cdc910 user_data=0x9cde780
> handler=0x807c
>
>
> so the only to launch it for now is to reboot :)
>
> I dit put this on the conf file
> # Levels (minimum value for logged events):
> # ?0 = verbose debugging
> # ?1 = debugging
> # ?2 = informational messages
> # ?3 = notification
> # ?4 = warning
> logger_syslog=1
> logger_syslog_level=0
>
>
> but I don't see enough logs to know why after the association there is a
> deauthentication.
>
> Cheers
> almost there :D


Too me it looks like it's working but the isc-dhcp-relay dies when the interface goes down for power mgt;

xabix@HTPC:~$ sudo tcpdump -n -i br0 port bootps or port bootpc
[sudo] password for xabix:?
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes
16:42:48.997437 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 88:30:8a:52:ed:cd, length 356


Jul 27 16:10:31 HTPC dhcrelay: receive_packet failed on wlan0: Network is down

Jul 27 16:43:50 HTPC NetworkManager[1282]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Jul 27 16:43:50 HTPC NetworkManager[1282]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Jul 27 17:32:00 HTPC kernel: [ 5321.199053] init: isc-dhcp-relay main process (4351) terminated with status 1
Jul 27 17:32:00 HTPC kernel: [ 5321.199116] init: isc-dhcp-relay main process ended, respawning
Jul 27 17:32:00 HTPC dhcrelay: Usage: dhcrelay [-4] [-d] [-q] [-a] [-D]#012 ? ? ? ? ? ? ? ? ? ? [-A <length>] [-c <hops>] [-p <port>]#012 ? ? ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? [-m append|replace|forward|discard]#012 ? ? ? ? ? ? ? ? ? ? [-i interface0 [ ... -i interfaceN]#012 ? ? ? ? ? ? ? ? ? ? server0 [ ... serverN]#012#012 ? ? ? dhcrelay -6 ? [-d] [-q] [-I] [-c <hops>] [-p <port>]#012 ? ? ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? -l lower0 [ ... -l lowerN]#012 ? ? ? ? ? ? ? ? ? ? -u upper0 [ ... -u upperN]#012 ? ? ? lower (client link): [address%]interface[#index]#012 ? ? ? upper (server link): [address%]interface
Jul 27 17:32:00 HTPC kernel: [ 5321.209552] init: isc-dhcp-relay main process (4353) terminated with status 1
Jul 27 17:32:00 HTPC kernel: [ 5321.209637] init: isc-dhcp-relay main process ended, respawning
Jul 27 17:32:00 HTPC dhcrelay: Usage: dhcrelay [-4] [-d] [-q] [-a] [-D]#012 ? ? ? ? ? ? ? ? ? ? [-A <length>] [-c <hops>] [-p <port>]#012 ? ? ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? [-m append|replace|forward|discard]#012 ? ? ? ? ? ? ? ? ? ? [-i interface0 [ ... -i interfaceN]#012 ? ? ? ? ? ? ? ? ? ? server0 [ ... serverN]#012#012 ? ? ? dhcrelay -6 ? [-d] [-q] [-I] [-c <hops>] [-p <port>]#012 ? ? ? ? ? ? ? ? ? ? [-pf <pid-file>] [--no-pid]#012 ? ? ? ? ? ? ? ? ? ? -l lower0 [ ... -l lowerN]#012 ? ? ? ? ? ? ? ? ? ? -u upper0 [ ... -u upperN]#012 ? ? ? lower (client link): [address%]interface[#index]#012 ? ? ? upper (server link): [address%]interface
Jul 27 17:32:00 HTPC kernel: [ 5321.220074] init: isc-dhcp-relay main process (4355) terminated with status 1
Jul 27 17:32:00 HTPC kernel: [ 5321.220143] init: isc-dhcp-relay main process ended, respawning

2012-07-26 11:28:30

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/26/2012 06:01 AM, Xavier de Almeida wrote:
> Cool let's get this sorted then.
>
> Here is the output now with the 3.4.6 kernel. If you prefer me to try with the 3.5, I can.
>
> thanks
>
> uname -r
> 3.4.6-custom
>
> ifconfig
>
> br0 Link encap:Ethernet HWaddr 80:ee:73:31:54:b2
> inet addr:192.168.0.40 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fe80::82ee:73ff:fe31:54b2/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:426 errors:0 dropped:0 overruns:0 frame:0
> TX packets:548 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:30369 (30.3 KB) TX bytes:79172 (79.1 KB)
>
> eth0 Link encap:Ethernet HWaddr 80:ee:73:31:54:b2
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:510 errors:0 dropped:4 overruns:0 frame:0
> TX packets:546 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:54044 (54.0 KB) TX bytes:79000 (79.0 KB)
> Interrupt:45
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:968 errors:0 dropped:0 overruns:0 frame:0
> TX packets:968 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:72060 (72.0 KB) TX bytes:72060 (72.0 KB)
>
> iwconfig
> br0 no wireless extensions.
>
> wlan0 IEEE 802.11bgn Mode:Master Frequency:2.437 GHz Tx-Power=20 dBm
> Retry long limit:7 RTS thr=2347 B Fragment thr:off
> Power Management:on
>
> lo no wireless extensions.
>
> eth0 no wireless extensions.
>
> sudo modinfo rtl8192ce
> filename: /lib/modules/3.4.6-custom/kernel/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
> firmware: rtlwifi/rtl8192cfwU_B.bin
> firmware: rtlwifi/rtl8192cfwU.bin
> firmware: rtlwifi/rtl8192cfw.bin
> description: Realtek 8192C/8188C 802.11n PCI wireless
> license: GPL
> author: Larry Finger <[email protected]>
> author: Realtek WlanFAE <[email protected]>
> author: lizhaoming <[email protected]>
> srcversion: AE758D5E662358264A4DB35
> alias: pci:v000010ECd00008176sv*sd*bc*sc*i*
> alias: pci:v000010ECd00008177sv*sd*bc*sc*i*
> alias: pci:v000010ECd00008178sv*sd*bc*sc*i*
> alias: pci:v000010ECd00008191sv*sd*bc*sc*i*
> depends: rtlwifi,rtl8192c-common,mac80211
> intree: Y
> vermagic: 3.4.6-custom SMP mod_unload modversions 686
> parm: swenc:Set to 1 for software crypto (default 0)
> parm: ips:Set to 0 to not use link power save (default 1)
>
> parm: swlps:Set to 1 to use SW control power save (default 0)
>
> parm: fwlps:Set to 1 to use FW control power save (default 1)
>
> parm: debug:Set debug level (0-5) (default 0) (int)
>
>
>
> sudo hostapd -dd /etc/hostapd/hostapd.conf
> Configuration file: /etc/hostapd/hostapd.conf
>
> nl80211: Register Action command failed: ret=-114 (Operation already in progress)
> nl80211: Register Action match - hexdump(len=1): 06
> nl80211: Failed to register Action frame processing - ignore for now
> nl80211: Interface wlan0 is in bridge br0
> nl80211: Add own interface ifindex 3
> nl80211: Add own interface ifindex 4
> Failed to create interface mon.wlan0: -23 (Too many open files in system)
> Try to remove and re-create mon.wlan0
> nl80211: Remove interface ifindex=5
> nl80211: New interface mon.wlan0 created: ifindex=6
> nl80211: Add own interface ifindex 6
> Could not set interface mon.wlan0 flags: Success
> nl80211: Remove interface ifindex=6
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.
> ELOOP: remaining socket: sock=4 eloop_data=0x8423900 user_data=0x8423eb0 handler=0x807c5e0
> ELOOP: remaining socket: sock=6 eloop_data=0x8425cb8 user_data=(nil) handler=0x8086770

I'm not sure why you are getting that error -23 (too many open files). Is that
number set artificially low for some reason? What does

cat /proc/sys/fs/file-max

report? On my system, it is 300000.

Attached is a script file that I use to start an AP on my system. Please try it
and see if it works differently. You mnay have to adjust the symbols for
different locations of hostapd, etc, and the address of the wireless network
that is currently set at 192.168.0.X. The script is run with

sudo ./control_ap start <name_of_wireless_iface> <name_of_external_iface>

or

sudo ./control_ap stop

For a normal configuration, the command would be "control_ap start wlan0 eth0".

In addition, one of the attachments in
https://bugzilla.redhat.com/show_bug.cgi?id=797709 is a hostapd configuration
file that works. You might compare it with yours.

Larry


Attachments:
control_ap (4.05 kB)

2012-07-27 13:09:42

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

So I have download the file from your link?which?provides a directory called: "compat-wireless-2012-05-10". I was using one called "compat-wireless-2012-07-03".

FYI I already compiled the 3.5 kernel but as you recommend I keep using the 3.4.6 for now as it will not necessary bring something new around the rtl8188ce wifi driver.

FYI there should be something wrong in the README as if I do:
root@HTPC:/home/xabix/tmp/compat-wireless-2012-05-10# ./scripts/driver-select rtl8192ce
Processing new driver-select request...
Backing up makefile: Makefile.bk
Unsupported driver

I ve got the Unsupported driver message

Anyway I am compilling them all based on the link you suggested:?compat-wireless-2012-05-10

Will report when done

merci

2012-07-24 17:06:58

by Xavier de Almeida

[permalink] [raw]
Subject: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Hi Larry and the team,

couldn't install my compiled (make + checkinstall) package.

sudo dpkg -i compat-wireless-2012-07_03-1_i386.deb?
(Reading database ... 214923 files and directories currently installed.)
Unpacking compat-wireless-2012-07 (from compat-wireless-2012-07_03-1_i386.deb) ...
dpkg: error processing compat-wireless-2012-07_03-1_i386.deb (--install):
?trying to overwrite '/bin/ntfs-3g', which is also in package ntfs-3g 1:2012.1.15AR.1-1ubuntu1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
?compat-wireless-2012-07_03-1_i386.deb

Should I just to a make install instead?

Thanks
XabiX


----- Mail transf?r? -----
>De?: Xavier de Almeida <[email protected]>
>??: Larry Finger <[email protected]>
>Cc?: "[email protected]" <[email protected]>
>Envoy? le : Mardi 24 juillet 2012 17h25
>Objet?: Re: Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)
>
>great following this thread to make my own compat-wireless:
>http://blog.securism.com/2009/01/how-to-cutting-edge-wireless-drivers-in-ubuntu/
>
>
>I hope it's accurate
>
>Merci
>
>
>
>>________________________________
>> De?: Larry Finger <[email protected]>
>>??: Xavier de Almeida <[email protected]>
>>Cc?: "[email protected]" <[email protected]>
>>Envoy? le : Mardi 24 juillet 2012 17h06
>>Objet?: Re: Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)
>>
>>On 07/24/2012 08:56 AM, Xavier de Almeida wrote:
>>> Thanks Larry for your help.
>>> I tried 3.4.6 and 3.5.0 Quantal kernels but they didn't boot with my i8042 keyboard chip.
>>>
>>> So I have installed 3.2.23-030223 and it now starts OK.
>>>
>>> FYI here is the new log (I ll have to investigate why the auth between the endpoint and the hotspot doesn't work)
>>>
>>> MERCI
>>> XabiX
>>
>>Yes, we do make progress. Kernel 3.2.23 has the bug fixes backported from later
>>kernels, but there are additional changes that cannot be implemented as they are
>>too intrusive. You may still need to incorporate compat-wireless.
>>
>>Larry
>>
>>
>>
>>
>>
>>?
>
>
>

2012-07-26 21:52:19

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

On 07/26/2012 09:49 AM, Xavier de Almeida wrote:
> In my case, I don't have a dhcp server but I use isc-dhcp-relay in order to reuse my master DHCP server for wireless endpoints. The advantage over one single point of control is that fixed and wireless endpoints will share the same network 192.168.0/24.
>
> /etc/default/isc-dhcp-relay
> # What servers should the DHCP relay forward requests to?
> SERVERS="192.168.0.254"
> # On what interfaces should the DHCP relay (dhrelay) serve DHCP requests?
>
> INTERFACES="wlan0"
> # Additional options that are passed to the DHCP relay daemon?
>
> OPTIONS="-d"
>
> Here are the results when using Larry's script:
>
> sudo ./control_ap.sh start wlan0 eth0
>
> Starting AP mode for wlan0 at address 192.168.0.200
> hostapd: no process found
> isc-dhcp-relay: no process found
> touch: cannot touch `/var/lib/dhcp/db/dhcpd.leases': No such file or directory
> Configuration file: /home/xabix/hostapd.conf
> Could not set interface mon.wlan0 flags: Success
> nl80211: Failed to set interface wlan0 into AP mode
> nl80211 driver initialization failed.
> rmdir[ctrl_interface]: No such file or directory
> ELOOP: remaining socket: sock=4 eloop_data=0x85a1910 user_data=0x85a3720 handler=0x807c5e0
> ELOOP: remaining socket: sock=6 eloop_data=0x85a5538 user_data=(nil) handler=0x8086770
>
> I think the problem I am having is the same as without the script.
>
> Do you want me to enable additional logging? (plz confirmed how to do so)

I finally finished the bug bisection that I was doing and set up an RTL8188CE
with my script on wireless-testing 3.5.0, which is the same wireless code as you
will get with the bleeding-edge compat-wireless. BTW, that is the wireless code
that will be in 3.6.0 in about 3 months. When I started my script, I got the
following:

finger@larrylap:~> sudo ./control_ap start wlan0 eth0
Starting AP mode for wlan0 at address 192.168.0.1
iptables: No chain/target/match by that name.
Internet Systems Consortium DHCP Server 4.2.3-P2
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not
specified in the config file
Wrote 1 leases to leases file.
Listening on LPF/wlan0/1c:65:9d:15:c2:bd/192.168.0.0/24
Sending on LPF/wlan0/1c:65:9d:15:c2:bd/192.168.0.0/24
Sending on Socket/fallback/fallback-net
Configuration file: /root/hostapd.conf
finger@larrylap:~>

I was able to associate and authenticate with this new AP and connect through it
to the Internet. Obviously this kernel does not have one of the iptables
modules, but otherwise all is well.

What version of hostapd are you using? Mine is 1.0.

You need to use compat-wireless and make certain that hostapd is new enough. I
think 0.7.3 would be OK.

Larry




2012-07-25 17:25:06

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Forgot to give new outputs: (sorry for the spam)

modinfo rtl8192ce
filename: ? ? ? /lib/modules/3.2.23-030223-generic/kernel/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko

firmware: ? ? ? rtlwifi/rtl8192cfwU_B.bin
firmware: ? ? ? rtlwifi/rtl8192cfwU.bin
firmware: ? ? ? rtlwifi/rtl8192cfw.bin
description: ? ?Realtek 8192C/8188C 802.11n PCI wireless
license: ? ? ? ?GPL
author: ? ? ? ? Larry Finger ? ?<[email protected]>
author: ? ? ? ? Realtek WlanFAE <[email protected]>
author: ? ? ? ? lizhaoming ? ? ?<[email protected]>
srcversion: ? ? 216E9AAB4459E49C3C6B69A
alias: ? ? ? ? ?pci:v000010ECd00008176sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008177sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008178sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008191sv*sd*bc*sc*i*
depends: ? ? ? ?rtlwifi,rtl8192c-common,mac80211
intree: ? ? ? ? Y
vermagic: ? ? ? 3.2.23-030223-generic SMP mod_unload modversions 686?
parm: ? ? ? ? ? swenc:Set to 1 for software crypto (default 0)
parm: ? ? ? ? ? ips:Set to 0 to not use link power save (default 1)

parm: ? ? ? ? ? swlps:Set to 1 to use SW control power save (default 0)

parm: ? ? ? ? ? fwlps:Set to 1 to use FW control power save (default 1)

parm: ? ? ? ? ? debug:Set debug level (0-5) (default 0) (int)


ifconfig?
br0 ? ? ? Link encap:Ethernet ?HWaddr 80:ee:73:31:54:b2 ?
? ? ? ? ? inet addr:192.168.0.40 ?Bcast:192.168.0.255 ?Mask:255.255.255.0
? ? ? ? ? inet6 addr: fe80::82ee:73ff:fe31:54b2/64 Scope:Link
? ? ? ? ? UP BROADCAST RUNNING MULTICAST ?MTU:1500 ?Metric:1
? ? ? ? ? RX packets:24794 errors:0 dropped:0 overruns:0 frame:0
? ? ? ? ? TX packets:19284 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:0?
? ? ? ? ? RX bytes:1968234 (1.9 MB) ?TX bytes:24388301 (24.3 MB)

eth0 ? ? ?Link encap:Ethernet ?HWaddr 80:ee:73:31:54:b2 ?
? ? ? ? ? UP BROADCAST RUNNING MULTICAST ?MTU:1500 ?Metric:1
? ? ? ? ? RX packets:26859 errors:0 dropped:175 overruns:0 frame:0
? ? ? ? ? TX packets:19205 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:1000?
? ? ? ? ? RX bytes:2731919 (2.7 MB) ?TX bytes:24381151 (24.3 MB)
? ? ? ? ? Interrupt:45?

lo ? ? ? ?Link encap:Local Loopback ?
? ? ? ? ? inet addr:127.0.0.1 ?Mask:255.0.0.0
? ? ? ? ? inet6 addr: ::1/128 Scope:Host
? ? ? ? ? UP LOOPBACK RUNNING ?MTU:16436 ?Metric:1
? ? ? ? ? RX packets:8258 errors:0 dropped:0 overruns:0 frame:0
? ? ? ? ? TX packets:8258 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:0?
? ? ? ? ? RX bytes:591232 (591.2 KB) ?TX bytes:591232 (591.2 KB)

mon.wlan0 Link encap:UNSPEC ?HWaddr E0-91-53-6F-55-E7-30-30-00-00-00-00-00-00-00-00 ?
? ? ? ? ? UP BROADCAST RUNNING MULTICAST ?MTU:1500 ?Metric:1
? ? ? ? ? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
? ? ? ? ? TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:1000?
? ? ? ? ? RX bytes:0 (0.0 B) ?TX bytes:0 (0.0 B)

wlan0 ? ? Link encap:Ethernet ?HWaddr e0:91:53:6f:55:e7 ?
? ? ? ? ? inet6 addr: fe80::e291:53ff:fe6f:55e7/64 Scope:Link
? ? ? ? ? UP BROADCAST RUNNING MULTICAST ?MTU:1500 ?Metric:1
? ? ? ? ? RX packets:0 errors:0 dropped:0 overruns:0 frame:0
? ? ? ? ? TX packets:1169 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:1000?
? ? ? ? ? RX bytes:0 (0.0 B) ?TX bytes:163223 (163.2 KB)

iwconfig?
lo ? ? ? ?no wireless extensions.

br0 ? ? ? no wireless extensions.

wlan0 ? ? IEEE 802.11bgn ?Mode:Master ?Frequency:2.437 GHz ?Tx-Power=20 dBm ??
? ? ? ? ? Retry ?long limit:7 ? RTS thr=2347 B ? Fragment thr:off
? ? ? ? ? Power Management:on
? ? ? ? ??
eth0 ? ? ?no wireless extensions.

mon.wlan0 ?IEEE 802.11bgn ?Mode:Monitor ?Tx-Power=20 dBm ??
? ? ? ? ? Retry ?long limit:7 ? RTS thr=2347 B ? Fragment thr:off
? ? ? ? ? Power Management:on
? ? ? ? ??
nm-tool?
NetworkManager Tool

State: connected (global)

- Device: wlan0 ----------------------------------------------------------------

? Type: ? ? ? ? ? ? ?802.11 WiFi
? Driver: ? ? ? ? ? ?rtl8192ce
? State: ? ? ? ? ? ? unmanaged
? Default: ? ? ? ? ? no
? HW Address: ? ? ? ?E0:91:53:6F:55:E7

? Capabilities:
? Wireless Properties

? ? WEP Encryption: ?yes
? ? WPA Encryption: ?yes
? ? WPA2 Encryption: yes

? Wireless Access Points?

- Device: eth0 -----------------------------------------------------------------
? Type: ? ? ? ? ? ? ?Wired
? Driver: ? ? ? ? ? ?jme
? State: ? ? ? ? ? ? unmanaged
? Default: ? ? ? ? ? no
? HW Address: ? ? ? ?80:EE:73:31:54:B2

? Capabilities:
? ? Carrier Detect: ?yes
? ? Speed: ? ? ? ? ? 1000 Mb/s

? Wired Properties
? ? Carrier: ? ? ? ? on

is this unmanaged value for the wlan0 normal?

merci

2012-07-26 11:01:45

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

Cool let's get this sorted then.

Here is the output now with the 3.4.6 kernel. If you prefer me to try with the 3.5, I can.

thanks

uname -r
3.4.6-custom

ifconfig?

br0 ? ? ? Link encap:Ethernet ?HWaddr 80:ee:73:31:54:b2 ?
? ? ? ? ? inet addr:192.168.0.40 ?Bcast:192.168.0.255 ?Mask:255.255.255.0
? ? ? ? ? inet6 addr: fe80::82ee:73ff:fe31:54b2/64 Scope:Link
? ? ? ? ? UP BROADCAST RUNNING MULTICAST ?MTU:1500 ?Metric:1
? ? ? ? ? RX packets:426 errors:0 dropped:0 overruns:0 frame:0
? ? ? ? ? TX packets:548 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:0?
? ? ? ? ? RX bytes:30369 (30.3 KB) ?TX bytes:79172 (79.1 KB)

eth0 ? ? ?Link encap:Ethernet ?HWaddr 80:ee:73:31:54:b2 ?
? ? ? ? ? UP BROADCAST RUNNING MULTICAST ?MTU:1500 ?Metric:1
? ? ? ? ? RX packets:510 errors:0 dropped:4 overruns:0 frame:0
? ? ? ? ? TX packets:546 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:1000?
? ? ? ? ? RX bytes:54044 (54.0 KB) ?TX bytes:79000 (79.0 KB)
? ? ? ? ? Interrupt:45?

lo ? ? ? ?Link encap:Local Loopback ?
? ? ? ? ? inet addr:127.0.0.1 ?Mask:255.0.0.0
? ? ? ? ? inet6 addr: ::1/128 Scope:Host
? ? ? ? ? UP LOOPBACK RUNNING ?MTU:16436 ?Metric:1
? ? ? ? ? RX packets:968 errors:0 dropped:0 overruns:0 frame:0
? ? ? ? ? TX packets:968 errors:0 dropped:0 overruns:0 carrier:0
? ? ? ? ? collisions:0 txqueuelen:0?
? ? ? ? ? RX bytes:72060 (72.0 KB) ?TX bytes:72060 (72.0 KB)

iwconfig?
br0 ? ? ? no wireless extensions.

wlan0 ? ? IEEE 802.11bgn ?Mode:Master ?Frequency:2.437 GHz ?Tx-Power=20 dBm ??
? ? ? ? ? Retry ?long limit:7 ? RTS thr=2347 B ? Fragment thr:off
? ? ? ? ? Power Management:on
? ? ? ? ??
lo ? ? ? ?no wireless extensions.

eth0 ? ? ?no wireless extensions.

sudo modinfo rtl8192ce
filename: ? ? ? /lib/modules/3.4.6-custom/kernel/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
firmware: ? ? ? rtlwifi/rtl8192cfwU_B.bin
firmware: ? ? ? rtlwifi/rtl8192cfwU.bin
firmware: ? ? ? rtlwifi/rtl8192cfw.bin
description: ? ?Realtek 8192C/8188C 802.11n PCI wireless
license: ? ? ? ?GPL
author: ? ? ? ? Larry Finger ? ?<[email protected]>
author: ? ? ? ? Realtek WlanFAE <[email protected]>
author: ? ? ? ? lizhaoming ? ? ?<[email protected]>
srcversion: ? ? AE758D5E662358264A4DB35
alias: ? ? ? ? ?pci:v000010ECd00008176sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008177sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008178sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008191sv*sd*bc*sc*i*
depends: ? ? ? ?rtlwifi,rtl8192c-common,mac80211
intree: ? ? ? ? Y
vermagic: ? ? ? 3.4.6-custom SMP mod_unload modversions 686?
parm: ? ? ? ? ? swenc:Set to 1 for software crypto (default 0)
parm: ? ? ? ? ? ips:Set to 0 to not use link power save (default 1)

parm: ? ? ? ? ? swlps:Set to 1 to use SW control power save (default 0)

parm: ? ? ? ? ? fwlps:Set to 1 to use FW control power save (default 1)

parm: ? ? ? ? ? debug:Set debug level (0-5) (default 0) (int)



sudo hostapd -dd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf

nl80211: Register Action command failed: ret=-114 (Operation already in progress)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Interface wlan0 is in bridge br0
nl80211: Add own interface ifindex 3
nl80211: Add own interface ifindex 4
Failed to create interface mon.wlan0: -23 (Too many open files in system)
Try to remove and re-create mon.wlan0
nl80211: Remove interface ifindex=5
nl80211: New interface mon.wlan0 created: ifindex=6
nl80211: Add own interface ifindex 6
Could not set interface mon.wlan0 flags: Success
nl80211: Remove interface ifindex=6
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x8423900 user_data=0x8423eb0 handler=0x807c5e0
ELOOP: remaining socket: sock=6 eloop_data=0x8425cb8 user_data=(nil) handler=0x8086770


2012-07-25 17:43:56

by Larry Finger

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

You need to "bite the bullet" and install a newer kernel such as 3.4 or 3.5, I
know the RTL8188CE works with hostapd in those versions.

Larry



2012-07-27 14:12:38

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

>So I have download the file from your link?which?provides a directory called: "compat-wireless-2012-05-10". I was using one called "compat-wireless-2012-07-03".
>
>FYI I already compiled the 3.5 kernel but as you recommend I keep using the 3.4.6 for now as it will not necessary bring something new around the rtl8188ce wifi driver.
>
>FYI there should be something wrong in the README as if I do:
>root@HTPC:/home/xabix/tmp/compat-wireless-2012-05-10# ./scripts/driver-select rtl8192ce
>Processing new driver-select request...
>Backing up makefile: Makefile.bk
>Unsupported driver
>
>I ve got the Unsupported driver message
>
>Anyway I am compilling them all based on the link you suggested:?compat-wireless-2012-05-10
>
>Will report when done
>
>merci
>


Hi Larry,

So after rebooting (and installing the compat drivers from 05-10) it seems to work meaning that the process runs:

5 S root ? ? ?1486 ? ? 1 ?0 ?80 ? 0 - ?1415 poll_s 16:03 ? ? ? ? ?00:00:00 /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd /etc/hostapd/hostapd.conf


Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authentication OK (open system)
Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authenticated
Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: association OK (aid 1)
Jul 27 16:06:15 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: associated (aid 1)
Jul 27 16:06:18 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: deauthenticated due to local deauth request
Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authentication OK (open system)
Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authenticated
Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: association OK (aid 1)
Jul 27 16:06:22 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: associated (aid 1)
Jul 27 16:06:25 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: deauthenticated due to local deauth request
Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authentication OK (open system)
Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: authenticated
Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: association OK (aid 1)
Jul 27 16:06:29 HTPC hostapd: wlan0: STA 88:30:8a:52:ed:cd IEEE 802.11: associated (aid 1)

but I launch manually it doesn't work anymore

xabix@HTPC:~$ sudo service hostapd stop
[sudo] password for xabix:?
?* Stopping advanced IEEE 802.11 management hostapd
? ?...done.
xabix@HTPC:~$ /usr/sbin/hostapd -B -P /var/run/hostapd.pid -dd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
nl80211: Register Action command failed: ret=-1 (Operation not permitted)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 3
nl80211: Add own interface ifindex 4
nl80211: Failed to set interface 4 to mode 3: -1 (Operation not permitted)
nl80211: Failed to set interface 4 to mode 3: -1 (Operation not permitted)
Could not set interface wlan0 flags: Permission denied
nl80211: Interface mode change to 3 from 0 failed
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=4 eloop_data=0x9cdc910 user_data=0x9cde780 handler=0x807c


so the only to launch it for now is to reboot :)

I dit put this on the conf file
# Levels (minimum value for logged events):
# ?0 = verbose debugging
# ?1 = debugging
# ?2 = informational messages
# ?3 = notification
# ?4 = warning
logger_syslog=1
logger_syslog_level=0


but I don't see enough logs to know why after the association there is a deauthentication.

Cheers
almost there :D


2012-07-25 13:59:59

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

For some reason my system has become unstable since the installation of the compat-wireless drivers. :-(

I installed those drivers "compat-wireless-2012-07-03" by doing a make/ make install

modinfo rtl8192ce
filename: ? ? ? /lib/modules/3.2.23-030223-generic/updates/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
firmware: ? ? ? rtlwifi/rtl8192cfwU_B.bin
firmware: ? ? ? rtlwifi/rtl8192cfwU.bin
firmware: ? ? ? rtlwifi/rtl8192cfw.bin
description: ? ?Realtek 8192C/8188C 802.11n PCI wireless
license: ? ? ? ?GPL
author: ? ? ? ? Larry Finger<[email protected]>
author: ? ? ? ? Realtek WlanFAE<[email protected]>
author: ? ? ? ? lizhaoming<[email protected]>
srcversion: ? ? DC0B6C089A8681E6916F078
alias: ? ? ? ? ?pci:v000010ECd00008176sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008177sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008178sv*sd*bc*sc*i*
alias: ? ? ? ? ?pci:v000010ECd00008191sv*sd*bc*sc*i*
depends: ? ? ? ?rtlwifi,rtl8192c-common,compat,mac80211
vermagic: ? ? ? 3.2.23-030223-generic SMP mod_unload modversions 686?
parm: ? ? ? ? ? swenc:Set to 1 for software crypto (default 0)
parm: ? ? ? ? ? ips:Set to 0 to not use link power save (default 1)

parm: ? ? ? ? ? swlps:Set to 1 to use SW control power save (default 0)

parm: ? ? ? ? ? fwlps:Set to 1 to use FW control power save (default 1)

parm: ? ? ? ? ? debug:Set debug level (0-5) (default 0) (int)


Remote VNC works ok but it s difficult to get a ssh session established.

When I launch sudo hostpad, I can't do a ctrl C anymore to stop it.

I see this in kernel:

Jul 25 15:45:53 HTPC kernel: [ ?409.493352] device wlan0 entered promiscuous mode
Jul 25 15:45:53 HTPC kernel: [ ?409.493979] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 25 15:45:53 HTPC kernel: [ ?409.530751] cfg80211: Calling CRDA for country: FR
Jul 25 15:45:53 HTPC kernel: [ ?409.541016] cfg80211: Updating information on frequency 2412 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541024] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541029] cfg80211: Updating information on frequency 2417 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541035] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541039] cfg80211: Updating information on frequency 2422 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541045] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541049] cfg80211: Updating information on frequency 2427 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541055] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541059] cfg80211: Updating information on frequency 2432 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541065] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541069] cfg80211: Updating information on frequency 2437 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541075] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541079] cfg80211: Updating information on frequency 2442 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541085] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541089] cfg80211: Updating information on frequency 2447 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541095] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541099] cfg80211: Updating information on frequency 2452 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541105] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541109] cfg80211: Updating information on frequency 2457 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541115] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541119] cfg80211: Updating information on frequency 2462 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541125] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541129] cfg80211: Updating information on frequency 2467 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541135] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541139] cfg80211: Updating information on frequency 2472 MHz for a 20 MHz width channel with reg
ulatory rule:
Jul 25 15:45:53 HTPC kernel: [ ?409.541145] cfg80211: 2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541149] cfg80211: Disabling freq 2484 MHz
Jul 25 15:45:53 HTPC kernel: [ ?409.541155] cfg80211: Regulatory domain changed to country: FR
Jul 25 15:45:53 HTPC kernel: [ ?409.541158] cfg80211: ? (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Jul 25 15:45:53 HTPC kernel: [ ?409.541164] cfg80211: ? (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541168] cfg80211: ? (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541173] cfg80211: ? (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.541178] cfg80211: ? (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
Jul 25 15:45:53 HTPC kernel: [ ?409.563665] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 25 15:45:53 HTPC kernel: [ ?409.563758] br0: port 2(wlan0) entering forwarding state
Jul 25 15:45:53 HTPC kernel: [ ?409.563781] br0: port 2(wlan0) entering forwarding state
Jul 25 15:46:04 HTPC kernel: [ ?420.264454] wlan0: no IPv6 routers present
Jul 25 15:46:08 HTPC kernel: [ ?424.582630] br0: port 2(wlan0) entering forwarding state
Jul 25 15:46:29 HTPC kernel: [ ?445.538319] device wlan0 left promiscuous mode
Jul 25 15:46:29 HTPC kernel: [ ?445.538334] br0: port 2(wlan0) entering forwarding state
Jul 25 15:49:05 HTPC kernel: [ ?600.912155] INFO: task whoopsie:1394 blocked for more than 120 seconds.
Jul 25 15:49:05 HTPC kernel: [ ?600.912162] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jul 25 15:49:05 HTPC kernel: [ ?600.912167] whoopsie ? ? ? ?D 00000000 ? ? 0 ?1394 ? ? ?1 0x00000000
Jul 25 15:49:05 HTPC kernel: [ ?600.912176] ?d51bfd00 00200082 00000067 00000000 00000000 f3908ca0 c18d5380 c18d5380
Jul 25 15:49:05 HTPC kernel: [ ?600.912189] ?bc9d12b6 00000067 f77cb380 f2e81940 d489bf20 c146b95e f4d342a0 d43db540
Jul 25 15:49:05 HTPC kernel: [ ?600.912201] ?d3ebb280 d51bfd08 c156f209 d3ebb280 c1811c88 d51be000 d3ebb280 00000000
Jul 25 15:49:05 HTPC kernel: [ ?600.912213] Call Trace:

and then 120s after
Jul 25 15:51:05 HTPC kernel: [ ?720.861476] INFO: task whoopsie:1394 blocked for more than 120 seconds.
Jul 25 15:51:05 HTPC kernel: [ ?720.861482] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jul 25 15:51:05 HTPC kernel: [ ?720.861488] whoopsie ? ? ? ?D 00000000 ? ? 0 ?1394 ? ? ?1 0x00000000
Jul 25 15:51:05 HTPC kernel: [ ?720.861496] ?d51bfd00 00200082 00000067 00000000 00000000 f3908ca0 c18d5380 c18d5380
Jul 25 15:51:05 HTPC kernel: [ ?720.861509] ?bc9d12b6 00000067 f77cb380 f2e81940 d489bf20 c146b95e f4d342a0 d43db540
Jul 25 15:51:05 HTPC kernel: [ ?720.861521] ?d3ebb280 d51bfd08 c156f209 d3ebb280 c1811c88 d51be000 d3ebb280 00000000
Jul 25 15:51:05 HTPC kernel: [ ?720.861533] Call Trace:
Jul 25 15:51:05 HTPC kernel: [ ?720.861546] ?[<c146b95e>] ? kfree_skbmem+0x2e/0x80
Jul 25 15:51:05 HTPC kernel: [ ?720.861554] ?[<c156f209>] ? apic_timer_interrupt+0x31/0x38
Jul 25 15:51:05 HTPC kernel: [ ?720.861561] ?[<c156cfd5>] schedule+0x35/0x50
Jul 25 15:51:05 HTPC kernel: [ ?720.861567] ?[<c156db76>] __mutex_lock_slowpath+0xc6/0x120
Jul 25 15:51:05 HTPC kernel: [ ?720.861573] ?[<c156d824>] mutex_lock+0x24/0x40
Jul 25 15:51:05 HTPC kernel: [ ?720.861579] ?[<c14844b2>] rtnl_lock+0x12/0x20
Jul 25 15:51:05 HTPC kernel: [ ?720.861585] ?[<c14844d0>] rtnetlink_rcv+0x10/0x30
Jul 25 15:51:05 HTPC kernel: [ ?720.861592] ?[<c149b189>] netlink_unicast+0x239/0x290
Jul 25 15:51:05 HTPC kernel: [ ?720.861598] ?[<c149b3c8>] netlink_sendmsg+0x1e8/0x310
Jul 25 15:51:05 HTPC kernel: [ ?720.861605] ?[<c14648f7>] sock_sendmsg+0xf7/0x120
Jul 25 15:51:05 HTPC kernel: [ ?720.861610] ?[<c156ebdd>] ? _raw_spin_lock_irqsave+0x2d/0x40
Jul 25 15:51:05 HTPC kernel: [ ?720.861618] ?[<c113aa50>] ? page_symlink+0x30/0x30
Jul 25 15:51:05 HTPC kernel: [ ?720.861624] ?[<c114c1f8>] ? mntput+0x18/0x30
Jul 25 15:51:05 HTPC kernel: [ ?720.861629] ?[<c113ab6a>] ? path_put+0x1a/0x20
Jul 25 15:51:05 HTPC kernel: [ ?720.861636] ?[<c1031895>] ? __wake_up+0x45/0x60
Jul 25 15:51:05 HTPC kernel: [ ?720.861643] ?[<c12a0b42>] ? _copy_from_user+0x42/0x60
Jul 25 15:51:05 HTPC kernel: [ ?720.861649] ?[<c1465f7f>] ? move_addr_to_kernel+0x5f/0x70
Jul 25 15:51:05 HTPC kernel: [ ?720.861655] ?[<c146694e>] sys_sendto+0x10e/0x150
Jul 25 15:51:05 HTPC kernel: [ ?720.861661] ?[<c156e9ad>] ? _raw_spin_lock+0xd/0x10
Jul 25 15:51:05 HTPC kernel: [ ?720.861667] ?[<c1144e54>] ? __d_instantiate+0xa4/0xe0
Jul 25 15:51:05 HTPC kernel: [ ?720.861673] ?[<c1132bc0>] ? alloc_file+0x20/0xb0
Jul 25 15:51:05 HTPC kernel: [ ?720.861679] ?[<c1464ad4>] ? sock_alloc_file+0x84/0xf0
Jul 25 15:51:05 HTPC kernel: [ ?720.861685] ?[<c156e9ad>] ? _raw_spin_lock+0xd/0x10
Jul 25 15:51:05 HTPC kernel: [ ?720.861690] ?[<c112f93c>] ? fd_install+0x4c/0x60
Jul 25 15:51:05 HTPC kernel: [ ?720.861696] ?[<c12a09af>] ? __copy_from_user_ll+0x1f/0x40
Jul 25 15:51:05 HTPC kernel: [ ?720.861702] ?[<c1467360>] sys_socketcall+0x1b0/0x2c0
Jul 25 15:51:05 HTPC kernel: [ ?720.861709] ?[<c1575bdf>] sysenter_do_call+0x12/0x28

2012-07-24 15:25:23

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

great following this thread to make my own compat-wireless:
http://blog.securism.com/2009/01/how-to-cutting-edge-wireless-drivers-in-ubuntu/


I hope it's accurate

Merci



>________________________________
> De?: Larry Finger <[email protected]>
>??: Xavier de Almeida <[email protected]>
>Cc?: "[email protected]" <[email protected]>
>Envoy? le : Mardi 24 juillet 2012 17h06
>Objet?: Re: Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)
>
>On 07/24/2012 08:56 AM, Xavier de Almeida wrote:
>> Thanks Larry for your help.
>> I tried 3.4.6 and 3.5.0 Quantal kernels but they didn't boot with my i8042 keyboard chip.
>>
>> So I have installed 3.2.23-030223 and it now starts OK.
>>
>> FYI here is the new log (I ll have to investigate why the auth between the endpoint and the hotspot doesn't work)
>>
>> MERCI
>> XabiX
>
>Yes, we do make progress. Kernel 3.2.23 has the bug fixes backported from later
>kernels, but there are additional changes that cannot be implemented as they are
>too intrusive. You may still need to incorporate compat-wireless.
>
>Larry
>
>
>
>
>
>?

2012-07-29 19:57:16

by Xavier de Almeida

[permalink] [raw]
Subject: Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

> I run mine, when I test AP mode, without any options.

>
> I'm glad you got it working. Now you know why I recommend spending 40 euro
> for
> an AP rather than trying to use a 600 euro computer for that purpose. BTW, I own
>
> 4 AP/routers.
>
> Larry
>

My goal was to have a low power server that runs 24h for wireless, domotic, ... but I didn't find how to increase the signal and remove the power mgt.

Have you had to add parameters in your rtl8192ce.conf file in modprobe?

I found this device in my garage :) which is known to be working well so I may try it just to compare the signal?strengths?between both
rtl8187 Alfa AWUS036H 0x0bda 0x8187


Again I would like to thank you again for all your reactive support in order to help me making my on-board pci wifi card working. At least I can now make a choice depending on the signal length.

FYI I did find that the BW was quote low with the rtl8188ce AP. Did you notice the same issue?

MERCI