1. 24 3月, 2023 3 次提交
    • J
      mac80211_hwsim: add PMSR abort support via virtio · 8ba1da95
      Jaewan Kim 提交于
      PMSR (a.k.a. peer measurement) is generalized measurement between two
      devices with Wi-Fi support. And currently FTM (a.k.a. fine time
      measurement or flight time measurement) is the one and only measurement.
      
      Add necessary functionalities for mac80211_hwsim to abort previous PMSR
      request. The abortion request is sent to the wmedium where the PMSR request
      is actually handled.
      
      In detail, add new mac80211_hwsim command HWSIM_CMD_ABORT_PMSR. When
      mac80211_hwsim receives the PMSR abortion request via
      ieee80211_ops.abort_pmsr, the received cfg80211_pmsr_request is resent to
      the wmediumd with command HWSIM_CMD_ABORT_PMSR and attribute
      HWSIM_ATTR_PMSR_REQUEST. The attribute is formatted as the same way as
      nl80211_pmsr_start() expects.
      Signed-off-by: NJaewan Kim <jaewan@google.com>
      Link: https://lore.kernel.org/r/20230322131637.2633968-5-jaewan@google.comSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
      8ba1da95
    • J
      mac80211_hwsim: add PMSR request support via virtio · 5530c04c
      Jaewan Kim 提交于
      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 functionalities for mac80211_hwsim to start PMSR request by
      passthrough the request to wmediumd via virtio. mac80211_hwsim can't
      measure RTT for real because mac80211_hwsim the software simulator and
      packets are sent almost immediately for real. This change expect wmediumd
      to have all the location information of devices, so passthrough requests
      to wmediumd.
      
      In detail, add new mac80211_hwsim command HWSIM_CMD_ABORT_PMSR. When
      mac80211_hwsim receives the PMSR start request via
      ieee80211_ops.start_pmsr, the received cfg80211_pmsr_request is resent to
      the wmediumd with command HWSIM_CMD_START_PMSR and attribute
      HWSIM_ATTR_PMSR_REQUEST. The attribute is formatted as the same way as
      nl80211_pmsr_start() expects.
      Signed-off-by: NJaewan Kim <jaewan@google.com>
      Link: https://lore.kernel.org/r/20230322131637.2633968-4-jaewan@google.comSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
      5530c04c
    • J
      mac80211_hwsim: add PMSR capability support · 92d13386
      Jaewan Kim 提交于
      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: NJaewan Kim <jaewan@google.com>
      Link: https://lore.kernel.org/r/20230322131637.2633968-2-jaewan@google.comSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
      92d13386
  2. 22 3月, 2023 3 次提交
  3. 13 3月, 2023 1 次提交
  4. 08 3月, 2023 1 次提交
  5. 07 3月, 2023 2 次提交
  6. 14 2月, 2023 1 次提交
  7. 21 10月, 2022 1 次提交
    • J
      wifi: mac80211_hwsim: fix debugfs attribute ps with rc table support · 69188df5
      Jonas Jelonek 提交于
      Fixes a warning that occurs when rc table support is enabled
      (IEEE80211_HW_SUPPORTS_RC_TABLE) in mac80211_hwsim and the PS mode
      is changed via the exported debugfs attribute.
      
      When the PS mode is changed, a packet is broadcasted via
      hwsim_send_nullfunc by creating and transmitting a plain skb with only
      header initialized. The ieee80211 rate array in the control buffer is
      zero-initialized. When ratetbl support is enabled, ieee80211_get_tx_rates
      is called for the skb with sta parameter set to NULL and thus no
      ratetbl can be used. The final rate array then looks like
      [-1,0; 0,0; 0,0; 0,0] which causes the warning in ieee80211_get_tx_rate.
      
      The issue is fixed by setting the count of the first rate with idx '0'
      to 1 and hence ieee80211_get_tx_rates won't overwrite it with idx '-1'.
      Signed-off-by: NJonas Jelonek <jelonek.jonas@gmail.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      69188df5
  8. 10 10月, 2022 2 次提交
  9. 06 9月, 2022 5 次提交
  10. 03 9月, 2022 6 次提交
  11. 29 8月, 2022 1 次提交
    • J
      genetlink: start to validate reserved header bytes · 9c5d03d3
      Jakub Kicinski 提交于
      We had historically not checked that genlmsghdr.reserved
      is 0 on input which prevents us from using those precious
      bytes in the future.
      
      One use case would be to extend the cmd field, which is
      currently just 8 bits wide and 256 is not a lot of commands
      for some core families.
      
      To make sure that new families do the right thing by default
      put the onus of opting out of validation on existing families.
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      Acked-by: Paul Moore <paul@paul-moore.com> (NetLabel)
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9c5d03d3
  12. 25 8月, 2022 2 次提交
  13. 22 7月, 2022 2 次提交
  14. 15 7月, 2022 10 次提交