Updated Enable 802.11mc FTM on Intel 8260 (markdown)
parent
31a5b5cbb1
commit
e4a6b7bf2d
|
|
@ -93,6 +93,51 @@ Further, you can check to see if `iw --help | grep FTM` gives you something like
|
|||
# 0x4. Get Result!
|
||||
### AP side
|
||||
Simply enable HostAPd.
|
||||
|
||||
Edit `/etc/init.d/hostapd`
|
||||
```
|
||||
sed -i 's/DAEMON_SBIN=/DAEMON_SBIN="\/usr\/local\/bin\/hostapd"\n# DAEMON_SBIN=/' /etc/init.d/hostapd
|
||||
sed -i 's/DAEMON_CONF=/DAEMON_CONF="\/etc\/hostapd\/hostapd.conf"\n# DAEMON_CONF=/' /etc/init.d/hostapd
|
||||
```
|
||||
|
||||
Edit `/etc/network/if-pre-up.d/hostapd`:
|
||||
```
|
||||
sed -i 's/HOSTAPD_BIN=/HOSTAPD_BIN="\/usr\/local\/bin\/hostapd"\n# HOSTAPD_BIN=/' /etc/network/if-pre-up.d/hostapd
|
||||
```
|
||||
|
||||
Edit `/etc/default/hostapd`:
|
||||
```
|
||||
sed -i 's/DAEMON_CONF=/DAEMON_CONF="\/etc\/hostapd\/hostapd.conf"\n# DAEMON_CONF=/' /etc/default/hostapd
|
||||
```
|
||||
|
||||
Edit `/etc/network/interfaces`:
|
||||
```
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
auto wlp58s0
|
||||
iface wlp58s0 inet static
|
||||
/usr/local/bin/hostapd /etc/hostapd/hostapd.conf
|
||||
address 192.168.1.1
|
||||
netmask 255.255.255.0
|
||||
```
|
||||
|
||||
Edit `/etc/hostapd/hostapd.conf`
|
||||
```
|
||||
interface=wlp58s0
|
||||
driver=nl80211
|
||||
bssid=<mac address>
|
||||
ssid=sandlab_11mc_test
|
||||
hw_mode=g
|
||||
channel=1
|
||||
wmm_enabled=1
|
||||
wme_enabled=1
|
||||
ctrl_interface=/var/run/hostapd
|
||||
ctrl_interface_group=0
|
||||
ftm_responder=1
|
||||
ftm_initiator=1
|
||||
```
|
||||
|
||||
|
||||
### Client side
|
||||
Note: you do not need to associate/connect to AP to get the measurement.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue