]> err.no Git - linux-2.6/commitdiff
b43: include full 64-bit timestamp in monitor mode
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 23 Nov 2007 13:50:51 +0000 (14:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:04:59 +0000 (15:04 -0800)
When monitor mode is enabled, this will make b43 read out the
full 64-bit MAC time from the chip for each received packet.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/b43.h
drivers/net/wireless/b43/main.c

index e892ec6f63729f46330acc7196421c3294b83a25..97ea96320c7e4ac48a86ef12fb982c5e5ec50ae6 100644 (file)
@@ -638,6 +638,8 @@ struct b43_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 16b413d11d19b66c2fcf744af016af72f975ac5c..58847222cf0b0a6ec9a6b4e322f2e0c32de769d7 100644 (file)
@@ -2760,6 +2760,8 @@ static int b43_op_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf)
                        b43_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) {