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)
commitce95320443c72ba43f8f9c6ceb276673cc30e2ce
tree89eba07c3a846aa8d3453811a6761c468903b8fc
parentb176e629402f41f2b984d3aa842ddae23ed5562e
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