Search Linux Wireless

Re: Tr : Tr : Can't make RTL8188CE work with hostapd (rtl8192ce)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux