mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
wifi: cfg80211: extend PMSR FTM response for proximity ranging
Applications need negotiated session parameters to interpret proximity ranging results and perform post-processing. Currently, the FTM response lacks LTF repetition counts, time constraints, spatial stream configuration, and availability window parameters. Extend the FTM response structure to report these negotiated parameters, enabling applications to track session configuration and use them in post-processing to increase ranging precision. Signed-off-by: Peddolla Harshavardhan Reddy <peddolla.reddy@oss.qualcomm.com> Link: https://patch.msgid.link/20260420090856.2152905-8-peddolla.reddy@oss.qualcomm.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
8823a9b0e7
commit
4e901e99ed
@@ -8439,6 +8439,33 @@ enum nl80211_peer_measurement_ftm_failure_reasons {
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_PAD: ignore, for u64/s64 padding only
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD: actual burst period used by
|
||||
* the responder (similar to request, u16)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT: negotiated value of
|
||||
* number of tx ltf repetitions in NDP frames (u32, optional)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT: negotiated value of
|
||||
* number of rx ltf repetitions in NDP frames (u32, optional)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS: negotiated value
|
||||
* where latest time by which the ISTA needs to complete the next round of
|
||||
* measurements, in units of 10 ms (u32, optional)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS: negotiated
|
||||
* minimum time between two consecutive range measurements initiated by an
|
||||
* ISTA, in units of 100 us (u32, optional)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS: number of Tx space-time
|
||||
* streams used in NDP frames during the measurement sounding phase
|
||||
* (u32, optional).
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS: number of Rx space-time
|
||||
* streams used in the NDP frames during the measurement sounding phase
|
||||
* (u32, optional)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME: negotiated nominal time used in
|
||||
* this session in milliseconds. (u32, optional)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW: negotiated availability
|
||||
* window time used in this session, in units of milli seconds.
|
||||
* (u32, optional)
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH: u32 attribute indicating channel
|
||||
* width used for measurement, see &enum nl80211_chan_width (optional).
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE: u32 attribute indicating the preamble
|
||||
* type used for the measurement, see &enum nl80211_preamble (optional).
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR: flag, indicates if the
|
||||
* current result is delayed LMR data.
|
||||
*
|
||||
* @NUM_NL80211_PMSR_FTM_RESP_ATTR: internal
|
||||
* @NL80211_PMSR_FTM_RESP_ATTR_MAX: highest attribute number
|
||||
@@ -8468,6 +8495,17 @@ enum nl80211_peer_measurement_ftm_resp {
|
||||
NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_PAD,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_TX_LTF_REPETITION_COUNT,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_RX_LTF_REPETITION_COUNT,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_MAX_TIME_BETWEEN_MEASUREMENTS,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_MIN_TIME_BETWEEN_MEASUREMENTS,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_NUM_TX_SPATIAL_STREAMS,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_NUM_RX_SPATIAL_STREAMS,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_NOMINAL_TIME,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_AVAILABILITY_WINDOW,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_CHANNEL_WIDTH,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_PREAMBLE,
|
||||
NL80211_PMSR_FTM_RESP_ATTR_IS_DELAYED_LMR,
|
||||
|
||||
/* keep last */
|
||||
NUM_NL80211_PMSR_FTM_RESP_ATTR,
|
||||
|
||||
Reference in New Issue
Block a user