[PATCH 1/5] Add hardware TSF into rx_status, required for IBSS merging.
Max Filippov
jcmvbkbc at gmail.com
Fri Jan 9 17:14:27 EET 2009
Add hardware TSF into rx_status, required for IBSS merging.
Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
---
stlc45xx.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/stlc45xx.c b/stlc45xx.c
index 48da0de..cf33031 100644
--- a/stlc45xx.c
+++ b/stlc45xx.c
@@ -1389,6 +1389,14 @@ static int stlc45xx_rx_data(struct stlc45xx *stlc, struct sk_buff *skb)
memset(&status, 0, sizeof(status));
+ /*
+ * FIXME: mactime wants TSF at the beginning of frame,
+ * clock is TSF at the end of frame
+ */
+ stlc45xx_debug(DEBUG_FUNC, "data->clock: %08x:%08x",
+ data->clock[1], data->clock[0]);
+ memcpy(&status.mactime, data->clock, sizeof(status.mactime));
+ status.flag |= RX_FLAG_TSFT;
status.freq = data->frequency;
status.signal = data->rcpi / 2 - 110;
--
1.5.4.3
More information about the stlc45xx-devel
mailing list