Skip to content

Commit

Permalink
Fix child register_variant swallowing call to parent register_variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoolean committed Feb 7, 2025
1 parent d288a29 commit 05b4154
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scapy/layers/dot11.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 05b4154

Please sign in to comment.