Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-wifi-mesh-macfilter
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/ffho-wifi-mesh-macfilter
  8. SECTION:=ffho
  9. CATEGORY:=workarounds
  10. TITLE:=WiFi - block/open 802.11s-mesh stations
  11. DEPENDS:=+iw +uci
  12. endef
  13. define Package/ffho-wifi-mesh-macfilter/description
  14. Setting plink_action [block|open], when 802.11s mesh-interface comes up.
  15. Define filterpolicy in uci wireless.<wifi-iface>.macfilter=[disable|deny|allow].
  16. Deny sets iw dev <device> station set <mac> plink_action block, and
  17. allow sets iw dev <device> mesh_param mesh_auto_open_plink=0 and iw dev <device> station set <mac> plink_action open.
  18. List MAC adresses (divided by spaces) in uci wireless.<wifi-iface>.maclist.
  19. endef
  20. define Build/Prepare
  21. mkdir -p $(PKG_BUILD_DIR)
  22. endef
  23. define Build/Configure
  24. endef
  25. define Build/Compile
  26. endef
  27. define Package/ffho-wifi-mesh-macfilter/install
  28. $(CP) ./files/* $(1)/
  29. endef
  30. $(eval $(call BuildPackage,ffho-wifi-mesh-macfilter))