[][MAC80211][mt76][Makefile Hack]
[Description]
Add mt7916 firmware install
Fix wpa_cli package install fail
[Release-log]
N/A
Change-Id: I782de62d3be23a61d3e99de9ae55ecebccd257d7
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/5464417
diff --git a/openwrt_patches-21.02/400-mt76-add-makefile.patch b/openwrt_patches-21.02/400-mt76-add-makefile.patch
index dd6c79b..fc6b447 100644
--- a/openwrt_patches-21.02/400-mt76-add-makefile.patch
+++ b/openwrt_patches-21.02/400-mt76-add-makefile.patch
@@ -1,6 +1,6 @@
--- a/package/kernel/mt76/Makefile
+++ b/package/kernel/mt76/Makefile
-@@ -249,6 +249,11 @@ ifdef CONFIG_PACKAGE_MAC80211_MESH
+@@ -272,6 +272,11 @@ ifdef CONFIG_PACKAGE_MAC80211_MESH
NOSTDINC_FLAGS += -DCONFIG_MAC80211_MESH
endif
@@ -12,6 +12,18 @@
ifdef CONFIG_PACKAGE_CFG80211_TESTMODE
NOSTDINC_FLAGS += -DCONFIG_NL80211_TESTMODE
PKG_MAKE_FLAGS += CONFIG_NL80211_TESTMODE=y
+@@ -435,6 +440,12 @@ define KernelPackage/mt7915e/install
+ $(PKG_BUILD_DIR)/firmware/mt7915_wa.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7915_wm.bin \
+ $(PKG_BUILD_DIR)/firmware/mt7915_rom_patch.bin \
++ $(PKG_BUILD_DIR)/firmware/mt7916_wa.bin \
++ $(PKG_BUILD_DIR)/firmware/mt7916_wm.bin \
++ $(PKG_BUILD_DIR)/firmware/mt7916_rom_patch.bin \
++ $(1)/lib/firmware/mediatek
++ cp \
++ $(PKG_BUILD_DIR)/firmware/mt7916_eeprom.bin \
+ $(1)/lib/firmware/mediatek
+ endef
--
2.29.2
diff --git a/openwrt_patches-21.02/412-master-hostapd-fix-package-install-fail.patch b/openwrt_patches-21.02/412-master-hostapd-fix-package-install-fail.patch
new file mode 100644
index 0000000..70bb5c7
--- /dev/null
+++ b/openwrt_patches-21.02/412-master-hostapd-fix-package-install-fail.patch
@@ -0,0 +1,21 @@
+--- a/package/network/services/hostapd/Makefile
++++ b/package/network/services/hostapd/Makefile
+@@ -429,7 +429,6 @@ define Package/hostapd-utils
+ TITLE:=IEEE 802.1x Authenticator (utils)
+ URL:=http://hostap.epitest.fi/
+ DEPENDS:=@$(subst $(space),||,$(foreach pkg,$(HOSTAPD_PROVIDERS),PACKAGE_$(pkg)))
+- VARIANT:=*
+ endef
+
+ define Package/hostapd-utils/description
+@@ -443,7 +442,6 @@ define Package/wpa-cli
+ SUBMENU:=WirelessAPD
+ DEPENDS:=@$(subst $(space),||,$(foreach pkg,$(SUPPLICANT_PROVIDERS),PACKAGE_$(pkg)))
+ TITLE:=WPA Supplicant command line control utility
+- VARIANT:=*
+ endef
+
+ define Package/eapol-test/Default
+--
+2.29.2
+