Skip to content

Commit

Permalink
sniffle_hw: return generated random MAC address
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanqasim committed Sep 1, 2024
1 parent 6beee94 commit 6cda3db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python_cli/sniffle/sniffle_hw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6cda3db

Please sign in to comment.