Historical ath9k-devel archives
 help / color / mirror / Atom feed
From: sandeep suresh <sandeep.suresh@yahoo.co.in>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Beacon reception events at WiFi Client
Date: Sun, 27 Mar 2016 06:46:53 +0000 (UTC)	[thread overview]
Message-ID: <1400181905.535980.1459061213829.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <CALhHN=rwASbBAj5TAmTafqGzM+egRYhbq+jx4Jyuqci2L_JPyw@mail.gmail.com>

Dear Janusz Dziedzic,Thanks for your response. First approach is to get the information in an non-intrusive mode; that means without making changes in the linux kernel. Having said that when we use "iw" package as suggested, I have the following query. The Gateway need to be connected to any WiFi AP all the time as WiFi client. ?So as the AR9287 is running as client all the time, can it also work in monitor mode simultaneously without impacting the performance?Thanks & regards
Sandeep.

 

    On Thursday, 24 March 2016 2:41 PM, Janusz Dziedzic <janusz.dziedzic@tieto.com> wrote:
 

 On 23 March 2016 at 16:33, sandeep suresh <sandeep.suresh@yahoo.co.in> wrote:
> Dear experts,
>? ? ? ? We have a AR9287 based WiFi module on the gateway board operating in client mode. WiFi beacons are generated from the WiFi AP say every 100ms. How can we get an event at WiFi client side every time a beacon is received? At these beacon synchronization points, we want to trigger some calculations in another Linux process. Please help.

It should be possible with NL80211_CMD_REGISTER_FRAME, but seems
mac80211 only supports IEEE80211_STYPE_PROBE_REQ for STA mode - so
kernel changes required here.

For quick check you can use NL80211_TEST_CMD and report such command
every beacon from mac80211 (changes in kernel required). But next you
will be sure quality of nl80211 event will be fine for you.

Other option is:
- iw wlan0 interface add mon0 type monitor
- ifconfig mon0 up
- tshark -i mon0 -Y beacon_filter_here

So, you can write simple app (similar to tshark) that will open mon0
and every beacon you are interest send signal() to another process
(but not sure about timing here, you can get beacons in packeges - eg.
5 beacons at once).

BR
Janusz

> Thanks & regards
> Sandeep.
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel at lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20160327/98b11591/attachment.htm 

  reply	other threads:[~2016-03-27  6:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <469059233.2723883.1458747214287.JavaMail.yahoo.ref@mail.yahoo.com>
2016-03-23 15:33 ` [ath9k-devel] Beacon reception events at WiFi Client sandeep suresh
2016-03-24  9:11   ` Janusz Dziedzic
2016-03-27  6:46     ` sandeep suresh [this message]
2016-03-24 13:06   ` Holger Schurig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1400181905.535980.1459061213829.JavaMail.yahoo@mail.yahoo.com \
    --to=sandeep.suresh@yahoo.co.in \
    --cc=ath9k-devel@lists.ath9k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).