From a64b8f0aaf8c9e5697b5d73710b31205547bba00 Mon Sep 17 00:00:00 2001 From: Benjamin Carlson Date: Wed, 23 Oct 2024 11:19:46 -0700 Subject: [PATCH] Updated NL80211_ATTR_STA_{AID,LISTEN_INTERVAL,CAPABILITY} from `hex` type to the correct `uint16` type. --- pyroute2/netlink/nl80211/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyroute2/netlink/nl80211/__init__.py b/pyroute2/netlink/nl80211/__init__.py index 71d3af188..c466fe670 100644 --- a/pyroute2/netlink/nl80211/__init__.py +++ b/pyroute2/netlink/nl80211/__init__.py @@ -267,9 +267,9 @@ class nl80211cmd(genlmsg): ('NL80211_ATTR_DTIM_PERIOD', 'hex'), ('NL80211_ATTR_BEACON_HEAD', 'hex'), ('NL80211_ATTR_BEACON_TAIL', 'hex'), - ('NL80211_ATTR_STA_AID', 'hex'), + ('NL80211_ATTR_STA_AID', 'uint16'), ('NL80211_ATTR_STA_FLAGS', 'hex'), - ('NL80211_ATTR_STA_LISTEN_INTERVAL', 'hex'), + ('NL80211_ATTR_STA_LISTEN_INTERVAL', 'uint16'), ('NL80211_ATTR_STA_SUPPORTED_RATES', 'hex'), ('NL80211_ATTR_STA_VLAN', 'hex'), ('NL80211_ATTR_STA_INFO', 'STAInfo'), @@ -422,7 +422,7 @@ class nl80211cmd(genlmsg): ('NL80211_ATTR_RADAR_EVENT', 'hex'), ('NL80211_ATTR_EXT_CAPA', 'array(uint8)'), ('NL80211_ATTR_EXT_CAPA_MASK', 'array(uint8)'), - ('NL80211_ATTR_STA_CAPABILITY', 'hex'), + ('NL80211_ATTR_STA_CAPABILITY', 'uint16'), ('NL80211_ATTR_STA_EXT_CAPABILITY', 'hex'), ('NL80211_ATTR_PROTOCOL_FEATURES', 'hex'), ('NL80211_ATTR_SPLIT_WIPHY_DUMP', 'hex'),