Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: nl80211/cfg80211: add negotiated burst period to FTM result

The FTM result includes some of the periodic measurement negotiated
parameters (like the burst duration and number of bursts), but it
doesn't include the burst period. Add it to the FTM result
notification.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260111190221.e0778f86edef.I3c98c1933eb639963bc3ffdef81a8788b59f2188@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Avraham Stern and committed by
Johannes Berg
cfd46d1c 853ce694

+6
+2
include/net/cfg80211.h
··· 4192 4192 * @num_bursts_exp: actual number of bursts exponent negotiated 4193 4193 * @burst_duration: actual burst duration negotiated 4194 4194 * @ftms_per_burst: actual FTMs per burst negotiated 4195 + * @burst_period: actual burst period negotiated in units of 100ms 4195 4196 * @lci_len: length of LCI information (if present) 4196 4197 * @civicloc_len: length of civic location information (if present) 4197 4198 * @lci: LCI data (may be %NULL) ··· 4234 4233 u8 num_bursts_exp; 4235 4234 u8 burst_duration; 4236 4235 u8 ftms_per_burst; 4236 + u16 burst_period; 4237 4237 s32 rssi_avg; 4238 4238 s32 rssi_spread; 4239 4239 struct rate_info tx_rate, rx_rate;
+3
include/uapi/linux/nl80211.h
··· 7992 7992 * 9.4.2.22.1) starting with the Measurement Token, with Measurement 7993 7993 * Type 11. 7994 7994 * @NL80211_PMSR_FTM_RESP_ATTR_PAD: ignore, for u64/s64 padding only 7995 + * @NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD: actual burst period used by 7996 + * the responder (similar to request, u16) 7995 7997 * 7996 7998 * @NUM_NL80211_PMSR_FTM_RESP_ATTR: internal 7997 7999 * @NL80211_PMSR_FTM_RESP_ATTR_MAX: highest attribute number ··· 8022 8020 NL80211_PMSR_FTM_RESP_ATTR_LCI, 8023 8021 NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC, 8024 8022 NL80211_PMSR_FTM_RESP_ATTR_PAD, 8023 + NL80211_PMSR_FTM_RESP_ATTR_BURST_PERIOD, 8025 8024 8026 8025 /* keep last */ 8027 8026 NUM_NL80211_PMSR_FTM_RESP_ATTR,
+1
net/wireless/pmsr.c
··· 454 454 PUT(u8, NUM_BURSTS_EXP, num_bursts_exp); 455 455 PUT(u8, BURST_DURATION, burst_duration); 456 456 PUT(u8, FTMS_PER_BURST, ftms_per_burst); 457 + PUT(u16, BURST_PERIOD, burst_period); 457 458 PUTOPT(s32, RSSI_AVG, rssi_avg); 458 459 PUTOPT(s32, RSSI_SPREAD, rssi_spread); 459 460 if (res->ftm.tx_rate_valid &&