How to send periodic directed probe requests?
Hello,
I am stumped. I am working on a project where we need our product to send out periodic directed probe requests. I don't know much about programming, but am somewhat familiar with Linux.
Our device uses Linux version is 2.6.24-rt1-hi3520v100 and our Wireless card is an Atheros AR9223
Here is the current behavior of our device:
1.) If it doesn't have an active wireless connection, it will keep sending out both directed and broadcast probes until it's associated with an AP.
2.) Once it's fully associated it goes completely silent.
What I need is to have our device periodically (about every 90 secs.) send out a directed probe request for whatever the current SSID is (similar to what my laptop or phone does... they seem to send a directed probe about every 90 seconds). From what I have researched I can't seem to find anything that relates to a config setting that will allow what I need.
I was thinking of just having the device do an "iwlist ath0 scan" every 90 seconds once it's associated with an AP, but "iwlist scan" sends broadcast probes and I only want directed ones.
Is there possibly a module that exists that I can install to enable this feature?
Here is the command that the device runs for the WPA supplicant if that is relevant or helps at all:
wpa_supplicant -i ath0 -D wext -c /etc/wpa_supplicant.conf
Any ideas on how I can achieve this? Thanks!
|