From 3f90ce6642a9ffa57f43ac3b476932ed6c1d4102 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sun, 21 Jul 2019 19:51:08 +0200 Subject: [PATCH] macsniff.cpp: bugfix --- src/macsniff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macsniff.cpp b/src/macsniff.cpp index 7edab1d8..0b00e7c1 100644 --- a/src/macsniff.cpp +++ b/src/macsniff.cpp @@ -39,7 +39,7 @@ void printKey(const char *name, const uint8_t *key, uint8_t len, bool lsb) { uint64_t macConvert(uint8_t *paddr) { uint64_t *mac; mac = (uint64_t *)paddr; - return (__builtin_bswap32(*mac) >> 8); + return (__builtin_bswap64(*mac) >> 8); } bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) {