NAN synchronization for mac80211_hwsim
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | wifi: mac80211_hwsim: fix typo in frequency notificationdrivers/ | +1 | 0 replies | |
| 2/18 | wifi: mac80211_hwsim: disable BHs for hwsim_radio_lockdrivers/ | +2 | 0 replies | |
| 3/18 | wifi: mac80211_hwsim: remove unused nan_vif struct memberdrivers/ | +0 | 0 replies | |
| 4/18 | wifi: mac80211_hwsim: move NAN related variables into a structdrivers/ | +40 | 0 replies | |
| 5/18 | wifi: mac80211_hwsim: split NAN handling into separate filedrivers/ drivers/ drivers/ +2 more | +363 | 0 replies | |
| 6/18 | wifi: mac80211_hwsim: rename and switch simulation time to boottimedrivers/ | +18 | 0 replies | |
| 7/18 | wifi: mac80211_hwsim: move timestamp writing later in the datapathdrivers/ drivers/ | +49 | 0 replies | |
| 8/18 | wifi: mac80211_hwsim: register beacon timer by calculating TBTTdrivers/ drivers/ | +22 | 1 reply | |
| 9/18 | wifi: mac80211_hwsim: refactor NAN timer handlingdrivers/ drivers/ drivers/ +1 more | +133 | 0 replies | |
| 10/18 | wifi: mac80211_hwsim: switch to use TXQsdrivers/ | +15 | 0 replies | |
| 11/18 | wifi: mac80211: add a TXQ for management frames on NAN devicesinclude/ net/ net/ +1 more | +66 | 0 replies | |
| 12/18 | wifi: mac80211_hwsim: limit TX of frames to the NAN DWdrivers/ drivers/ drivers/ +1 more | +97 | 0 replies | |
| 13/18 | wifi: mac80211_hwsim: select NAN TX channel based on current TSFdrivers/ drivers/ drivers/ | +22 | 0 replies | |
| 14/18 | wifi: mac80211_hwsim: only RX on NAN when active on a slotdrivers/ drivers/ drivers/ | +52 | 0 replies | |
| 15/18 | wifi: mac80211_hwsim: protect tsf_offset using a spinlockdrivers/ drivers/ | +26 | 0 replies | |
| 16/18 | wifi: ieee80211: add more NAN definitionsinclude/ include/ | +38 | 0 replies | |
| 17/18 | wifi: mac80211: export ieee80211_calculate_rx_timestampinclude/ net/ net/ +4 more | +25 | 0 replies | |
| 18/18 | wifi: mac80211_hwsim: implement NAN synchronizationdrivers/ drivers/ drivers/ +1 more | +743 | 0 replies |
Reviews trailers per patch
1 of 18 patches has a Reviewed-by or Acked-by.
| Patch | Ilan Peer | Johannes Berg | Miriam Rachel Korenblit |
|---|---|---|---|
| 1/18 | R-b | R-b | R-b |
| 2/18 | |||
| 3/18 | |||
| 4/18 | |||
| 5/18 | |||
| 6/18 | |||
| 7/18 | |||
| 8/18 | |||
| 9/18 | |||
| 10/18 | |||
| 11/18 | |||
| 12/18 | |||
| 13/18 | |||
| 14/18 | |||
| 15/18 | |||
| 16/18 | |||
| 17/18 | |||
| 18/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH wireless-next 00/18] NAN synchronization for mac80211_hwsim
From: Benjamin Berg <[email protected]>
Hi,
These patches add support for NAN synchronization to mac80211_hwsim. This is useful to better model the NAN synchronization behaviour and also permits testing more complicated setups where a wmediumd instance is used (possibly between multiple VMs).
Note that the current implementation is somewhat simplified and only synchronizes on 2.4 GHz (it does send beacons on 5 GHz). It'll also ignore beacons outside of the 2.4 GHz DW, which may lead to slow discovery of newly visible NAN clusters.
Apart from this, synchronization should work well. There is no data path at this point as the corresponding mac80211 API is not yet ready.
Benjamin
Benjamin Berg (18):
wifi: mac80211_hwsim: fix typo in frequency notification
wifi: mac80211_hwsim: disable BHs for hwsim_radio_lock
wifi: mac80211_hwsim: remove unused nan_vif struct member
wifi: mac80211_hwsim: move NAN related variables into a struct
wifi: mac80211_hwsim: split NAN handling into separate file
wifi: mac80211_hwsim: rename and switch simulation time to boottime
wifi: mac80211_hwsim: move timestamp writing later in the datapath
wifi: mac80211_hwsim: register beacon timer by calculating TBTT
wifi: mac80211_hwsim: refactor NAN timer handling
wifi: mac80211_hwsim: switch to use TXQs
wifi: mac80211: add a TXQ for management frames on NAN devices
wifi: mac80211_hwsim: limit TX of frames to the NAN DW
wifi: mac80211_hwsim: select NAN TX channel based on current TSF
wifi: mac80211_hwsim: only RX on NAN when active on a slot
wifi: mac80211_hwsim: protect tsf_offset using a spinlock
wifi: ieee80211: add more NAN definitions
wifi: mac80211: export ieee80211_calculate_rx_timestamp
wifi: mac80211_hwsim: implement NAN synchronization
drivers/net/wireless/virtual/Makefile | 2 +
.../net/wireless/virtual/mac80211_hwsim_i.h | 146 +++
...mac80211_hwsim.c => mac80211_hwsim_main.c} | 573 +++-------
.../net/wireless/virtual/mac80211_hwsim_nan.c | 1012 +++++++++++++++++
.../net/wireless/virtual/mac80211_hwsim_nan.h | 89 ++
include/linux/ieee80211-nan.h | 37 +
include/linux/ieee80211.h | 1 +
include/net/mac80211.h | 20 +
net/mac80211/ibss.c | 2 +-
net/mac80211/ieee80211_i.h | 4 -
net/mac80211/iface.c | 28 +-
net/mac80211/mesh_sync.c | 2 +-
net/mac80211/rx.c | 2 +-
net/mac80211/scan.c | 2 +-
net/mac80211/tx.c | 16 +-
net/mac80211/util.c | 51 +-
16 files changed, 1551 insertions(+), 436 deletions(-)
create mode 100644 drivers/net/wireless/virtual/mac80211_hwsim_i.h
rename drivers/net/wireless/virtual/{mac80211_hwsim.c => mac80211_hwsim_main.c} (94%)
create mode 100644 drivers/net/wireless/virtual/mac80211_hwsim_nan.c
create mode 100644 drivers/net/wireless/virtual/mac80211_hwsim_nan.hSignature · 1 line
2.51.1