diff --git a/scapy/layers/dot11.py b/scapy/layers/dot11.py index bb73b32dea2..d029f702b82 100644 --- a/scapy/layers/dot11.py +++ b/scapy/layers/dot11.py @@ -1451,6 +1451,10 @@ def dispatch_hook(cls, _pkt=None, *args, **kargs): @classmethod def register_variant(cls): # XXX: We do not accept id, but our super-class does oui = cls.oui.default + if not oui: + # This is us, register ourselves in the super-class. + # TODO: Is there a better way to check? + super().register_variant() if oui not in cls.registered_ouis: cls.registered_ouis[oui] = cls