]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/mac80211/sta_info.h
mac80211: Implement mesh synchronization framework
authorJavier Cardona <javier@cozybit.com>
Sat, 31 Mar 2012 18:31:32 +0000 (11:31 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 19:20:31 +0000 (15:20 -0400)
commitdbf498fbafa2c23139d5a990e94ed78bafbbea19
tree723a2ed4575ab2178cbd210d85a19d5c968a95a1
parent9bdd3a6bf8513a0a9eda031d15b36e4677854243
mac80211: Implement mesh synchronization framework

This patch adds MBSS extensible synchronization framework (Sec.
13.13.2 of IEEE Std. 802.11-2012).

The framework is implemented via an ops table which defines the
following functions:

    rx_bcn_presp() - this is called every time a mesh beacon is
received.
    adjust_tbtt() - this is called immediately before a beacon is about
to be transmitted.

The default neighbor offset synchronization defined in the standard is
implemented.  We also provide template functions for vendor specific
methods.

When neighbor offset synchronization is active (which is the default)
mesh neighbors in the same MBSS will track timing offsets to each other
and compensate clock drift.

In our tests we observed that this mesh synchronization implementation
successfully corrected drifts between stations of ~2PPM while
introducing a jitter of ~20us.

It is also possible to test this framework on mac80211_hwsim simulated
phys to see how it behaves under different topologies, over poor links,
etc.

Signed-off-by: Marco Porsch <marco.porsch@s2005.tu-chemnitz.de>
Signed-off-by: Pavel Zubarev <pavel.zubarev@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/ieee80211.h
net/mac80211/Kconfig
net/mac80211/Makefile
net/mac80211/debugfs_sta.c
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_sync.c [new file with mode: 0644]
net/mac80211/sta_info.h
net/mac80211/tx.c