From 19b75b927625ae144c77a88a29b88685ff9be160 Mon Sep 17 00:00:00 2001 From: hanwckf Date: Fri, 20 Sep 2024 21:36:45 +0800 Subject: [PATCH] wifi-profile: close mt7986-2.4g for ax7800 project --- package/mtk/drivers/wifi-profile/files/common/mtwifi.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/mtk/drivers/wifi-profile/files/common/mtwifi.lua b/package/mtk/drivers/wifi-profile/files/common/mtwifi.lua index 93e1c24e1c..f68ffa26d0 100755 --- a/package/mtk/drivers/wifi-profile/files/common/mtwifi.lua +++ b/package/mtk/drivers/wifi-profile/files/common/mtwifi.lua @@ -222,6 +222,11 @@ function mtwifi_up(devname) mtwifi_iwpriv_hook(devname) os.execute(" rm -rf /tmp/mtk/wifi/mtwifi*.need_reload") + + -- for ax7800 project, close the ra0. + if string.find(dev.profile_path, "ax7800") then + os.execute("ifconfig ra0 down") + end end function mtwifi_down(devname)