aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2008-01-21 13:41:18 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:45 -0500
commitc0ddd04d55e0a4d1506b6b8a4eb9e2b62f3aa41d (patch)
treec2ef87cc24fd7063c70d1979e127774e49e3ee56 /drivers/net
parent1e637c74b0f84eaca02b914c0b8c6f67276e9697 (diff)
wireless: cleanup some merge errors
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/b43/xmit.c20
-rw-r--r--drivers/net/wireless/b43legacy/xmit.c20
2 files changed, 36 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index a455a6beac4a..e60e54d59ab1 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -525,8 +525,24 @@ void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr)
525 else 525 else
526 status.rate = b43_plcp_get_bitrate_cck(plcp); 526 status.rate = b43_plcp_get_bitrate_cck(plcp);
527 status.antenna = !!(phystat0 & B43_RX_PHYST0_ANT); 527 status.antenna = !!(phystat0 & B43_RX_PHYST0_ANT);
528 status.mactime = mactime; 528
529 status.flag |= RX_FLAG_TSFT; 529 /*
530 * If monitors are present get full 64-bit timestamp. This
531 * code assumes we get to process the packet within 16 bits
532 * of timestamp, i.e. about 65 milliseconds after the PHY
533 * received the first symbol.
534 */
535 if (dev->wl->radiotap_enabled) {
536 u16 low_mactime_now;
537
538 b43_tsf_read(dev, &status.mactime);
539 low_mactime_now = status.mactime;
540 status.mactime = status.mactime & ~0xFFFFULL;
541 status.mactime += mactime;
542 if (low_mactime_now <= mactime)
543 status.mactime -= 0x10000;
544 status.flag |= RX_FLAG_TSFT;
545 }
530 546
531 chanid = (chanstat & B43_RX_CHAN_ID) >> B43_RX_CHAN_ID_SHIFT; 547 chanid = (chanstat & B43_RX_CHAN_ID) >> B43_RX_CHAN_ID_SHIFT;
532 switch (chanstat & B43_RX_CHAN_PHYTYPE) { 548 switch (chanstat & B43_RX_CHAN_PHYTYPE) {
diff --git a/drivers/net/wireless/b43legacy/xmit.c b/drivers/net/wireless/b43legacy/xmit.c
index c24399dc0ede..fa095d43237f 100644
--- a/drivers/net/wireless/b43legacy/xmit.c
+++ b/drivers/net/wireless/b43legacy/xmit.c
@@ -532,8 +532,24 @@ void b43legacy_rx(struct b43legacy_wldev *dev,
532 else 532 else
533 status.rate = b43legacy_plcp_get_bitrate_cck(plcp); 533 status.rate = b43legacy_plcp_get_bitrate_cck(plcp);
534 status.antenna = !!(phystat0 & B43legacy_RX_PHYST0_ANT); 534 status.antenna = !!(phystat0 & B43legacy_RX_PHYST0_ANT);
535 status.mactime = mactime; 535
536 status.flag |= RX_FLAG_TSFT; 536 /*
537 * If monitors are present get full 64-bit timestamp. This
538 * code assumes we get to process the packet within 16 bits
539 * of timestamp, i.e. about 65 milliseconds after the PHY
540 * received the first symbol.
541 */
542 if (dev->wl->radiotap_enabled) {
543 u16 low_mactime_now;
544
545 b43legacy_tsf_read(dev, &status.mactime);
546 low_mactime_now = status.mactime;
547 status.mactime = status.mactime & ~0xFFFFULL;
548 status.mactime += mactime;
549 if (low_mactime_now <= mactime)
550 status.mactime -= 0x10000;
551 status.flag |= RX_FLAG_TSFT;
552 }
537 553
538 chanid = (chanstat & B43legacy_RX_CHAN_ID) >> 554 chanid = (chanstat & B43legacy_RX_CHAN_ID) >>
539 B43legacy_RX_CHAN_ID_SHIFT; 555 B43legacy_RX_CHAN_ID_SHIFT;