Skip to content

Commit

Permalink
test for lintel
Browse files Browse the repository at this point in the history
  • Loading branch information
mango committed Mar 10, 2017
1 parent ec49052 commit 0dc4c11
Show file tree
Hide file tree
Showing 8 changed files with 250 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package/mtk-wifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ define Package/mtk-wifi/install
$(INSTALL_DIR) $(1)/sbin/
$(CP) $(PKG_BUILD_DIR)/ap_client $(1)/sbin/
$(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)/
$(CP) ./wifi_ko/mt_wifi_$(LINUX_VERSION)_ate_nodebug_tmpdat.ko $(1)/lib/modules/$(LINUX_VERSION)/mt_wifi.ko
$(CP) ./wifi_ko/mt_wifi_lintel.ko $(1)/lib/modules/$(LINUX_VERSION)/mt_wifi.ko
$(CP) ./wifi_ko/eeprom.ko $(1)/lib/modules/$(LINUX_VERSION)/eeprom.ko
$(CP) ./files/* $(1)/
endef

Expand Down
230 changes: 230 additions & 0 deletions package/mtk-wifi/files/etc/Wireless/RT2860/RT2860AP.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
#The word of "Default" must not be removed
Default
CountryRegion=1
CountryRegionABand=7
CountryCode=CN
BssidNum=4
WirelessMode=9
FixedTxMode=
TxRate=0
Channel=6
BasicRate=15
BeaconPeriod=100
DtimPeriod=1
TxPower=100
DisableOLBC=0
BGProtection=0
TxAntenna=
RxAntenna=
TxPreamble=1
RTSThreshold=2347
FragThreshold=2346
TxBurst=1
PktAggregate=0
AutoProvisionEn=0
FreqDelta=0
TurboRate=0
WmmCapable=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
APSDCapable=0
DLSCapable=0
NoForwarding=0
NoForwardingBTNBSSID=0
ShortSlot=1
AutoChannelSelect=2
IEEE8021X=0
IEEE80211H=0
CarrierDetect=0
ITxBfEn=0
PreAntSwitch=
PhyRateLimit=0
DebugFlags=0
ETxBfEnCond=0
ITxBfTimeout=0
ETxBfTimeout=0
ETxBfNoncompress=0
ETxBfIncapable=0
FineAGC=0
StreamMode=0
StreamModeMac0=
StreamModeMac1=
StreamModeMac2=
StreamModeMac3=
CSPeriod=6
RDRegion=
StationKeepAlive=0
DfsLowerLimit=0
DfsUpperLimit=0
DfsOutdoor=0
SymRoundFromCfg=0
BusyIdleFromCfg=0
DfsRssiHighFromCfg=0
DfsRssiLowFromCfg=0
DFSParamFromConfig=0
FCCParamCh0=
FCCParamCh1=
FCCParamCh2=
FCCParamCh3=
CEParamCh0=
CEParamCh1=
CEParamCh2=
CEParamCh3=
JAPParamCh0=
JAPParamCh1=
JAPParamCh2=
JAPParamCh3=
JAPW53ParamCh0=
JAPW53ParamCh1=
JAPW53ParamCh2=
JAPW53ParamCh3=
FixDfsLimit=0
LongPulseRadarTh=0
AvgRssiReq=0
DFS_R66=0
BlockCh=
PreAuth=0
WapiPsk1=0123456789
WapiPsk2=
WapiPsk3=
WapiPsk4=
WapiPsk5=
WapiPsk6=
WapiPsk7=
WapiPsk8=
WapiPskType=0
Wapiifname=
WapiAsCertPath=
WapiUserCertPath=
WapiAsIpAddr=
WapiAsPort=
RekeyMethod=DISABLE
RekeyInterval=3600
PMKCachePeriod=10
MeshAutoLink=0
MeshAuthMode=
MeshEncrypType=
MeshDefaultkey=0
MeshWEPKEY=
MeshWPAKEY=
MeshId=
HSCounter=0
HT_HTC=0
HT_RDG=1
HT_LinkAdapt=0
HT_OpMode=0
HT_MpduDensity=5
HT_EXTCHA=0
HT_BW=1
HT_AutoBA=1
HT_BADecline=0
HT_AMSDU=1
HT_BAWinSize=64
HT_GI=1
HT_STBC=1
HT_LDPC=1
HT_MCS=33
VHT_BW=0
VHT_SGI=1
VHT_STBC=0
VHT_BW_SIGNAL=0
VHT_DisallowNonVHT=0
VHT_LDPC=0
#HT_TxStream=2
#HT_RxStream=2
#HT_PROTECT=1
HT_DisallowTKIP=0
HT_BSSCoexistence=1
GreenAP=0
WscConfMode=0
WscConfStatus=1
WCNTest=0
WdsEnable=0
WdsPhyMode=
WdsEncrypType=NONE
WdsList=
Wds0Key=
Wds1Key=
Wds2Key=
Wds3Key=
RADIUS_Server=
RADIUS_Port=1812
RADIUS_Key1=
RADIUS_Key2=
RADIUS_Key3=
RADIUS_Key4=
RADIUS_Key5=
RADIUS_Key6=
RADIUS_Key7=
RADIUS_Key8=
RADIUS_Acct_Server=
RADIUS_Acct_Port=1813
RADIUS_Acct_Key=
own_ip_addr=
Ethifname=
EAPifname=
PreAuthifname=
session_timeout_interval=0
idle_timeout_interval=0
WiFiTest=0
TGnWifiTest=0
ApCliEnable=0
ApCliSsid=
ApCliBssid=
ApCliAuthMode=
ApCliEncrypType=
ApCliWPAPSK=
ApCliDefaultKeyID=0
ApCliKey1Type=0
ApCliKey1Str=
ApCliKey2Type=0
ApCliKey2Str=
ApCliKey3Type=0
ApCliKey3Str=
ApCliKey4Type=0
ApCliKey4Str=
RadioOn=1
WscManufacturer=PandoraBox
WscModelName=PandoraBox Wireless Router
WscDeviceName=PandoraBox 2.4G WiFi
WscModelNumber=
WscSerialNumber=
PMFMFPC=0
PMFMFPR=0
PMFSHA256=0
LoadCodeMethod=0
AutoChannelSkipList=12;13;14;
MaxStaNum=0
WirelessEvent=1
TxPreamble=1
AuthFloodThreshold=32
ProbeReqFloodThreshold=32
DisassocFloodThreshold=32
DeauthFloodThreshold=32
EapReqFooldThreshold=32
Thermal=100
EnhanceMultiClient=1
IgmpSnEnable=0
#DetectPhy=1
BGMultiClient=1
EDCCA=0
HT_MIMOPSMode=3
PandoraBoxSmart=1
SSID1=PandoraBox_CFFFB6
AuthMode=OPEN;
EncrypType=NONE;
HideSSID=0;
DefaultKeyID=1;
Key1Type=0;
Key2Type=0;
Key3Type=0;
Key4Type=0;
14 changes: 14 additions & 0 deletions package/mtk-wifi/files/etc/Wireless/SingleSKU_2G.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Single SKU Max Power Table
# |CCK 1~11 | OFDM 6 ~ 54 | | HT20 MCS 0 ~ 15 | | HT40 MCS 0 ~ 15 |
# 1 2 5.5 11 6 9 12 18 24 36 48 54 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
ch1 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch2 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch3 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch4 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch5 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch6 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch7 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch8 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch9 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch10 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
ch11 24 24 24 24 24 24 24 24 22 22 20 20 24 24 22 22 20 20 18 18 24 24 22 22 20 20 18 18
1 change: 1 addition & 0 deletions package/mtk-wifi/files/etc/modules.d/52-mt7628
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
eeprom
mt_wifi
Binary file not shown.
6 changes: 3 additions & 3 deletions package/mtk-wifi/src/ap_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static void wifi_site_survey(const char *ifname, int print)
char *line, *start;

iwpriv(ifname, "SiteSurvey", "");
sleep(2);
sleep(5);
memset(s, 0x00, IW_SCAN_MAX_DATA);
strcpy(wrq.ifr_name, ifname);
wrq.u.data.length = IW_SCAN_MAX_DATA;
Expand Down Expand Up @@ -301,10 +301,10 @@ static void assoc_loop(char *ifname, char *staname, char *essid, char *pass, cha
} else {
print_log("connect\n");
}
sleep(2);
sleep(8);
if(count ++ > 5){
count =0;
iwpriv("ra0", "HideSSID", hide);
// iwpriv("ra0", "HideSSID", hide);
}

}
Expand Down
Binary file added package/mtk-wifi/wifi_ko/eeprom.ko
Binary file not shown.
Binary file added package/mtk-wifi/wifi_ko/mt_wifi_lintel.ko
Binary file not shown.

0 comments on commit 0dc4c11

Please sign in to comment.