diff --git a/spinel/codec.py b/spinel/codec.py index 885de74..41f2736 100644 --- a/spinel/codec.py +++ b/spinel/codec.py @@ -21,6 +21,7 @@ import binascii import time import logging +import struct import threading import traceback import queue @@ -502,7 +503,13 @@ def MAC_RAW_STREAM_ENABLED(self, _, payload): return self.parse_b(payload) def MAC_ALLOWLIST(self, _, payload): - pass + formats = ["A(t(EC))", "EC", "E"] + for format in formats: + try: + return self.parse_fields(payload, format) + except struct.error: + pass + return None def MAC_ALLOWLIST_ENABLED(self, _, payload): return self.parse_b(payload)