In a wireless local area network media access controller (MAC) disposed in
a first node of a wireless local area network, a method is performed to
synchronize the clock of the first node with the clock of a second node
in the wireless local area network. When a request signal is asserted
from the first node to the second node, a responsive signal packet
containing a time stamp is asserted from the second node to the first
node in response to the request signal. Then, the MAC tags a local time
value to the responsive signal packet at the first node, and operates the
time stamp and the local time value according to a control program to
obtain a difference T, which is stored in a register of the MAC.
Afterwards, at least one of the clocks of the first and the second nodes
is adjusted to synchronize the clocks of the first and the second nodes
according to the difference T.