mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
wifi-profile: split wifi-profile to wifi-dats
mt_wifi: set wifi-dats to dependency
This commit is contained in:
parent
deb0d4c7b5
commit
536495b8c7
@ -284,7 +284,7 @@ TAR_CMD=$(HOST_TAR) -C $(1)/ $(TAR_OPTIONS)
|
|||||||
define KernelPackage/mt_wifi
|
define KernelPackage/mt_wifi
|
||||||
CATEGORY:=MTK Properties
|
CATEGORY:=MTK Properties
|
||||||
TITLE:=MTK wifi AP driver
|
TITLE:=MTK wifi AP driver
|
||||||
DEPENDS:=+wifi-profile
|
DEPENDS:=+wifi-dats
|
||||||
DEPENDS+=+kmod-conninfra
|
DEPENDS+=+kmod-conninfra
|
||||||
DEPENDS+=+kmod-mediatek_hnat
|
DEPENDS+=+kmod-mediatek_hnat
|
||||||
FILES:=$(PKG_BUILD_DIR)/mt_wifi_ap/mt_wifi.ko \
|
FILES:=$(PKG_BUILD_DIR)/mt_wifi_ap/mt_wifi.ko \
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
menuconfig first_card
|
|
||||||
bool "1st card"
|
|
||||||
default y
|
|
||||||
|
|
||||||
if first_card
|
|
||||||
|
|
||||||
config first_card_name
|
|
||||||
string "1st card name"
|
|
||||||
default "MT7622"
|
|
||||||
endif
|
|
||||||
|
|
||||||
menuconfig second_card
|
|
||||||
bool "2nd card"
|
|
||||||
default n
|
|
||||||
|
|
||||||
if second_card
|
|
||||||
|
|
||||||
config second_card_name
|
|
||||||
string "2nd card name"
|
|
||||||
default "MT7615"
|
|
||||||
endif
|
|
||||||
|
|
||||||
menuconfig third_card
|
|
||||||
bool "3rd card"
|
|
||||||
default n
|
|
||||||
|
|
||||||
if third_card
|
|
||||||
|
|
||||||
config third_card_name
|
|
||||||
string "3rd card name"
|
|
||||||
default "MT7615"
|
|
||||||
endif
|
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "WiFi Setting"
|
|
||||||
default WIFI_NORMAL_SETTING
|
|
||||||
config WIFI_NORMAL_SETTING
|
|
||||||
bool "normal setting"
|
|
||||||
|
|
||||||
config WIFI_QUICK_SETTING
|
|
||||||
bool "quick setting"
|
|
||||||
|
|
||||||
help
|
|
||||||
This is a way to configure wifi after wifi reload(Save & Apply from UI).
|
|
||||||
Normal setting means reloading dat file which will execute "wifi down; wifi up"
|
|
||||||
Quick setting means executing iwpriv commands corresponding to your operation on UI.
|
|
||||||
endchoice
|
|
@ -31,41 +31,103 @@ define Package/wifi-profile
|
|||||||
SECTION:=MTK Properties
|
SECTION:=MTK Properties
|
||||||
CATEGORY:=MTK Properties
|
CATEGORY:=MTK Properties
|
||||||
SUBMENU:=Drivers
|
SUBMENU:=Drivers
|
||||||
DEPENDS:=
|
DEPENDS:=+wifi-dats
|
||||||
TITLE:=WiFi l1 & l2 profile
|
TITLE:=MTK WiFi setup scripts
|
||||||
VERSION:=$(PKG_RELEASE)
|
VERSION:=$(PKG_RELEASE)
|
||||||
MENU:=1
|
MENU:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/wifi-profile/description
|
define Package/wifi-profile/description
|
||||||
This package install wifi l1 and l2 profile.
|
This package install wifi setup scripts.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/wifi-profile/config
|
define Package/wifi-profile/config
|
||||||
if PACKAGE_wifi-profile
|
if PACKAGE_wifi-profile
|
||||||
source "$(SOURCE)/Config.in"
|
choice
|
||||||
|
prompt "WiFi Setting"
|
||||||
|
default WIFI_NORMAL_SETTING
|
||||||
|
config WIFI_NORMAL_SETTING
|
||||||
|
bool "normal setting"
|
||||||
|
|
||||||
|
config WIFI_QUICK_SETTING
|
||||||
|
bool "quick setting"
|
||||||
|
|
||||||
|
help
|
||||||
|
This is a way to configure wifi after wifi reload(Save & Apply from UI).
|
||||||
|
Normal setting means reloading dat file which will execute "wifi down; wifi up"
|
||||||
|
Quick setting means executing iwpriv commands corresponding to your operation on UI.
|
||||||
|
endchoice
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/wifi-dats
|
||||||
|
SECTION:=MTK Properties
|
||||||
|
CATEGORY:=MTK Properties
|
||||||
|
SUBMENU:=Drivers
|
||||||
|
TITLE:=MTK WiFi l1 & l2 dat files
|
||||||
|
VERSION:=$(PKG_RELEASE)
|
||||||
|
MENU:=1
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/wifi-dats/description
|
||||||
|
This package install wifi l1 and l2 dat files.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/wifi-dats/config
|
||||||
|
if PACKAGE_wifi-dats
|
||||||
|
menuconfig first_card
|
||||||
|
bool "1st card"
|
||||||
|
default y
|
||||||
|
|
||||||
|
if first_card
|
||||||
|
config first_card_name
|
||||||
|
string "1st card name"
|
||||||
|
default "MT7981"
|
||||||
|
endif
|
||||||
|
|
||||||
|
menuconfig second_card
|
||||||
|
bool "2nd card"
|
||||||
|
default n
|
||||||
|
|
||||||
|
if second_card
|
||||||
|
config second_card_name
|
||||||
|
string "2nd card name"
|
||||||
|
default "MT7981"
|
||||||
|
endif
|
||||||
|
|
||||||
|
menuconfig third_card
|
||||||
|
bool "3rd card"
|
||||||
|
default n
|
||||||
|
|
||||||
|
if third_card
|
||||||
|
config third_card_name
|
||||||
|
string "3rd card name"
|
||||||
|
default "MT7981"
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/wifi-dats/conffiles
|
||||||
|
/etc/wireless/
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/wifi-profile/conffiles
|
|
||||||
/etc/wireless/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/wifi-profile/install
|
define Package/wifi-profile/install
|
||||||
$(INSTALL_DIR) $(1)/etc/wireless/
|
|
||||||
$(INSTALL_DIR) $(1)/lib/wifi/
|
$(INSTALL_DIR) $(1)/lib/wifi/
|
||||||
$(INSTALL_DIR) $(1)/etc/wireless/mediatek/
|
|
||||||
$(INSTALL_DIR) $(1)/sbin/
|
$(INSTALL_DIR) $(1)/sbin/
|
||||||
|
|
||||||
$(INSTALL_BIN) ./files/common/wifi_jedi $(1)/sbin/wifi
|
$(INSTALL_BIN) ./files/common/wifi_jedi $(1)/sbin/wifi
|
||||||
$(INSTALL_BIN) ./files/common/mtwifi.lua $(1)/lib/wifi/
|
$(INSTALL_BIN) ./files/common/mtwifi.lua $(1)/lib/wifi/
|
||||||
|
|
||||||
if [ "$$(CONFIG_WIFI_QUICK_SETTING)" = "y" ] ; then \
|
if [ "$$(CONFIG_WIFI_QUICK_SETTING)" = "y" ] ; then \
|
||||||
$(INSTALL_BIN) ./files/common/quick_setting.lua $(1)/lib/wifi/; \
|
$(INSTALL_BIN) ./files/common/quick_setting.lua $(1)/lib/wifi/; \
|
||||||
fi
|
fi
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/wifi-dats/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc/wireless/mediatek/
|
||||||
if [ "$$(CONFIG_first_card_name)" = "MT7986" -o "$$(CONFIG_second_card_name)" = "MT7986" ] ; then \
|
if [ "$$(CONFIG_first_card_name)" = "MT7986" -o "$$(CONFIG_second_card_name)" = "MT7986" ] ; then \
|
||||||
if [ "$$(CONFIG_MTK_WIFI_SKU_TYPE)" = "AX4200" ] ; then \
|
if [ "$$(CONFIG_MTK_WIFI_SKU_TYPE)" = "AX4200" ] ; then \
|
||||||
$(INSTALL_DATA) ./files/mt7986-ax4200/* $(1)/etc/wireless/mediatek/; \
|
$(INSTALL_DATA) ./files/mt7986-ax4200/* $(1)/etc/wireless/mediatek/; \
|
||||||
@ -83,4 +145,5 @@ define Package/wifi-profile/install
|
|||||||
fi
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,wifi-dats))
|
||||||
$(eval $(call BuildPackage,wifi-profile))
|
$(eval $(call BuildPackage,wifi-profile))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user