Updated Enable 802.11mc FTM on Intel 8260 (markdown)

HappyZ 2018-01-30 17:22:34 -06:00
parent 01bc2ce617
commit 4f1fd96d66
1 changed files with 26 additions and 0 deletions

@ -38,6 +38,7 @@ Before make, we need to change the code so that FTM responder mode is enabled (t
}
```
Also move the entire `static int nl80211_start_ftm_responder(struct sk_buff *skb, struct genl_info *info)` function above `nl80211_start_ap`.
We are now ready to make & install:
```
$ make -j4
@ -85,6 +86,31 @@ $ sudo make install
To validate, run `which iw` to see where is current path for `iw` and run `iw --version` to see if it is `iw version 4.14`.
Further, you can check to see if `iw --help | grep FTM` gives you something like `Send an FTM request...`. If so, installation is successful.
# 0x4. Get Result!
### AP side
Simply enable HostAPd.
### Client side
Note: you do not need to associate/connect to AP to get the measurement.
First create a file `config_entry` contains the following entry:
```
<mac_address> bw=20 cf=2462 retries=5 asap
```
where `bw` is the bandwidth, `cf` is the center frequency of AP's channel.
Then request FTM measurement via
```
sudo iw <wlan_interface> measurement ftm_request config_entry
```
### Result example
You should see something like the following:
```
Success to put for target 34:f6:4b:5e:69:1f.
phy #0: FTM result! Status: 0
Target: 34:f6:4b:5e:69:1f, status: 0, rtt: -33429 psec, distance: -501 cm
```
If you see anything other than `status: 0`, it means it is not succeeded.
# Reference
[1] https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi