]> 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)
commit0076d4b9f97891eb34e6986fd78e0b24276ec688
tree89eba07c3a846aa8d3453811a6761c468903b8fc
parent592dd74e17dbbe77870a67482a2a4249c7980e13
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