]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh: only get tsf if we need it
authorBob Copeland <me@bobcopeland.com>
Mon, 18 Nov 2013 22:25:28 +0000 (17:25 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Dec 2013 10:51:52 +0000 (11:51 +0100)
commitd28c1cd6e5caf6244d54fcfb1bf973b97e869f43
tree89eba07c3a846aa8d3453811a6761c468903b8fc
parent61d655a2c445b288674261bf1d877400261d4a2a
mac80211: mesh: only get tsf if we need it

The local TSF timer is used to compute the timing offset between
mesh peers on beacon reception.  However, asking the device for
the TSF is not very accurate, so we prefer to use rx->mactime
if available.  In the latter case, calling drv_get_tsf() just
adds more delay into the RX path, so skip it if we can.

Signed-off-by: Bob Copeland <bob@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_sync.c