Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-txpower-fix
  3. PKG_VERSION:=1
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. include $(GLUONDIR)/include/package.mk
  6. define Package/ffho-txpower-fix
  7. SECTION:=admin
  8. CATEGORY:=Workaround
  9. DEPENDS:=+wireless-tools
  10. TITLE:=Fixes txpower on some wifi nodes under chaos calmer (gluon 2015.2)
  11. endef
  12. define Package/ffho-txpower-fix/description
  13. With chaoscalmer, wifi nodes seemed to be locked to less txpower than they could do.
  14. First suggestions are, that this is a mistake in the upstream OpenWrt-Code. Even the
  15. bugtrackers of OpenWrt are full of this.
  16. The idea of this workaround is, to check if the txpower could be increased iff it isn't
  17. already set to a special value. Unfortunately this can only be done by setting the
  18. country code to 00.
  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-txpower-fix/install
  28. $(CP) ./files/* $(1)/
  29. endef
  30. $(eval $(call BuildPackage,ffho-txpower-fix))