Wireless
Participate in insightful discussions regarding issues related to Intel® Wireless Adapters and technologies
7506 Discussions

iwlwifi 8260 FTM function don't work

dreamstar
Beginner
901 Views

Hello!

I have been working and testing FTM RTT function using IWLWIFI on intel 8260.
Now, I used below
* iwlwifi driver - core30 backporting, intel firmware version 31.
and iw 4.9 version (already i patched patch -p1 < bef149ad0c1b8c8f.txt)
ftm respondor - Google WiFi uses a single Qualcomm IPQ4019 chipset

* Question
1. I don't know why fw response status: 4 and all response value is 0 ?
2. how can I test ftm function exactly?

* Test ftm initiator conf file is below
echo e4:f0:42:d7:d7:7a bw=20 cf=2447 asap > /conf
echo e4:f0:42:d7:d7:7e bw=20 cf=2472 asap > /conf
echo e4:f0:42:d7:d7:7a bw=20 cf=5240 asap > /conf
echo e4:f0:42:d7:d7:7e bw=20 cf=5765 asap > /conf

* testing CMD (with using IW)
iw wlp1s0 measurement ftm_request /conf

FTM result! Status: 0
IW [parse_ftm_target] 1
Target: bb:bb:bb:bb:bb:bb, status: 4, rtt: 0 psec, distance: 0 cm

debug enabled I checked dmesg.


[ 235.614673] iwlwifi 0000:01:00.0: U iwl_mvm_tof_perform_ftm [iwl_mvm_tof_perform_ftm] active_request_id = 256
[ 235.616591] iwlwifi 0000:01:00.0: U iwl_pcie_send_hcmd_sync Attempting to send sync command TOF_RANGE_REQ_EXT_CMD
[ 235.616610] iwlwifi 0000:01:00.0: U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command TOF_RANGE_REQ_EXT_CMD
[ 235.618276] iwlwifi 0000:01:00.0: I iwl_pcie_enqueue_hcmd Sending command TOF_RANGE_REQ_EXT_CMD (08.03), seq: 0x002D, 16 bytes at 45[13]:0
[ 235.618697] iwlwifi 0000:01:00.0: I iwl_pcie_set_cmd_in_flight set ref_cmd_in_flight - ref
[ 235.620038] iwlwifi 0000:01:00.0: I iwl_pcie_clear_cmd_in_flight clear ref_cmd_in_flight - unref
[ 235.620053] iwlwifi 0000:01:00.0: I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command TOF_RANGE_REQ_EXT_CMD

[ 235.626945] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req ctrl channel: 0
[ 235.626955] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req bssid: e4:f0:42:d7:d7:7a
[ 235.626964] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req one sided: 0
[ 235.626973] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req num of bursts: 0
[ 235.626983] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req burst period: 0
[ 235.626992] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req samples/burst: 2
[ 235.627002] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req retries/sample: 3
[ 235.627011] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req tsf delta: 2514409310
[ 235.627021] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req location: 0
[ 235.627030] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req asap: 1
[ 235.627039] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req dyn ack: 1
[ 235.627048] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req rssi: 0
[ 235.627057] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_req notify MCSI: 1
[ 235.628278] iwlwifi 0000:01:00.0: U iwl_pcie_send_hcmd_sync Attempting to send sync command TOF_RANGE_REQ_CMD
[ 235.628289] iwlwifi 0000:01:00.0: U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command TOF_RANGE_REQ_CMD
[ 235.629947] iwlwifi 0000:01:00.0: I iwl_pcie_enqueue_hcmd Sending command TOF_RANGE_REQ_CMD (08.00), seq: 0x002E, 184 bytes at 46[14]:0
[ 235.630368] iwlwifi 0000:01:00.0: I iwl_pcie_set_cmd_in_flight set ref_cmd_in_flight - ref
[ 235.633840] iwlwifi 0000:01:00.0: I iwl_pcie_clear_cmd_in_flight clear ref_cmd_in_flight - unref
[ 235.634606] iwlwifi 0000:01:00.0: I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command TOF_RANGE_REQ_CMD
[ 235.767482] iwlwifi 0000:01:00.0: U iwl_mvm_tof_range_resp [iwl_mvm_tof_range_resp]
[ 235.768499] iwlwifi 0000:01:00.0: U iwl_mvm_tof_find_target_in_request [iwl_mvm_tof_find_target_in_request]
[ 235.768887] iwlwif0: I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command POWER_TABLE_CMD
[ 235.779774] iwlwifi 0000:01:00.0: U iwl_mvm_power_update_device Sending device power command with flags = 0x1
[ 235.781234] iwlwifi 0000:01:00.0: U iwl_pcie_send_hcmd_sync Attempting to send sync command POWER_TABLE_CMD
[ 235.781248] iwlwifi 0000:01:00.0: U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command POWER_TABLE_CMD
[ 235.782972] iwlwifi 0000:01:00.0: I iwl_pcie_enqueue_hcmd Sending command POWER_TABLE_CMD (01.77), seq: 0x0030, 12 bytes at 48[16]:0
[ 235.783394] iwlwifi 0000:01:00.0: I iwl_pcie_set_cmd_in_flight set ref_cmd_in_flight - ref
[ 235.786583] iwlwifi 0000:01:00.0: I iwl_pcie_clear_cmd_in_flight clear ref_cmd_in_flight - unref
[ 235.787310] iwlwifi 0000:01:00.0: I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command POWER_TABLE_CMD

[ 235.794922] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp Range response received
[ 235.794936] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp status: 0, cookie: 3, num of entries: 1
[ 235.794949] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp entry 0
[ 235.794961] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp status: 4
[ 235.794974] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp complete: false
[ 235.794987] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp BSSID: e4:f0:42:d7:d7:7a
[ 235.795000] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp host time: 235693490487
[ 235.795013] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp tsf: 0
[ 235.795025] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp burst index: 0
[ 235.795038] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp measurement num: 0
[ 235.795050] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp success num: 0
[ 235.795062] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp num per burst: 0
[ 235.795075] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp retry after duration: 0
[ 235.795088] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp burst duration: 0
[ 235.795101] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp negotiated burst: 0
[ 235.795113] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp rssi: 0
[ 235.795125] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp rssi spread: 0
[ 235.795137] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp rtt: 0
[ 235.795150] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp rtt var: 0
[ 235.795162] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp rtt spread: 0
[ 235.795174] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp distance: 0
[ 235.795187] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp distance variance: 0
[ 235.795200] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp distance spread: 0
[ 235.795212] iwlwifi 0000:01:00.0: U iwl_mvm_debug_range_resp filled: 7ce010

0 Kudos
0 Replies
Reply