You are not logged in.

#1 2012-11-29 06:12:13

mehta_4v
Member
Registered: 2012-11-27
Posts: 5

hostapd + nl80211 + RTL8188RU/RTL8192CU

Hi all,

I am having ALFA AWUS036NHR Wireless USB adapter which has RTL8188RU chipset. I am using the compat-wireless v3.4 driver rtl8192cu. It works fine and when I plug in my adapter I can see the interface in iwconfig. Now I run hostapd with the following conf file:

***********************************
             hostapd.conf
***********************************
interface=wlan15
driver=nl80211
ssid=rtwap
channel=6
wpa=1
wpa_passphrase=87654321
device_name=RTL8188RU
hw_mode=g
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP

But when I run the following command:

# ./hostapd hostapd.conf -B

I get the following output and the interface is up but doesn't get any SSID.

root@10.99.14.100:/bin/wifi# iwconfig
lo        no wirnet eth0: DaVinci EMAC: ioctl not supported
eless extensions.

eth0      no wireless extensions.

Warning: Driver for device wlan15 has been compiled with version 22
of Wireless Extension, while this program supports up to version 21.
Some things may be broken...

wlan15    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

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

No SSID to the interface. Its not that it isn't being broadcasted but its not getting connected event as hidden network. sad sad
Any idea anybody ??? Please help..

Additional outputs that may help figure out something:

root@10.99.14.100:/home/compat_wireless# iwconfig
lo        no wirnet eth0: DaVinci EMAC: ioctl not supported
eless extensions.

eth0      no wireless extensions.

Warning: Driver for device wlan15 has been compiled with version 22
of Wireless Extension, while this program supports up to version 21.
Some things may be broken...

wlan15    IEEE 802.11bgn  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:on

Also the output of the hostapd command with -dd is following:

root@10.99.14.100:/bin/wifi# ./hostapd_nl minimalistic.conf -B
Configuration file: minimalistic.conf
rfkill: Cannot open RFKILL control device
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx queue select: 0x05
Using interface wlan15 with hwaddr 00:c0:ca:6a:e4:2e and ssid 'rtwap'
random: Cannot read from /dev/random: Resource temporarily unavailable
random: Only 0/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects

Last edited by mehta_4v (2012-11-29 06:55:29)

Offline

#2 2012-11-29 06:19:30

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: hostapd + nl80211 + RTL8188RU/RTL8192CU

Unless you use code blocks, I am not going to sort through this crap.

Offline

#3 2012-11-29 06:55:53

mehta_4v
Member
Registered: 2012-11-27
Posts: 5

Re: hostapd + nl80211 + RTL8188RU/RTL8192CU

smile M sorry. Did it ..

Offline

#4 2012-11-29 21:12:42

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 116
Website

Re: hostapd + nl80211 + RTL8188RU/RTL8192CU

Won't work. That driver doesn't work properly in Master/AP mode yet (it may switch to Master mode, but wont handle traffic properly/at all).

Offline

#5 2012-11-30 05:35:01

mehta_4v
Member
Registered: 2012-11-27
Posts: 5

Re: hostapd + nl80211 + RTL8188RU/RTL8192CU

Enverex wrote:

Won't work. That driver doesn't work properly in Master/AP mode yet (it may switch to Master mode, but wont handle traffic properly/at all).

Hi Enverex,

     I got the AP mode already running on the chip with hostapd itself when I use the "driver=rtl871xdrv" instead of the "driver=nl80211" in the hostapd.conf file. I get the access point working perfectly with it. But the need to switch aroused because i needed to make the multiple SSID feature of the hostapd working. This feature is not supported by the rtl871xdrv driver in the hostapd.

Also I am using the compat wireless v3.4 driver for my chipset and I guess it supports the AP mode.

Offline

#6 2012-11-30 08:02:40

Enverex
Member
From: UK
Registered: 2007-06-13
Posts: 116
Website

Re: hostapd + nl80211 + RTL8188RU/RTL8192CU

That must have been something that's been implemented very recently, so that's good to hear. Can't help with the SSID issue though, sorry.

Offline

#7 2013-07-25 19:25:23

senorsmile
Member
Registered: 2010-12-12
Posts: 67

Re: hostapd + nl80211 + RTL8188RU/RTL8192CU

mehta_4v wrote:
Enverex wrote:

Won't work. That driver doesn't work properly in Master/AP mode yet (it may switch to Master mode, but wont handle traffic properly/at all).

Hi Enverex,

     I got the AP mode already running on the chip with hostapd itself when I use the "driver=rtl871xdrv" instead of the "driver=nl80211" in the hostapd.conf file. I get the access point working perfectly with it. But the need to switch aroused because i needed to make the multiple SSID feature of the hostapd working. This feature is not supported by the rtl871xdrv driver in the hostapd.

Also I am using the compat wireless v3.4 driver for my chipset and I guess it supports the AP mode.


Did you ever get this working with the nl80211 driver for multiple ssid?

Offline

Board footer

Powered by FluxBB