include $(TOPDIR)/rules.mk
PKG_NAME:=ucode
-PKG_RELEASE:=3
+PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=https://github.com/jow-/ucode.git
-PKG_SOURCE_DATE:=2024-07-22
-PKG_SOURCE_VERSION:=b610860dd4a0591ff586dd71a50f556a0ddafced
-PKG_MIRROR_HASH:=a5ec51dd989174422d3b19b022ff4f863d57eb559c9f08d54c0d10651f598357
+PKG_SOURCE_DATE:=2024-12-02
+PKG_SOURCE_VERSION:=b0b5d93846a1fb9d1d94992d5fdf508ef345e87d
+PKG_MIRROR_HASH:=b43fcb38a85469552d5fb641ade271c346634a52c3628155d3215953ff2c25e1
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
PKG_LICENSE:=ISC
PKG_ABI_VERSION:=20230711
+PKG_BUILD_DEPENDS:=libmd
HOST_BUILD_DEPENDS:=libjson-c/host
include $(INCLUDE_DIR)/package.mk
-DUCI_SUPPORT=OFF \
-DULOOP_SUPPORT=OFF \
-DDEBUG_SUPPORT=ON \
- -DLOG_SUPPORT=OFF
+ -DLOG_SUPPORT=OFF \
+ -DDIGEST_SUPPORT=OFF
define Package/ucode/default
uloop, ULOOP_SUPPORT, +libubox, \
The uloop module allows ucode scripts to interact with OpenWrt uloop event loop implementation.))
+$(eval $(call UcodeModule, \
+ digest, DIGEST_SUPPORT, , \
+ The digest module allows ucode scripts to use libmd digests.))
+
$(eval $(call BuildPackage,libucode))
$(eval $(call BuildPackage,ucode))
+++ /dev/null
---- a/include/linux/nl80211.h
-+++ b/include/linux/nl80211.h
-@@ -2868,6 +2868,9 @@ enum nl80211_commands {
- * nested item, it contains attributes defined in
- * &enum nl80211_if_combination_attrs.
- *
-+ * @NL80211_ATTR_VIF_RADIO_MASK: Bitmask of allowed radios (u32).
-+ * A value of 0 means all radios.
-+ *
- * @NUM_NL80211_ATTR: total number of nl80211_attrs available
- * @NL80211_ATTR_MAX: highest attribute number currently defined
- * @__NL80211_ATTR_AFTER_LAST: internal use
-@@ -3416,6 +3419,8 @@ enum nl80211_attrs {
- NL80211_ATTR_WIPHY_RADIOS,
- NL80211_ATTR_WIPHY_INTERFACE_COMBINATIONS,
-
-+ NL80211_ATTR_VIF_RADIO_MASK,
-+
- /* add attributes here, update the policy in nl80211.c */
-
- __NL80211_ATTR_AFTER_LAST,
---- a/lib/nl80211.c
-+++ b/lib/nl80211.c
-@@ -829,7 +829,7 @@ static const uc_nl_nested_spec_t nl80211
-
- static const uc_nl_nested_spec_t nl80211_msg = {
- .headsize = 0,
-- .nattrs = 128,
-+ .nattrs = 129,
- .attrs = {
- { NL80211_ATTR_4ADDR, "4addr", DT_U8, 0, NULL },
- { NL80211_ATTR_AIRTIME_WEIGHT, "airtime_weight", DT_U16, 0, NULL },
-@@ -959,6 +959,7 @@ static const uc_nl_nested_spec_t nl80211
- { NL80211_ATTR_MAX_AP_ASSOC_STA, "max_ap_assoc", DT_U16, 0, NULL },
- { NL80211_ATTR_SURVEY_INFO, "survey_info", DT_NESTED, 0, &nl80211_survey_info_nla },
- { NL80211_ATTR_WIPHY_RADIOS, "radios", DT_NESTED, DF_MULTIPLE|DF_AUTOIDX, &nl80211_wiphy_radio_nla },
-+ { NL80211_ATTR_VIF_RADIO_MASK, "vif_radio_mask", DT_U32, 0, NULL },
- }
- };
-