Skip to content

Commit

Permalink
b43legacy: include full 64-bit timestamp in monitor mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and David S. Miller committed Jan 28, 2008
1 parent 125c5cc commit 5be3bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/b43legacy/b43legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/wireless/b43legacy/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5be3bda

Please sign in to comment.