Setting up a RTL8188CUS 802.11n WLAN Adapter

Csanyi Pal csanyipal at gmail.com
Sat Mar 8 15:27:21 EST 2014


Hi,

I want to setup my Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
Adapter as a Wireless Access Point, sofar without success.

I'm running a kernel version 2.6.39.4-13 with rtl8192cu kernel module
support. 

When I plug in the USB WLAN Adapter, the wlan0 interface appeares:
$ sudo ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:22:02:00:07:3c  
          inet addr:95.85.142.16  Bcast:95.85.143.255
	  Mask:255.255.252.0
          inet6 addr: fe80::222:2ff:fe00:73c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15972 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3694 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3001613 (2.8 MiB)  TX bytes:831790 (812.2 KiB)
          Base address:0x8000 

eth1      Link encap:Ethernet  HWaddr 00:22:02:00:07:3d  
          inet addr:192.168.10.1  Bcast:192.168.10.255
	  Mask:255.255.255.0
          inet6 addr: fe80::222:2ff:fe00:73d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4016 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:861444 (841.2 KiB)  TX bytes:1520264 (1.4 MiB)
          Base address:0xc000 

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:135 errors:0 dropped:0 overruns:0 frame:0
          TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:39701 (38.7 KiB)  TX bytes:39701 (38.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:e0:4c:81:92:00  
          BROADCAST 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)

eth0 is my wired NIC to my ISP through a cable modem.
eth1 is ma wired LAN NIC.
wlan0 should be my wireless LAN NIC.

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
802.11n WLAN Adapter

I'm trying to follow these steps:
http://wireless.kernel.org/en/users/Documentation/hostapd

I have the file: /etc/hostapd/hostapd-minimal.conf
interface=wlan0
driver=nl80211
ssid=test
channel=1

When I run:
$ cd /etc/hostapd
$ hostapd ./hostapd-minimal.conf

I get:

Configuration file: ./hostapd-minimal.conf
Could not set interface mon.wlan0 flags: No such device
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.

What am I missing here?
Any advices will be appreciated!

-- 
Regards from Pal



More information about the HostAP mailing list