• Jaewan Kim's avatar
    mac80211_hwsim: add PMSR capability support · 92d13386
    Jaewan Kim authored
    PMSR (a.k.a. peer measurement) is generalized measurement between two
    Wi-Fi devices. And currently FTM (a.k.a. fine time measurement or flight
    time measurement) is the one and only measurement. FTM is measured by
    RTT (a.k.a. round trip time) of packets between two Wi-Fi devices.
    
    Add necessary functionality to allow mac80211_hwsim to be configured with
    PMSR capability. The capability is mandatory to accept incoming PMSR
    request because nl80211_pmsr_start() ignores incoming the request without
    the PMSR capability.
    
    In detail, add new mac80211_hwsim attribute HWSIM_ATTR_PMSR_SUPPORT.
    HWSIM_ATTR_PMSR_SUPPORT is used to set PMSR capability when creating a new
    radio. To send extra capability details, HWSIM_ATTR_PMSR_SUPPORT can have
    nested PMSR capability attributes defined in the nl80211.h. Data format is
    the same as cfg80211_pmsr_capabilities.
    
    If HWSIM_ATTR_PMSR_SUPPORT is specified, mac80211_hwsim builds
    cfg80211_pmsr_capabilities and sets wiphy.pmsr_capa.
    Signed-off-by: default avatarJaewan Kim <jaewan@google.com>
    Link: https://lore.kernel.org/r/20230322131637.2633968-2-jaewan@google.comSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    92d13386
mac80211_hwsim.c 168 KB