b43legacy: include full 64-bit timestamp in monitor mode
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 24 Nov 2007 20:11:09 +0000 (21:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:05:03 +0000 (15:05 -0800)
When monitor mode is enabled, this will make b43legacy read out
the full 64-bit MAC time from the chip for each received packet.

This patch has been ported from b43.

Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/b43legacy.h
drivers/net/wireless/b43legacy/main.c

index fe2af06f5599d2d62ac8c2d38904e918e8d633c6..d906f6eb202061a06a596fc6c2234681feae4220 100644 (file)
@@ -599,6 +599,8 @@ struct b43legacy_wl {
        /* List of all wireless devices on this chip */
        struct list_head devlist;
        u8 nr_devs;
+
+       bool radiotap_enabled;
 };
 
 /* Pointers to the firmware data and meta information about it. */
index 1a8b67619077e1c00b2eaf5baac7f1db8229ef4f..92c03b0336a4f0374bfe1635928faff3225ae9de 100644 (file)
@@ -2553,6 +2553,8 @@ static int b43legacy_op_dev_config(struct ieee80211_hw *hw,
                        b43legacy_short_slot_timing_disable(dev);
        }
 
+       dev->wl->radiotap_enabled = !!(conf->flags & IEEE80211_CONF_RADIOTAP);
+
        /* Adjust the desired TX power level. */
        if (conf->power_level != 0) {
                if (conf->power_level != phy->power_level) {