include $(TOPDIR)/rules.mk PKG_NAME:=ffho-txpower-fix PKG_VERSION:=1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(GLUONDIR)/include/package.mk define Package/ffho-txpower-fix SECTION:=ffho CATEGORY:=Workarounds TITLE:=Fixes txpower on some wifi nodes under chaos calmer (gluon 2016.1.x) DEPENDS:=+gluon-core MAINTAINER:=Freifunk Hochstift URL:=https://git.c3pb.de/freifunk-pb/ffho-packages endef define Package/ffho-txpower-fix/description With chaoscalmer, wifi nodes seemed to be locked to less txpower than they could do. First suggestions are, that this is a mistake in the upstream OpenWrt-Code. Even the bugtrackers of OpenWrt are full of this. The idea of this workaround is, to check if the txpower could be increased if it isn't already set to a special value. Unfortunately this can only be done by setting the country code to 00. endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) endef define Build/Configure endef define Build/Compile $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/) endef define Package/ffho-txpower-fix/install $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/ endef $(eval $(call BuildPackage,ffho-txpower-fix))