diff options
author | Jo-Philipp Wich <jo@mein.io> | 2023-06-06 10:09:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 10:09:21 +0200 |
commit | 3ffb046c59a690eb102b23f4539afd956f7e72d7 (patch) | |
tree | 7f4421bc74693a6b185178a56ad596b2a2ae246b | |
parent | 7b7e22dcdf0214ff8689e00e86684a4fdbdb36e9 (diff) | |
parent | ed1f0133c8704485c324a8e1a3aa76cb2de0f45d (diff) |
Merge pull request #156 from nbd168/nl80211-iftypes
nl80211: add constants for iftypes
-rw-r--r-- | lib/nl80211.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/nl80211.c b/lib/nl80211.c index 90b50e6..c7bd5fa 100644 --- a/lib/nl80211.c +++ b/lib/nl80211.c @@ -2718,6 +2718,18 @@ register_constants(uc_vm_t *vm, uc_value_t *scope) ADD_CONST(NL80211_CMD_TDLS_CHANNEL_SWITCH); ADD_CONST(NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH); + ADD_CONST(NL80211_IFTYPE_ADHOC); + ADD_CONST(NL80211_IFTYPE_STATION); + ADD_CONST(NL80211_IFTYPE_AP); + ADD_CONST(NL80211_IFTYPE_AP_VLAN); + ADD_CONST(NL80211_IFTYPE_WDS); + ADD_CONST(NL80211_IFTYPE_MONITOR); + ADD_CONST(NL80211_IFTYPE_MESH_POINT); + ADD_CONST(NL80211_IFTYPE_P2P_CLIENT); + ADD_CONST(NL80211_IFTYPE_P2P_GO); + ADD_CONST(NL80211_IFTYPE_P2P_DEVICE); + ADD_CONST(NL80211_IFTYPE_OCB); + ucv_object_add(scope, "const", c); }; |