[][MAC80211][app][Fix MT76 Makefile patch fail]
[Description]
Fix MT76 Makefile patch fail
[Release-log]
N/A
Change-Id: Iacec13f6834bf076b19f2f55a7518adbfae4b0c5
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6243280
diff --git a/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch b/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch
index f76ad60..ec673f0 100644
--- a/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch
+++ b/autobuild_mac80211_release/0003-master-mt76-makefile-for-new-chip.patch
@@ -9,10 +9,10 @@
Makefile | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 76 insertions(+), 1 deletion(-)
-diff --git a/Makefile b/Makefile
+diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
index 354449b..758546f 100644
---- a/Makefile
-+++ b/Makefile
+--- a/package/kernel/mt76/Makefile
++++ b/package/kernel/mt76/Makefile
@@ -220,12 +220,20 @@ endef
define KernelPackage/mt7915e
diff --git a/autobuild_mac80211_release/package/network/services/hostapd/patches/812-DFS-Rdd0-fail-to-rollback-non-DFS-channel-when-DFS-channels-under-NOP.patch b/autobuild_mac80211_release/package/network/services/hostapd/patches/812-DFS-Rdd0-fail-to-rollback-non-DFS-channel-when-DFS-channels-under-NOP.patch
deleted file mode 100644
index 68935df..0000000
--- a/autobuild_mac80211_release/package/network/services/hostapd/patches/812-DFS-Rdd0-fail-to-rollback-non-DFS-channel-when-DFS-channels-under-NOP.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff --git a/src/ap/dfs.c b/src/ap/dfs.c
-index 55b7188..6af0ef2 100644
---- a/src/ap/dfs.c
-+++ b/src/ap/dfs.c
-@@ -1048,7 +1048,7 @@ static int hostapd_dfs_request_channel_switch(struct hostapd_iface *iface,
- }
-
-
--static void hostpad_dfs_update_background_chain(struct hostapd_iface *iface)
-+static int hostpad_dfs_update_background_chain(struct hostapd_iface *iface)
- {
- int sec = 0;
- enum dfs_channel_type channel_type = DFS_NO_CAC_YET;
-@@ -1084,7 +1084,7 @@ static void hostpad_dfs_update_background_chain(struct hostapd_iface *iface)
- oper_centr_freq_seg1_idx, true)) {
- wpa_printf(MSG_ERROR, "DFS failed to start CAC offchannel");
- iface->radar_background.channel = -1;
-- return;
-+ return -1;
- }
-
- iface->radar_background.channel = channel->chan;
-@@ -1096,6 +1096,8 @@ static void hostpad_dfs_update_background_chain(struct hostapd_iface *iface)
- wpa_printf(MSG_ERROR,
- "%s: setting background chain to chan %d (%d MHz)",
- __func__, channel->chan, channel->freq);
-+
-+ return 0;
- }
-
-
-@@ -1320,8 +1322,7 @@ hostapd_dfs_background_start_channel_switch(struct hostapd_iface *iface,
- * Just select a new random channel according to the
- * regulations for monitoring.
- */
-- hostpad_dfs_update_background_chain(iface);
-- return 0;
-+ return hostpad_dfs_update_background_chain(iface);
- }
-
- /*
---
-2.29.2
-