* iwlwifi: ToF usage
@ 2017-09-14 19:44 Joel B
2017-09-21 19:35 ` Joel Bjurström
0 siblings, 1 reply; 4+ messages in thread
From: Joel B @ 2017-09-14 19:44 UTC (permalink / raw)
To: linux-wireless
Hi,
Starting to play around with the FTM/ToF support in iwlwifi, but
documentation is (understandably) scarce at this point. Using a pair of
8260:s I had lying around.
Can someone give me some hints on how to work the debugfs API for a
successful measurement?
I've set up one card as AP with hostapd (with ftm_responder=1 and
ftm_initiator=1 in hostapd.conf), the other as a STA.
From the STA, I've played with 'tof_range_request' in debugfs. Writing
send_range_request=1, which it doesn't choke on or anything, but nothing
seems to happen. Guess I need to set things up a bit first, but how?
If it's possible to get this to work at all at this stage, some hints on
how to do it would be great.
Thanks,
Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iwlwifi: ToF usage
2017-09-14 19:44 iwlwifi: ToF usage Joel B
@ 2017-09-21 19:35 ` Joel Bjurström
2017-10-04 4:52 ` Luciano Coelho
0 siblings, 1 reply; 4+ messages in thread
From: Joel Bjurström @ 2017-09-21 19:35 UTC (permalink / raw)
To: linux-wireless, assaf.krauss, luciano.coelho, johannes.berg,
emmanuel.grumbach
Including some people I've seen mentioned in ToF-related e-mails...
This is what I've tried:
-- Responder --
* hostapd running, hostapd.conf:
driver=nl80211
interface=wlan1
hw_mode=g
channel=1
wmm_enabled=1
ssid=tof_test
ftm_responder=1
ftm_initiator=1
$ cd /sys/kernel/debug/iwlwifi/0000:06:00.0/iwlmvm/netdev:wlan1
$ echo channel_num=1 > tof_responder_params
$ echo bssid=bb:bb:bb:bb:bb:bb > tof_responder_params
$ echo rate=1 > tof_responder_params
$ echo ftm_per_burst=5 > tof_responder_params
$ echo send_responder_cfg=1 > tof_responder_params
-- Initiator --
$ cd /sys/kernel/debug/iwlwifi/0000:06:00.0/iwlmvm/netdev:wlan1
$ echo send_tof_cfg=1 > tof_enable
$ echo 'num_of_ap=1' > tof_range_request
$ echo 'ap=0 1 0 0 bb:bb:bb:bb:bb:bb 0 10 0 5 5 0 0 0 0 -40' \
> tof_range_request
$ echo 'send_range_request=1' > tof_range_request
$ cat tof_range_response
request_id = 0
status = 2
last_in_batch = 1
num_of_aps = 0
(bb:bb:bb:bb:bb:bb is the responder's BSSID)
Am I even close? Fumbling in the dark here.
The 'status = 2' from tof_range_response comes directly from the FW,
AFAICT. What do different values mean?
Cheers,
Joel
On 09/14/2017 09:44 PM, Joel B wrote:
> Hi,
>
> Starting to play around with the FTM/ToF support in iwlwifi, but
> documentation is (understandably) scarce at this point. Using a pair of
> 8260:s I had lying around.
>
> Can someone give me some hints on how to work the debugfs API for a
> successful measurement?
>
> I've set up one card as AP with hostapd (with ftm_responder=1 and
> ftm_initiator=1 in hostapd.conf), the other as a STA.
>
> From the STA, I've played with 'tof_range_request' in debugfs. Writing
> send_range_request=1, which it doesn't choke on or anything, but nothing
> seems to happen. Guess I need to set things up a bit first, but how?
>
> If it's possible to get this to work at all at this stage, some hints on
> how to do it would be great.
>
>
> Thanks,
> Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iwlwifi: ToF usage
2017-09-21 19:35 ` Joel Bjurström
@ 2017-10-04 4:52 ` Luciano Coelho
2017-10-11 8:05 ` Luca Coelho
0 siblings, 1 reply; 4+ messages in thread
From: Luciano Coelho @ 2017-10-04 4:52 UTC (permalink / raw)
To: Joel Bjurström, linux-wireless, assaf.krauss, johannes.berg,
emmanuel.grumbach
Cc: linuxwifi
Hi Joel,
Unfortunately we don't have full support for ToF on the mainline kernel
yet. But you can try to use one of our Core releases (which is a
backports-based tree) that you can find here:
You could try the release/Core30 branch, for example.
--
Cheers,
Luca.
On Thu, 2017-09-21 at 21:35 +0200, Joel Bjurström wrote:
> Including some people I've seen mentioned in ToF-related e-mails...
>
> This is what I've tried:
>
>
> -- Responder --
>
> * hostapd running, hostapd.conf:
> driver=nl80211
> interface=wlan1
> hw_mode=g
> channel=1
> wmm_enabled=1
> ssid=tof_test
> ftm_responder=1
> ftm_initiator=1
>
> $ cd /sys/kernel/debug/iwlwifi/0000:06:00.0/iwlmvm/netdev:wlan1
> $ echo channel_num=1 > tof_responder_params
> $ echo bssid=bb:bb:bb:bb:bb:bb > tof_responder_params
> $ echo rate=1 > tof_responder_params
> $ echo ftm_per_burst=5 > tof_responder_params
>
> $ echo send_responder_cfg=1 > tof_responder_params
>
>
> -- Initiator --
>
> $ cd /sys/kernel/debug/iwlwifi/0000:06:00.0/iwlmvm/netdev:wlan1
> $ echo send_tof_cfg=1 > tof_enable
> $ echo 'num_of_ap=1' > tof_range_request
> $ echo 'ap=0 1 0 0 bb:bb:bb:bb:bb:bb 0 10 0 5 5 0 0 0 0 -40' \
> > tof_range_request
>
> $ echo 'send_range_request=1' > tof_range_request
>
> $ cat tof_range_response
> request_id = 0
> status = 2
> last_in_batch = 1
> num_of_aps = 0
>
>
>
> (bb:bb:bb:bb:bb:bb is the responder's BSSID)
>
> Am I even close? Fumbling in the dark here.
>
> The 'status = 2' from tof_range_response comes directly from the FW,
> AFAICT. What do different values mean?
>
> Cheers,
> Joel
>
>
> On 09/14/2017 09:44 PM, Joel B wrote:
> > Hi,
> >
> > Starting to play around with the FTM/ToF support in iwlwifi, but
> > documentation is (understandably) scarce at this point. Using a
> > pair of
> > 8260:s I had lying around.
> >
> > Can someone give me some hints on how to work the debugfs API for
> > a
> > successful measurement?
> >
> > I've set up one card as AP with hostapd (with ftm_responder=1 and
> > ftm_initiator=1 in hostapd.conf), the other as a STA.
> >
> > From the STA, I've played with 'tof_range_request' in debugfs.
> > Writing
> > send_range_request=1, which it doesn't choke on or anything, but
> > nothing
> > seems to happen. Guess I need to set things up a bit first, but
> > how?
> >
> > If it's possible to get this to work at all at this stage, some
> > hints on
> > how to do it would be great.
> >
> >
> > Thanks,
> > Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iwlwifi: ToF usage
2017-10-04 4:52 ` Luciano Coelho
@ 2017-10-11 8:05 ` Luca Coelho
0 siblings, 0 replies; 4+ messages in thread
From: Luca Coelho @ 2017-10-11 8:05 UTC (permalink / raw)
To: Joel Bjurström, linux-wireless, assaf.krauss, johannes.berg,
emmanuel.grumbach
Cc: linuxwifi
On Wed, 2017-10-04 at 07:52 +0300, Luciano Coelho wrote:
> Hi Joel,
>
> Unfortunately we don't have full support for ToF on the mainline
> kernel
> yet. But you can try to use one of our Core releases (which is a
> backports-based tree) that you can find here:
>
> You could try the release/Core30 branch, for example.
Johannes has also created a patch on top of the latest iw tool, adding
the commands for ToF. Please see my comment in this bugzilla entry if
you want to try that:
https://bugzilla.kernel.org/show_bug.cgi?id=197187#c1
Also, if you have any problems, please add it to bugzilla so we can
track this all in a single place.
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-11 8:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-14 19:44 iwlwifi: ToF usage Joel B
2017-09-21 19:35 ` Joel Bjurström
2017-10-04 4:52 ` Luciano Coelho
2017-10-11 8:05 ` Luca Coelho
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.