From 6cda3db003b23355a35d4e53364b487330b97976 Mon Sep 17 00:00:00 2001 From: Sultan Qasim Khan Date: Sun, 1 Sep 2024 14:27:58 -0400 Subject: [PATCH] sniffle_hw: return generated random MAC address --- python_cli/sniffle/sniffle_hw.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_cli/sniffle/sniffle_hw.py b/python_cli/sniffle/sniffle_hw.py index 448e578..102b669 100644 --- a/python_cli/sniffle/sniffle_hw.py +++ b/python_cli/sniffle/sniffle_hw.py @@ -439,7 +439,9 @@ def probe_fw_version(self): def random_addr(self): addr = [randrange(0x100) for i in range(6)] addr[5] |= 0xC0 # make it static - self.cmd_setaddr(bytes(addr)) + addr = bytes(addr) + self.cmd_setaddr(addr) + return addr def setup_sniffer(self, mode=SnifferMode.CONN_FOLLOW,