diff options
Diffstat (limited to 'package/ramips/drivers/mt7603e')
-rwxr-xr-x | package/ramips/drivers/mt7603e/Makefile | 82 | ||||
-rwxr-xr-x | package/ramips/drivers/mt7603e/config.in | 527 | ||||
-rwxr-xr-x | package/ramips/drivers/mt7603e/files/mt7603e.dat | 147 | ||||
-rwxr-xr-x | package/ramips/drivers/mt7603e/files/mt7603e.eeprom.bin | bin | 0 -> 512 bytes | |||
-rwxr-xr-x | package/ramips/drivers/mt7603e/files/mt7603e.sh | 49 | ||||
-rw-r--r-- | package/ramips/drivers/mt7603e/patches/001-fix-build.patch | 114 |
6 files changed, 919 insertions, 0 deletions
diff --git a/package/ramips/drivers/mt7603e/Makefile b/package/ramips/drivers/mt7603e/Makefile new file mode 100755 index 0000000..cd7c0f0 --- /dev/null +++ b/package/ramips/drivers/mt7603e/Makefile @@ -0,0 +1,82 @@ +# All rights reserved. +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk + +PKG_NAME:=mt7603e +P4REV:= +PKG_VERSION:=4.0.1.0 +PKG_SOURCE:=MT7603e_LinuxAP_V4.0.1.0rev1_DPA_20150629.tar.bz2 +PKG_SOURCE_URL:=http://localhost/ +PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_KCONFIG:= \ + RALINK_MT7620 RALINK_RT7621 RLT_WIFI MT_WIFI_PATH\ + FIRST_IF_EEPROM_PROM FIRST_IF_EEPROM_EFUSE FIRST_IF_EEPROM_FLASH RT_FIRST_CARD_EEPROM WIFI_BASIC_FUNC\ + MULTI_INF_SUPPORT WSC_INCLUDED WSC_V2_SUPPORT DOT11N_DRAFT3 DOT11_VHT_AC DOT11W_PMF_SUPPORT\ + TXBF_SUPPORT WMM_ACM_SUPPORT QOS_DLS_SUPPORT WAPI_SUPPORT CARRIER_DETECTION_SUPPORT\ + IGMP_SNOOP_SUPPORT BLOCK_NET_IF RATE_ADAPTION NEW_RATE_ADAPT_SUPPORT AGS_SUPPORT\ + IDS_SUPPORT WIFI_WORK_QUEUE WIFI_SKB_RECYCLE RTMP_FLASH_SUPPORT LED_CONTROL_SUPPORT\ + SINGLE_SKU_V2 HW_ANTENNA_DIVERSITY ATE_SUPPORT RT2860V2_AP_V24_DATA_STRUCTURE RT2860V2_AP_32B_DESC\ + MEMORY_OPTIMIZATION HOTSPOT HOTSPOT_R2 ACL_V2_SUPPORT UAPSD PA_LNA RLT_BBP RLT_RF RTMP_BBP RTMP_RF RLT_MAC RLT_BBP RLT_RF RTMP_MAC RTMP_BBP RTMP_RF \ + RTMP_PCI_SUPPORT RTMP_USB_SUPPORT RTMP_RBUS_SUPPORT RLT_AP_SUPPORT RALINK_MT7603E MT_MAC AP_SUPPORT\ + WDS_SUPPORT MBSS_SUPPORT NEW_MBSSID_MODE ENHANCE_NEW_MBSSID_MODE APCLI_SUPPORT MULTI_APCLI_SUPPORT \ + AIRPLAY_SUPPORT MAC_REPEATER_SUPPORT DFS_SUPPORT NINTENDO_AP DOT11K_RRM_SUPPORT RT2860V2_SNMP\ + LLTD_SUPPORT NINTENDO_AP COC_SUPPORT MULTI_CORE_SUPPORT MCAST_RATE_SPECIFIC PREVENT_ARP_SPOOFING_SUPPORT \ + EXT_BUILD_CHANNEL_LIST AUTO_CH_SELECT_ENHANCE MEMORY_OPTIMIZATION RTMP_TEMPERATURE_CALIBRATION\ + SNIFFER_SUPPORT CFG80211_SUPPORT SNIFFER_MIB_CMD ALL_NET_EVENT + + +PKG_CONFIG_DEPENDS:=$(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_$c),CONFIG_$(c))) + +include $(INCLUDE_DIR)/package.mk + +TAR_CMD=$(HOST_TAR) -C $(1)/ $(TAR_OPTIONS) + +define KernelPackage/mt7603e + CATEGORY:=MTK Properties + TITLE:=MTK MT7603e wifi AP driver + FILES:=$(PKG_BUILD_DIR)/rlt_wifi_ap/mt7603e.ko + SUBMENU:=Drivers + MENU:=1 +endef + +define KernelPackage/mt7603e/config + source "$(SOURCE)/config.in" +endef + +define P4/Info + P4URL:=//Embedded_WIFI/MP/MT7603/rlt_wifi/ +endef + +define P4/Release + make RT28xx_MODE=AP CHIPSET=mt7603e build_tools + make WIFI_MODE=AP CHIPSET=mt7603e RELEASE=DPA release 2>&1 + mv DPA src + cp -rf rlt_wifi_ap build + #cp build/Makefile.mt_wifi_ap build/Makefile + #cp build/Kconfig.mt_wifi_ap build/Kconfig + tar cjf mt7603e.tar.bz2 build src +endef + +define Build/Compile + $(MAKE) -C "$(LINUX_DIR)" V=1 \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + ARCH="$(LINUX_KARCH)" \ + SUBDIRS="$(PKG_BUILD_DIR)/rlt_wifi_ap" \ + $(foreach c, $(PKG_KCONFIG),$(if $(CONFIG_MT7603E_$c),CONFIG_$(c)=$(CONFIG_MT7603E_$(c)))) \ + modules +endef + +define KernelPackage/mt7603e/install + $(INSTALL_DIR) $(1)/lib/wifi/ + $(INSTALL_BIN) ./files/mt7603e.sh $(1)/lib/wifi/ + $(INSTALL_DIR) $(1)/etc/wireless/mt7603e/ + $(INSTALL_BIN) ./files/mt7603e.dat $(1)/etc/wireless/mt7603e/ + -$(INSTALL_BIN) ./files/mt7603e.eeprom.bin $(1)/etc/wireless/mt7603e/ + echo p$(P4REV) > $(1)/etc/wireless/mt7603e/version +endef + +$(eval $(call KernelPackage,mt7603e)) diff --git a/package/ramips/drivers/mt7603e/config.in b/package/ramips/drivers/mt7603e/config.in new file mode 100755 index 0000000..5e3d9e1 --- /dev/null +++ b/package/ramips/drivers/mt7603e/config.in @@ -0,0 +1,527 @@ +if PACKAGE_kmod-mt7603e + +#if FIRST_IF_MT7603E || SECOND_IF_MT7603E +config MT7603E_FIRST_IF_MT7603E + bool + default y + depends on PACKAGE_kmod-mt7603e + +config MT7603E_RLT_WIFI + tristate "MT WIFI Driver" + default y + +config MT7603E_MT_WIFI_PATH + string + depends on MT7603E_RLT_WIFI + default "rlt_wifi" + +if MT7603E_RLT_WIFI +menu "WiFi Generic Feature Options" + +if MT7603E_FIRST_IF_MT7603E +choice + prompt "EEPROM Type of 1st Card" + default MT7603E_FIRST_MT_IF_EEPROM_FLASH + #depends on ! FIRST_IF_NONE + + config MT7603E_FIRST_IF_EEPROM_FLASH + bool "FLASH" + + config MT7603E_FIRST_IF_EEPROM_PROM + bool "EEPROM" + + config MT7603E_FIRST_IF_EEPROM_EFUSE + bool "EFUSE" +endchoice + +config MT7603E_RT_FIRST_CARD_EEPROM + string + #depends on ! FIRST_IF_NONE + default "prom" if MT7603E_FIRST_IF_EEPROM_PROM + default "efuse" if MT7603E_FIRST_IF_EEPROM_EFUSE + default "flash" if MT7603E_FIRST_IF_EEPROM_FLASH +endif + + + + +config MT7603E_MULTI_INF_SUPPORT + bool + #default y if !FIRST_IF_NONE && !SECOND_IF_NONE + default n + +#config MT7603E_WIFI_BASIC_FUNC +# bool "Basic Functions" +# select WIRELESS_EXT +# select WEXT_SPY +# select WEXT_PRIV + +config MT7603E_WSC_INCLUDED + bool "WSC (WiFi Simple Config)" +# depends on WIFI_DRIVER + default y + +config MT7603E_WSC_V2_SUPPORT + bool "WSC V2(WiFi Simple Config Version 2.0)" + depends on MT7603E_MMT_WSC_INCLUDED + default y +config MT7603E_WSC_NFC_SUPPORT + bool "WSC out-of-band(NFC)" + # depends on WIFI_DRIVER + default n +config MT7603E_DOT11N_DRAFT3 + bool "802.11n Draft3" +# depends on WIFI_DRIVER + default y + +#config MT7603E_DOT11_VHT_AC +# bool "802.11 ac" +# depends on WIFI_DRIVER +# default n + +config MT7603E_DOT11W_PMF_SUPPORT + bool "PMF Support" +# depends on WIFI_DRIVER + default y + +config MT7603E_TXBF_SUPPORT + bool "Tx Bean Forming Support" +# depends on WIFI_DRIVER + default n + +#config MT7603E_WMM_ACM_SUPPORT +# bool "WMM ACM" +# depends on WIFI_DRIVER +# default n + +config MT7603E_LLTD_SUPPORT + bool "LLTD (Link Layer Topology Discovery Protocol)" +# depends on WIFI_DRIVER + default y + +config MT7603E_QOS_DLS_SUPPORT + bool "802.11e DLS ((Direct-Link Setup) Support" +# depends on WIFI_DRIVER + default n + +config MT7603E_WAPI_SUPPORT + bool "WAPI Support" +# depends on WIFI_DRIVER + default n + +config MT7603E_CARRIER_DETECTION_SUPPORT + bool "Carrier Detect" +# depends on WIFI_DRIVER + default n + +config MT7603E_IGMP_SNOOP_SUPPORT + bool "IGMP Snooping" +# depends on WIFI_DRIVER + default n + +config MT7603E_BLOCK_NET_IF + bool "NETIF Block" +# depends on WIFI_DRIVER + default n + help + Support Net interface block while Tx-Sw queue full + +#config MT7603E_MT_TXBF_SUPPORT +# bool "Tx Bean Forming Support (Only 3883)" +# depends on WIFI_DRIVER +# depends on RALINK_RT2883 || RALINK_RT3883 +# default n + +#config MT7603E_MT_VIDEO_TURBINE_SUPPORT +# bool "Video Turbine support" +# depends on WIFI_DRIVER +# default n + +#config MT7603E_RATE_ADAPTION +# tristate "Ralink Flow Classifier" +# depends on WIFI_DRIVER +# default n + +config MT7603E_NEW_RATE_ADAPT_SUPPORT + bool "New Rate Adaptation support" +# depends on WIFI_DRIVER + default y + +config MT7603E_MT_NEW_RATE_ADAPT_SUPPORT + bool "Intelligent Rate Adaption" +# depends on WIFI_DRIVER && MT_RATE_ADAPTION + default y + +config MT7603E_AGS_SUPPORT + bool "Adaptive Group Switching" + depends on MT7603E_MT_RATE_ADAPTION + default n + +config MT7603E_IDS_SUPPORT + bool "IDS (Intrusion Detection System) Support" +# depends on WIFI_DRIVER + default n + +config MT7603E_WIFI_WORK_QUEUE + bool "Work Queue" +# depends on WIFI_DRIVER + default n + +config MT7603E_WIFI_SKB_RECYCLE + bool "SKB Recycle(Linux)" +# depends on WIFI_DRIVER + default n + +config MT7603E_RTMP_FLASH_SUPPORT + bool "Flash Support" +# depends on WIFI_DRIVER + default y + +config MT7603E_LED_CONTROL_SUPPORT + bool "LED Support" +# depends on WIFI_DRIVER + default n + +config MT7603E_SINGLE_SKU + bool "Single SKU" +# depends on WIFI_DRIVER + default n + +config MT7603E_SINGLE_SKU_V2 + bool "Single SKU V2" + depends on MT7603E_SINGLE_SKU && RALINK_RT6352 + default n + +config MT7603E_HW_ANTENNA_DIVERSITY + bool "Antenna Diversity Support" + depends on MT7603E_RLT_AP_SUPPORT || MT7603E_RLT_STA_SUPPORT + depends on RALINK_RT5350 + default n + +config MT7603E_ATE_SUPPORT + bool "ATE/QA Support" +# depends on WIFI_DRIVER + default y + +config MT7603E_RT2860V2_AP_V24_DATA_STRUCTURE + bool +# depends on WIFI_DRIVER + default y + +config MT7603E_RT2860V2_AP_32B_DESC + bool "32 Byte Descriptor Support" +# depends on WIFI_DRIVER + depends on RALINK_RT6352 || RALINK_MT7620 + default n + +config MT7603E_MEMORY_OPTIMIZATION + bool "Memory Optimization" +# depends on WIFI_DRIVER + default n + +#config MT7603E_RTMP_INTERNAL_TX_ALC +# bool "TSSI Compensation" +# depends on WIFI_DRIVER +# depends on RALINK_RT3350 || RALINK_RT3352 || RALINK_RT5350 || RALINK_RT6352 +# default n + +#config MT7603E_RTMP_TEMPERATURE_CALIBRATION +# bool "Temperature Calibration" +# depends on WIFI_DRIVER +# depends on RALINK_RT6352 +# default n + +config MT7603E_HOTSPOT + bool "Passpoint-R1" +# depends on WIFI_DRIVER + default n + +config MT7603E_MT_HOTSPOT_R2 + bool "Passpoint Release-2 Support" + depends on HOTSPOT + select MT7603E_MT_DOT11W_PMF_SUPPORT + default n + +config MT7603E_MT_RTMP_TEMPERATURE_TX_ALC + bool "Temperature Tx Power Compensation" +# depends on WIFI_DRIVER + default n + +config MT7603E_UAPSD + bool "UAPSD support" +# depends on WIFI_DRIVER + default y + + +# +# Section for chip architectures +# +# "RLT MAC Support" +config MT7603E_RLT_MAC + bool +# depends on WIFI_DRIVER + default n + +config MT7603E_RLT_BBP + bool + +config MT7603E_RLT_RF + bool + +# "RTMP MAC Support" +config MT7603E_RTMP_MAC + bool + depends on WIFI_DRIVER + default n + +config MT7603E_RTMP_BBP + bool + +config MT7603E_RTMP_RF + bool + +#config MT7603E_MT_EPA_ELNA +# bool "ePAeLNA" +# depends on WIFI_DRIVER +# default n +#choice +# prompt "PA,LNA Type" +# depends on MT7603E_MT_WIFI +# +# config MT7603E_MT_IPA_ILNA +# bool "iPAiLNA" +# +# config MT7603E_MT_IPA_ELNA +# bool "iPAeLNA" +# +# config MT7603E_MT_EPA_ILNA +# bool "ePAiLNA" +# +# config MT7603E_MT_EPA_ELNA +# bool "ePAeLNA" +#endchoice +# +#config MT7603E_MT_PA_LNA +# string +# depends on MT7603E_MT_WIFI +# default "iPAiLNA" if MT7603E_MT_IPA_ILNA +# default "iPAeLNA" if MT7603E_MT_IPA_ELNA +# default "ePAiLNA" if MT7603E_MT_EPA_ILNA +# default "ePAeLNA" if MT7603E_MT_EPA_ELNA +# +# +# Section for chip architectures +# +# "RLT MAC Support" +#config MT7603E_RLT_MAC +# bool +# depends on WIFI_DRIVER +# default n + +#config MT7603E_RLT_BBP +# bool + +#config MT7603E_RLT_RF +# bool + +# "RTMP MAC Support" +#config MT7603E_RTMP_MAC +# bool +# depends on WIFI_DRIVER +# default n + +#config MT7603E_RTMP_BBP +# bool + +#config MT7603E_RTMP_RF +# bool + +# +# Section for interfaces +# +config MT7603E_RTMP_PCI_SUPPORT + bool + +config MT7603E_RTMP_USB_SUPPORT + bool + +config MT7603E_RTMP_RBUS_SUPPORT + bool + +endmenu + +menu "WiFi Operation Modes" + choice + prompt "Main Mode" + default MT7603E_MT_WIFI_MODE_AP + + config MT7603E_MT_WIFI_MODE_AP + bool "AP" + + config MT7603E_MT_WIFI_MODE_STA + bool "STA" + + config MT7603E_MT_WIFI_MODE_BOTH + bool "APSTA" + endchoice + + if MT7603E_MT_WIFI_MODE_AP || MT7603E_MT_WIFI_MODE_BOTH + +config MT7603E_RLT_AP_SUPPORT + tristate "UnifyMAC 802.11n AP support" + default y +# depends on NET_RADIO + select WIRELESS_EXT + select WEXT_SPY + select WEXT_PRIV + +config MT7603E_WDS_SUPPORT + bool "WDS" + depends on MT7603E_RLT_AP_SUPPORT + default n + +config MT7603E_MBSS_SUPPORT + bool "MBSSID" + depends on MT7603E_RLT_AP_SUPPORT + default y + +config MT7603E_NEW_MBSSID_MODE + bool "New MBSSID MODE" + depends on MT7603E_RLT_AP_SUPPORT && MT7603E_MBSS_SUPPORT + # depends on RALINK_RT3883 || RALINK_RT3352 || RALINK_RT5350 || RALINK_RT6352 || RALINK_MT7620 || RALINK_MT7621 + default n + +config MT7603E_ENHANCE_NEW_MBSSID_MODE + bool "Enhanced MBSSID mode" + depends on MT7603E_NEW_MBSSID_MODE + default n +config MT7603E_CFG80211_SUPPORT + bool "CFG80211" + depends on MT7603E_RLT_AP_SUPPORT + default n + +config MT7603E_SNIFFER_MIB_CMD + bool "SNIFFER_MIB_CMD" + depends on MT7603E_SNIFFER_SUPPORT + default n + +config MT7603E_ALL_NET_EVENT + bool "ALL_NET_EVENT" + depends on MT7603E_RLT_AP_SUPPORT + default n + +config MT7603E_ACL_V2_SUPPORT + bool "ACL_V2" + depends on MT7603E_RLT_AP_SUPPORT + + +config MT7603E_APCLI_SUPPORT + bool "AP-Client Support" + depends on MT7603E_RLT_AP_SUPPORT + default y +config MT7603E_MULTI_APCLI_SUPPORT + bool "MULTI AP-Client Support" + depends on MT7603E_APCLI_SUPPORT + +config MT7603E_MAC_REPEATER_SUPPORT + bool "MAC Repeater Support" + depends on MT7603E_RLT_AP_SUPPORT + depends on MT7603E_APCLI_SUPPORT + depends on RALINK_RT6352 || RALINK_MT7620 || MT7603E_RALINK_MT7603E + default n +config MT7603E_AIRPLAY_SUPPORT + bool "AirPlay Support" + depends on MT7603E_APCLI_SUPPORT + +#config MT7603E_MT_MESH_SUPPORT +# bool "MESH Support" +# depends on MT7603E_RLT_AP_SUPPORT + +config MT7603E_DFS_SUPPORT + bool "DFS" + depends on MT7603E_RLT_AP_SUPPORT + select RALINK_TIMER_DFS + +#config MT7603E_DOT11R_FT_SUPPORT +# bool "802.11r Fast BSS Transition" +# depends on MT7603E_RLT_AP_SUPPORT + +#config MT7603E_DOT11K_RRM_SUPPORT +# bool "802.11k Radio Resource Management" +# depends on MT7603E_RLT_AP_SUPPORT + +config MT7603E_LLTD_SUPPORT + bool "LLTD (Link Layer Topology Discovery Protocol)" + depends on MT7603E_RLT_AP_SUPPORT + default y + +config MT7603E_NINTENDO_AP + bool "Nintendo AP" + depends on MT7603E_RLT_AP_SUPPORT + +config MT7603E_COC_SUPPORT + bool "CoC Support" + depends on MT7603E_RLT_AP_SUPPORT + default n + +#config MT7603E_ RT2860V2_SNMP +# bool "Net-SNMP Support" +# depends on MT7603E_RLT_AP_SUPPORT + +config MT7603E_MCAST_RATE_SPECIFIC + bool "User specific tx rate of mcast pkt" + depends on MT7603E_RLT_AP_SUPPORT +config MT7603E_PREVENT_ARP_SPOOFING_SUPPORT + bool "Detect ARP spoof pkts attack" + depends on MT7603E_RLT_AP_SUPPORT + +#config MT7603E_EXT_BUILD_CHANNEL_LIST +# bool "Extension Channel List" +# depends on MT7603E_RLT_AP_SUPPORT + +#config MT7603E_AUTO_CH_SELECT_ENHANCE +# bool "Auto Channel Selection Enhancement" +# depends on MT7603E_RLT_AP_SUPPORT + +config MT7603E_MULTI_CORE_SUPPORT + bool "multi core support" + depends on TARGET_ramips_mt7621 + default y + + endif + + #if MT7603E_WIFI_MODE_STA || MT7603E_WIFI_MODE_BOTH + # source "drivers/net/wireless/rlt_wifi_sta/Kconfig" + #endif +endmenu + +#"MT7603E" +config MT7603E_RALINK_MT7603E + bool + default y + select MT7603E_RTMP_PCI_SUPPORT + +endif + +#if MT7603E_RLT_MAC +# config MT7603E_RLT_MAC +# bool +# default y +#endif + +#if MT7603E_RTMP_MAC +# config MT7603E_RTMP_MAC +# bool +# default y +#endif + +#if MT7603E_MT_MAC +if MT7603E_RALINK_MT7603E + config MT7603E_MT_MAC + bool + default y +endif +#endif MT7603E_MT_WIFI +#endif +#endif FIRST_IF_MT7603E || SECOND_IF_MT7603E +endif diff --git a/package/ramips/drivers/mt7603e/files/mt7603e.dat b/package/ramips/drivers/mt7603e/files/mt7603e.dat new file mode 100755 index 0000000..fc24821 --- /dev/null +++ b/package/ramips/drivers/mt7603e/files/mt7603e.dat @@ -0,0 +1,147 @@ +#The word of "Default" must not be removed +Default +CountryRegion=5 +CountryRegionABand=7 +CountryCode=TW +BssidNum=1 +SSID1=RT2860AP1 +SSID2= +SSID3= +SSID4= +WirelessMode=9 +TxRate=0 +Channel=11 +BasicRate=15 +BeaconPeriod=100 +DtimPeriod=1 +TxPower=100 +DisableOLBC=0 +BGProtection=0 +MaxStaNum=0 +TxPreamble=0 +RTSThreshold=2347 +FragThreshold=2346 +TxBurst=1 +PktAggregate=0 +TurboRate=0 +WmmCapable=1 +APSDCapable=1 +DLSCapable=0 +APAifsn=3;7;1;1 +APCwmin=4;4;3;2 +APCwmax=6;10;4;3 +APTxop=0;0;94;47 +APACM=0;0;0;0 +BSSAifsn=3;7;2;2 +BSSCwmin=4;4;3;2 +BSSCwmax=10;10;4;3 +BSSTxop=0;0;94;47 +BSSACM=0;0;0;0 +AckPolicy=0;0;0;0 +NoForwarding=0 +NoForwardingBTNBSSID=0 +HideSSID=0 +StationKeepAlive=0 +ShortSlot=1 +AutoChannelSelect=0 +IEEE8021X=0 +IEEE80211H=0 +CSPeriod=10 +WirelessEvent=0 +IdsEnable=0 +AuthFloodThreshold=32 +AssocReqFloodThreshold=32 +ReassocReqFloodThreshold=32 +ProbeReqFloodThreshold=32 +DisassocFloodThreshold=32 +DeauthFloodThreshold=32 +EapReqFooldThreshold=32 +PreAuth=0 +AuthMode=OPEN +EncrypType=NONE +RekeyInterval=0 +RekeyMethod=DISABLE +PMKCachePeriod=10 +WPAPSK1= +WPAPSK2= +WPAPSK3= +WPAPSK4= +DefaultKeyID=1 +Key1Type=1;1;1;1 +Key1Str1= +Key1Str2= +Key1Str3= +Key1Str4= +Key2Type=1;1;1;1 +Key2Str1= +Key2Str2= +Key2Str3= +Key2Str4= +Key3Type=1;1;1;1 +Key3Str1= +Key3Str2= +Key3Str3= +Key3Str4= +Key4Type=1;1;1;1 +Key4Str1= +Key4Str2= +Key4Str3= +Key4Str4= +HSCounter=0 +AccessPolicy0=0 +AccessControlList0= +AccessPolicy1=0 +AccessControlList1= +AccessPolicy2=0 +AccessControlList2= +AccessPolicy3=0 +AccessControlList3= +WdsEnable=0 +WdsEncrypType=NONE +WdsList= +WdsKey= +RADIUS_Server=192.168.2.3 +RADIUS_Port=1812 +RADIUS_Key=ralink +own_ip_addr=192.168.5.234 +EAPifname=br-lan +PreAuthifname=br-lan +HT_HTC=0 +HT_RDG=0 +HT_EXTCHA=0 +HT_LinkAdapt=0 +HT_OpMode=0 +HT_MpduDensity=5 +HT_BW=1 +HT_AutoBA=1 +HT_AMSDU=0 +HT_BAWinSize=64 +HT_GI=1 +HT_LDPC=0 +HT_MCS=33 +VHT_BW=1 +VHT_SGI=1 +VHT_STBC=0 +VHT_BW_SIGNAL=0 +VHT_DisallowNonVHT=0 +VHT_LDPC=0 +MeshId=MESH +MeshAutoLink=1 +MeshAuthMode=OPEN +MeshEncrypType=NONE +MeshWPAKEY= +MeshDefaultkey=1 +MeshWEPKEY= +WscManufacturer= +WscModelName= +WscDeviceName= +WscModelNumber= +WscSerialNumber= +RadioOn=1 +PMFMFPC=0 +PMFMFPR=0 +PMFSHA256=0 +LoadCodeMethod=0 + +HT_TxStream=2 +HT_RxStream=2 diff --git a/package/ramips/drivers/mt7603e/files/mt7603e.eeprom.bin b/package/ramips/drivers/mt7603e/files/mt7603e.eeprom.bin Binary files differnew file mode 100755 index 0000000..4d9fab4 --- /dev/null +++ b/package/ramips/drivers/mt7603e/files/mt7603e.eeprom.bin diff --git a/package/ramips/drivers/mt7603e/files/mt7603e.sh b/package/ramips/drivers/mt7603e/files/mt7603e.sh new file mode 100755 index 0000000..4b28935 --- /dev/null +++ b/package/ramips/drivers/mt7603e/files/mt7603e.sh @@ -0,0 +1,49 @@ +#!/bin/sh +append DRIVERS "mt7603e" + +. /lib/wifi/ralink_common.sh + +prepare_mt7603e() { + prepare_ralink_wifi mt7603e +} + +scan_mt7603e() { + scan_ralink_wifi mt7603e mt7603e +} + +disable_mt7603e() { + disable_ralink_wifi mt7603e +} + +enable_mt7603e() { + enable_ralink_wifi mt7603e mt7603e +} + +detect_mt7603e() { +# detect_ralink_wifi mt7603e mt7603e + ssid=mt7603e #-`ifconfig eth0 | grep HWaddr | cut -c 51- | sed 's/://g'` + cd /sys/module/ + [ -d $module ] || return + [ -e /etc/config/wireless ] && return + cat <<EOF +config wifi-device mt7603e + option type mt7603e + option vendor ralink + option band 2.4G + option channel 1 + +config wifi-iface + option device mt7603e + option ifname ra0 + option network lan + option mode ap + option ssid $ssid + option encryption psk2 + option key 12345678 + +EOF + + +} + + diff --git a/package/ramips/drivers/mt7603e/patches/001-fix-build.patch b/package/ramips/drivers/mt7603e/patches/001-fix-build.patch new file mode 100644 index 0000000..264f985 --- /dev/null +++ b/package/ramips/drivers/mt7603e/patches/001-fix-build.patch @@ -0,0 +1,114 @@ +Index: mt7603e-4.0.1.0/rlt_wifi_ap/Makefile +=================================================================== +--- mt7603e-4.0.1.0.orig/rlt_wifi_ap/Makefile ++++ mt7603e-4.0.1.0/rlt_wifi_ap/Makefile +@@ -1,7 +1,6 @@ +-EXTRA_CFLAGS = -Idrivers/net/wireless/rlt_wifi/include \ +- -Idrivers/net/wireless/rlt_wifi/ate/include ++EXTRA_CFLAGS = -I$(src)/../rlt_wifi/include -I$(src)/../rlt_wifi/ate/include + +-DRV_NAME = rlt_wifi ++DRV_NAME = mt7603e + RT_WIFI_DIR = ../rlt_wifi + + ######################################################## +@@ -733,7 +732,7 @@ endif + # + # Root + # +-obj-$(CONFIG_RLT_AP_SUPPORT) += $(DRV_NAME).o ++obj-m += $(DRV_NAME).o + + $(DRV_NAME)-objs += $(ap_objs) $(cmm_objs) $(asic_objs) $(chip_objs) $(rate_objs) $(inf_objs)\ + $(spec_objs) $(func_objs) $(os_objs) +Index: mt7603e-4.0.1.0/rlt_wifi/os/linux/rt_linux.c +=================================================================== +--- mt7603e-4.0.1.0.orig/rlt_wifi/os/linux/rt_linux.c ++++ mt7603e-4.0.1.0/rlt_wifi/os/linux/rt_linux.c +@@ -43,8 +43,8 @@ + #endif + + #if defined(CONFIG_RA_HW_NAT) || defined(CONFIG_RA_HW_NAT_MODULE) +-#include "../../../../../../net/nat/hw_nat/ra_nat.h" +-#include "../../../../../../net/nat/hw_nat/frame_engine.h" ++#include "../../../linux-kernel/net/nat/hw_nat/ra_nat.h" ++#include "../../../linux-kernel/net/nat/hw_nat/frame_engine.h" + #endif + + /* TODO */ +Index: mt7603e-4.0.1.0/rlt_wifi/os/linux/rt_profile.c +=================================================================== +--- mt7603e-4.0.1.0.orig/rlt_wifi/os/linux/rt_profile.c ++++ mt7603e-4.0.1.0/rlt_wifi/os/linux/rt_profile.c +@@ -30,8 +30,8 @@ + #endif + + #if defined (CONFIG_RA_HW_NAT) || defined (CONFIG_RA_HW_NAT_MODULE) +-#include "../../../../../../net/nat/hw_nat/ra_nat.h" +-#include "../../../../../../net/nat/hw_nat/frame_engine.h" ++#include "../../../linux-kernel/net/nat/hw_nat/ra_nat.h" ++#include "../../../linux-kernel/net/nat/hw_nat/frame_engine.h" + #endif + + +@@ -60,8 +60,8 @@ struct dev_type_name_map{ + #define xdef_to_str(s) def_to_str(s) + #define def_to_str(s) #s + +-#define FIRST_EEPROM_FILE_PATH "/etc_ro/Wireless/RT2860/" +-#define FIRST_AP_PROFILE_PATH "/etc/Wireless/RT2860/RT2860.dat" ++#define FIRST_EEPROM_FILE_PATH "/etc/wireless/mt7603e/mt7603e.eeprom.dat" ++#define FIRST_AP_PROFILE_PATH "/etc/wireless/mt7603e/mt7603e.dat" + #define FIRST_CHIP_ID xdef_to_str(CONFIG_RT_FIRST_CARD) + + #define SECOND_EEPROM_FILE_PATH "/etc_ro/Wireless/iNIC/" +Index: mt7603e-4.0.1.0/rlt_wifi/include/os/rt_linux.h +=================================================================== +--- mt7603e-4.0.1.0.orig/rlt_wifi/include/os/rt_linux.h ++++ mt7603e-4.0.1.0/rlt_wifi/include/os/rt_linux.h +@@ -152,33 +152,19 @@ typedef struct usb_ctrlrequest devctrlre + ***********************************************************************************/ + #ifdef CONFIG_AP_SUPPORT + #ifdef RTMP_MAC_PCI +-#if CONFIG_RTPCI_AP_RF_OFFSET == 0x48000 +-#define AP_PROFILE_PATH "/etc/Wireless/iNIC/iNIC_ap.dat" +-#define AP_RTMP_FIRMWARE_FILE_NAME "/etc_ro/Wireless/iNIC/RT2860AP.bin" +-#else +- +-#ifdef CONFIG_FIRST_IF_MT7603E +-//for SDK's PATH +-#define AP_PROFILE_PATH "/etc/Wireless/RT2860/RT2860.dat" +-#else /* CONFIG_FIRST_IF_MT7603E */ +-//for PC's PATH +-#define AP_PROFILE_PATH "/etc/Wireless/RT2860AP/RT2860AP.dat" +-#endif /* !CONFIG_FIRST_IF_MT7603E */ +-#define AP_RTMP_FIRMWARE_FILE_NAME "/etc/Wireless/RT2860AP/RT2860AP.bin" +- +-#endif + ++#define AP_PROFILE_PATH "/etc/wireless/mt7603e/mt7603e.dat" + + #define AP_DRIVER_VERSION "4.0.1.0rev1" + #ifdef MULTIPLE_CARD_SUPPORT +-#define CARD_INFO_PATH "/etc/Wireless/RT2860AP/RT2860APCard.dat" ++#define CARD_INFO_PATH "/etc/wireless/mt7603e/mt7603e.card.dat" + #endif /* MULTIPLE_CARD_SUPPORT */ + #endif /* RTMP_MAC_PCI */ + + + + #ifdef SINGLE_SKU_V2 +-#define SINGLE_SKU_TABLE_FILE_NAME "/etc/Wireless/RT2860AP/SingleSKU.dat" ++#define SINGLE_SKU_TABLE_FILE_NAME "/etc/wireless/mt7603e/SingleSKU.dat" + #endif /* SINGLE_SKU_V2 */ + + #endif /* CONFIG_AP_SUPPORT */ +@@ -1589,7 +1575,7 @@ extern int rausb_control_msg(VOID *dev, + #define ATEDBGPRINT DBGPRINT + #ifdef RTMP_MAC_PCI + #ifdef CONFIG_AP_SUPPORT +-#define EEPROM_BIN_FILE_NAME "/etc/Wireless/RT2860AP/e2p.bin" ++#define EEPROM_BIN_FILE_NAME "/etc/wireless/mt7603e/mt7603e.eeprom.bin" + #endif /* CONFIG_AP_SUPPORT */ + #endif /* RTMP_MAC_PCI */ + |