Sending ps poll maunally with hostapd

Jouni Malinen j
Tue Dec 16 03:29:49 PST 2008


On Tue, Dec 16, 2008 at 11:11:15AM +0200, David Shwatrz wrote:

> I had looked in the code and saw that the mac80211_hwsim module
> uses debugds.

> (I don't know why I have phy0 and phy1 - I have only one wireless nic;
> should it be
> always like this).

What exactly are you trying to do? This comment here seems to indicate
that there could be some misunderstanding on what mac80211_hwsim is.. It
has nothing to do with a real wireless NIC and is only used to test
mac80211 (and higher layer of the stack) in a software simulated
environment.

> now
> cat /sys/kernel/debug/ieee80211/phy0/hwsim/ps
> gives 0 (and also the same on the second entry).
> I tried:
> echo "1" > /sys/kernel/debug/ieee80211/phy1/hwsim/ps
> and echo "1" > /sys/kernel/debug/ieee80211/phy0/hwsim/ps
> but I ** do not** reach the hwsim_send_ps_poll() method.
> I know it for sure because I added a printk in hwsim_send_ps_poll()
> in mac80211_hwsim.c and built it; but I don't see it.

Are you using phy0 as the client radio and phy1 as the AP? If not, this
won't work.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list