summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--lib/nl80211.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/README.md b/README.md
index 455bc86..d0d21ca 100644
--- a/README.md
+++ b/README.md
@@ -87,7 +87,7 @@ packages for local installation, first install required development packages,
then clone the repository and invoke *dpkg-buildpackage* to produce the binary
package files:
- $ sudo apt-get install build-essential devscripts debhelper libjson-c-dev cmake
+ $ sudo apt-get install build-essential devscripts debhelper libjson-c-dev cmake pkg-config
$ git clone https://github.com/jow-/ucode.git
$ cd ucode/
$ dpkg-buildpackage -b -us -uc
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);
};