2012-08-30 20:11:21

by coekbe

[permalink] [raw]
Subject: rtl8192cu: no beacon transmission in AP mode with Asus USB-N13

Hi All,

I created an Access Point using hostapd and the following USB stick:

ID 0b05:17ab ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter
(rev. B1) [Realtek RTL8192CU]

The problem is that I cannot see any beacon frames in data captured
from the air. I cannot see beacon frames in the hostapd created
mon.wlan0 interface on the AP either.

I believe this is why my (power saving) phone doesn't work properly
with the AP. When the AP is trying to send IP packets to the phone, I
can see the packets on the AP's wlan0 interface using tcpdump, but the
packets are not being transmitted over the air. The packets are only
aired when the phone sends some packet to the AP. Then all of AP's
packets go at once, so they must have been just queued. For example, I
cannot successfully (ICMP) ping my phone from the AP. The echo
requests are not leaving the AP. A workaround in this case is to ARP
(broadcast) ping the phone from the AP. This causes the phone to wake
up to respond with an ARP reply, which in turn makes the AP send all
the queued ICMP echo requests at one go. Actually, if I leave arping
running I can browse the web and use internet on the phone without
much trouble. If I stop ARP pinging, it all stops working.

The following post suggests that rtl8192cu has beaconed in the past:

http://marc.info/?l=linux-wireless&m=132207376529915&w=2

I've tried kernel 3.2.23, as it currently comes in Debian Wheezy, with
the stable compat-wireless-3.5.1-1-snpc.tar.bz2, and
compat-wireless-2012-08-29-p.tar.bz2. Makes no difference. Wheezy's
hostapd version is 1.0.

(In Windows, the USB stick does work properly in AP mode and I can
also capture beacon frames from the air. No trouble with the phone
either.)

Regards,
Colin


2012-09-01 10:08:09

by coekbe

[permalink] [raw]
Subject: Re: rtl8192cu: no beacon transmission in AP mode with Asus USB-N13

On Thu, Aug 30, 2012 at 11:11 PM, coekbe <[email protected]> wrote:
> Hi All,
>
> I created an Access Point using hostapd and the following USB stick:
>
> ID 0b05:17ab ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter
> (rev. B1) [Realtek RTL8192CU]
>
> The problem is that I cannot see any beacon frames in data captured
> from the air. I cannot see beacon frames in the hostapd created
> mon.wlan0 interface on the AP either.

Looks like rtlwifi, rtl8192cu driver code does not contain any calls
to ieee80211_beacon_get() or ieee80211_beacon_get_tim() (except in
pci.c) so I guess beacon frames are missing simply because that
functionality was never programmed. (Realtek vendor driver does
transmit beacon frames, though.)

Colin