b43legacy: include full 64-bit timestamp in monitor mode
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>
This commit is contained in:
committed by
David S. Miller
parent
125c5cc2c8
commit
5be3bda898
@@ -599,6 +599,8 @@ struct b43legacy_wl {
|
|||||||
/* List of all wireless devices on this chip */
|
/* List of all wireless devices on this chip */
|
||||||
struct list_head devlist;
|
struct list_head devlist;
|
||||||
u8 nr_devs;
|
u8 nr_devs;
|
||||||
|
|
||||||
|
bool radiotap_enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Pointers to the firmware data and meta information about it. */
|
/* Pointers to the firmware data and meta information about it. */
|
||||||
|
@@ -2553,6 +2553,8 @@ static int b43legacy_op_dev_config(struct ieee80211_hw *hw,
|
|||||||
b43legacy_short_slot_timing_disable(dev);
|
b43legacy_short_slot_timing_disable(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dev->wl->radiotap_enabled = !!(conf->flags & IEEE80211_CONF_RADIOTAP);
|
||||||
|
|
||||||
/* Adjust the desired TX power level. */
|
/* Adjust the desired TX power level. */
|
||||||
if (conf->power_level != 0) {
|
if (conf->power_level != 0) {
|
||||||
if (conf->power_level != phy->power_level) {
|
if (conf->power_level != phy->power_level) {
|
||||||
|
Reference in New Issue
Block a user