Closed IanR778 closed 9 years ago
See updated fix and documentation.
Third time's a charm... Bugfix + added more test cases. Tested both in non-associated monitor mode (local TSF is running in open-loop mode), and associated (STATION) monitor mode (local TSF is locked to BSS TSF).
Hi, it will be better if you takes time and don't immediately sends new patches. If you wrote it today, then take a look on them tomorrow, probably you will find some thing worth of fixing. If the patches can't be split, plese merge them and provide proper description. If you do some comment to the function, then don't use this comment as 1x1 patch description.
I'm back, after having tested the final patch for more than a week now. This patch eliminates the occasional wrong timestamp that was occurring around TSF rollover (every ~72 minutes == 2^32 microseconds). It was tested by comparing the offset between remote vs. local TSF values using wireshark fields on beacon packets: "wlan_mgt.fixed.timestamp" and "radiotap.mactime". This test was conducted in two different configurations, one with AR9271 card locked to AP, and another AR9271 card with free-running TSF in monitor mode.
If you don't mind, I prefer closing this pull request, and sending 2 small pull requests (one for each file) instead. Is that OK with you?
Hi IanR778, do you have some updates?
Ah, i see. You used code from ath9k driver.
Looks ok for me.