Sending ps poll maunally with hostapd

David Shwatrz dshwatrz
Tue Dec 16 01:11:15 PST 2008


Hello,

 I am trying to send ps poll with hostapd.

I had looked in the code and saw that the mac80211_hwsim module
uses debugds.
So I mounted with debugfs thus:
mount -t debugfs none_debugs /sys/kernel/debug
and now I see in
/sys/kernel/debug/ieee80211/phy0/hwsim/ps
and
/sys/kernel/debug/ieee80211/phy1/hwsim/ps

(I don't know why I have phy0 and phy1 - I have only one wireless nic;
should it be
always like this).
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.
Any ideas why ? I probably did something wrong / missed something,

Regards,
David



More information about the Hostap mailing list