MTK_Wi Fi_SoftAP_Software_Programming_Guide_v4.2 MTK Wi Fi Soft AP Software Programming Guide V4.2
User Manual: Pdf
Open the PDF directly: View PDF .
Page Count: 187
Download | |
Open PDF In Browser | View PDF |
loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL MTK Wi-Fi SoftAP Software Programming Guide Version: Release date: 4.2 2014-07-01 © 2008 - 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. FO Specifications are subject to change without notice. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Document Revision History Revision Date Author Description 1.0 2012/11/08 Pan Liu Initial Version 1.1 2012/11/13 Pan Liu Update iwpriv command 1.2 2012/12/11 Pan Liu Add NoForwardingMBCast 1.3 2013/01/04 Pan Liu Add VHT_BW and VhtBW 1.4 2013/1/14 Pan Liu Update Apclient WPS command sample 1.5 2013/1/22 Pan Liu Add FAQ- FixTxMode iwpriv command sample 1.6 2013/1/23 Pan Liu Add new DAT item VHT_DisallowNonVHT and SingleSKU.dat sample. 1.7 2013/3/6 Pan Liu Add MAC Repeater section 1.8 2013/3/8 Pan Liu Add command and profile, DFS debug example 1.9 2013/3/13 Pan Liu Add Singlesku.dat example update 2.0 2013/3/15 Pan Liu Add IgmpAdd1, WPS command and NEW BSSID Mode MAC address limitation. Update BGProtection 2.1 2013/3/27 Pan Liu Add EfuseUploadToHost 2.2 2013/3/28 Pan Liu Add FAQ for TX/RX unbalance issue. 2.3 2013/4/23 Pan Liu Add iNIC system address configuration for WLAN profile support 2.4 2013/4/23 Pan Liu Add iwpriv command AP2040Rescan, WLAN profile updates 2.5 2013/5/27 Pan Liu Add WLAN profile and iwpriv parameters for VHT support. 2.6 2013/6/20 Pan Liu 5G and 2.4G sample profile and DFS Update WirelessMode=15, correct NoForwardingMBCast, Add AutoChannelSkipList 2013/7/4 Pan Liu Add WLAN profile “EtherTrafficBand” 2.8 2013/7/26 Pan Liu Add iNIC only profile and iwpriv command 2.9 2013/8/23 Pan Liu Add iNIC only profile IsolateCard, EnhanceMultiClient, and BGMultiClient. 3.0 2013/8/29 Pan Liu Add iwpriv command fpga_on, dataphy, databw, databasize, datagi, dataldpc for vht mode data rate setting. 3.1 2013/9/03 Pan Liu Correct TYPO on DisConnectAllSta 3.2 2013/10/03 Pan Liu Add VHT MCS table in Q&A 3.3 2013/11/20 Pan Liu Update Multiple Radiu server usage 3.4 2014/01/08 Pan Liu Add iNIC only new profile parameters 3.5 2014/01/20 Pan Liu Update iwpriv commands and APClient command example 3.6 2014/02/11 Pan Liu Add note for WpaMixPairCipher 3.7 2014/02/27 Pan Liu Add iwpriv command ApCliAutoConnect and update SiteSurvey 3.8 2014/03/07 Pan Liu Remove RadioOn from profile SoftAP is not support this option 3.9 2014/03/07 Pan Liu Add iNIC profile TX&RTS retry counter and EDCCA profile 4.0 2014/04/01 Pan Liu Update BADeline, datamcs and FixTxMode iwpriv command samples 4.1 2014/05/29 Hughes Kang FO 2.7 MediaTek Confidential Add EDCCA testing © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 2 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use FO 4.2 2014/07/01 MediaTek Confidential Hughes Kang Add HT_PROTECT, BASetup, BAOriTearDown, BARecTearDown, HT_TxStream, HT_RxStream, HtTxStream, HtRxStream, EntryLifeCheck, WAPI related parameters, WscStop © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 3 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Table of Contents Document Revision History.................................................................................................................. 2 Table of Contents .................................................................................................................................. 4 1 Introduction ................................................................................................................................ 16 2 Wi-Fi SoftAP driver Profile Default Setting ............................................................................. 17 FO 2.1 WLAN Profile Description .................................................................................................. 19 2.1.1 CountryRegion ................................................................................................... 19 2.1.2 CountryRegionForABand................................................................................... 20 2.1.3 CountryCode ...................................................................................................... 20 2.1.4 ChannelGeography ............................................................................................ 20 2.1.5 BssidNum........................................................................................................... 21 2.1.6 SSID................................................................................................................... 21 2.1.7 SSID1................................................................................................................. 21 2.1.8 SSID2................................................................................................................. 21 2.1.9 SSID3................................................................................................................. 22 2.1.10 SSID4................................................................................................................. 22 2.1.11 WirelessMode .................................................................................................... 22 2.1.12 Channel.............................................................................................................. 22 2.1.13 BasicRate........................................................................................................... 23 2.1.14 BeaconPeriod .................................................................................................... 23 2.1.15 DtimPeriod ......................................................................................................... 23 2.1.16 TxPower ............................................................................................................. 24 2.1.17 DisableOLBC ..................................................................................................... 24 2.1.18 BGProtection ..................................................................................................... 24 2.1.19 MaxStaNum ....................................................................................................... 24 2.1.20 TxAntenna.......................................................................................................... 24 2.1.21 RxAntenna ......................................................................................................... 25 2.1.22 TxPreamble........................................................................................................ 25 2.1.23 RTSThreshold .................................................................................................... 25 2.1.24 FragThreshold ................................................................................................... 25 2.1.25 TxBurst............................................................................................................... 25 2.1.26 PktAggregate ..................................................................................................... 26 2.1.27 WmmCapable .................................................................................................... 26 2.1.28 APSDCapable .................................................................................................... 26 2.1.29 DLSCapable ...................................................................................................... 26 2.1.30 APAifsn .............................................................................................................. 26 2.1.31 APCwmin ........................................................................................................... 27 2.1.32 APCwmax .......................................................................................................... 27 2.1.33 APTxop .............................................................................................................. 27 2.1.34 APACM .............................................................................................................. 27 2.1.35 BSSAifsn ............................................................................................................ 28 2.1.36 BSSCwmin ......................................................................................................... 28 MediaTek Confidential © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 4 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.37 2.1.38 2.1.39 2.1.40 2.1.41 2.1.42 2.1.43 2.1.44 2.1.45 2.1.46 2.1.47 2.1.48 2.1.49 2.1.50 2.1.51 2.1.52 2.1.53 2.1.54 2.1.55 2.1.56 2.1.57 2.1.58 2.1.59 2.1.60 2.1.61 2.1.62 2.1.63 2.1.64 2.1.65 2.1.66 2.1.67 2.1.68 2.1.69 2.1.70 2.1.71 2.1.72 2.1.73 2.1.74 2.1.75 2.1.76 2.1.77 2.1.78 2.1.79 2.1.80 2.1.81 MediaTek Confidential BSSCwmax ........................................................................................................ 28 BSSTxop ............................................................................................................ 28 BSSACM ............................................................................................................ 29 AckPolicy ........................................................................................................... 29 NoForwarding .................................................................................................... 29 NoForwardingBTNBSSID .................................................................................. 29 NoForwardingMBCast ....................................................................................... 29 HideSSID ........................................................................................................... 30 StationKeepAlive ............................................................................................... 30 ShortSlot ............................................................................................................ 30 AutoChannelSelect ............................................................................................ 30 IEEE8021X ........................................................................................................ 31 IEEE80211H ...................................................................................................... 31 CSPeriod............................................................................................................ 31 WirelessEvent .................................................................................................... 31 IdsEnable ........................................................................................................... 31 AuthFloodThreshold .......................................................................................... 32 ReassocReqFloodThreshold ............................................................................. 32 ProbeReqFloodThreshold=32 ........................................................................... 32 DisassocFloodThreshold ................................................................................... 32 DeauthFloodThreshold ...................................................................................... 32 EapReqFooldThreshold ..................................................................................... 33 PreAuth .............................................................................................................. 33 AuthMode........................................................................................................... 33 EncrypType ........................................................................................................ 33 RekeyInterval ..................................................................................................... 34 RekeyMethod ..................................................................................................... 34 PMKCachePeriod .............................................................................................. 34 WPAPSK............................................................................................................ 34 DefaultKeyID ...................................................................................................... 34 Key1Type ........................................................................................................... 35 Key1Str .............................................................................................................. 35 Key2Type ........................................................................................................... 35 Key2Str .............................................................................................................. 35 Key3Type ........................................................................................................... 35 Key3Str .............................................................................................................. 36 Key4Type ........................................................................................................... 36 Key4Str .............................................................................................................. 36 AccessPolicy0 .................................................................................................... 36 AccessControlList0 ............................................................................................ 36 AccessPolicy1 .................................................................................................... 37 AccessControlList1 ............................................................................................ 37 AccessPolicy2 .................................................................................................... 37 AccessControlList2 ............................................................................................ 37 AccessPolicy3 .................................................................................................... 38 © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 5 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.82 2.1.83 2.1.84 2.1.85 2.1.86 2.1.87 2.1.88 2.1.89 2.1.90 2.1.91 2.1.92 2.1.93 2.1.94 2.1.95 2.1.96 2.1.97 2.1.98 2.1.99 2.1.100 2.1.101 2.1.102 2.1.103 2.1.104 2.1.105 2.1.106 2.1.107 2.1.108 2.1.109 2.1.110 2.1.111 2.1.112 2.1.113 2.1.114 2.1.115 2.1.116 2.1.117 2.1.118 2.1.119 2.1.120 2.1.121 2.1.122 2.1.123 2.1.124 2.1.125 2.1.126 MediaTek Confidential AccessControlList3 ............................................................................................ 38 WdsEnable......................................................................................................... 38 WdsEncrypType ................................................................................................ 38 WdsList .............................................................................................................. 39 WdsKey.............................................................................................................. 39 RADIUS_Server ................................................................................................. 39 RADIUS_Port ..................................................................................................... 40 RADIUS_Key ..................................................................................................... 40 own_ip_addr ...................................................................................................... 40 EAPifname ......................................................................................................... 40 PreAuthifname ................................................................................................... 40 HT_HTC ............................................................................................................. 41 HT_RDG ............................................................................................................ 41 HT_EXTCHA...................................................................................................... 41 HT_LinkAdapt .................................................................................................... 41 HT_OpMode ...................................................................................................... 41 HT_MpduDensity ............................................................................................... 42 HT_BW .............................................................................................................. 42 HT_PROTECT ................................................................................................... 42 HT_TxStream .................................................................................................... 42 HT_RxStream .................................................................................................... 43 VHT_BW ............................................................................................................ 43 VHT_STBC ........................................................................................................ 43 VHT_BW_SIGNAL ............................................................................................. 43 VHT_LDPC ........................................................................................................ 44 VHT_DisallowNonVHT ...................................................................................... 44 HT_BADecline ................................................................................................... 44 HT_AutoBA ........................................................................................................ 44 HT_AMSDU ....................................................................................................... 44 HT_BAWinSize .................................................................................................. 45 HT_GI ................................................................................................................ 45 HT_MCS ............................................................................................................ 45 HT_MIMOPSMode ............................................................................................ 45 HT_DisallowTKIP ............................................................................................... 45 HT_STBC........................................................................................................... 46 WscManufacturer ............................................................................................... 46 WscModelName ................................................................................................ 46 WscDeviceName ............................................................................................... 46 WscModelNumber ............................................................................................. 46 WscSerialNumber .............................................................................................. 47 Wsc4digitPinCode ............................................................................................. 47 MACRepeaterEn ................................................................................................ 47 PMFMFPC ......................................................................................................... 47 PMFMFPR ......................................................................................................... 47 PMFSHA256 ...................................................................................................... 48 © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 6 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.127 2.1.128 2.1.129 2.1.130 2.1.131 2.1.132 2.1.133 2.1.134 2.1.135 2.1.136 2.1.137 2.1.138 2.1.139 2.1.140 2.1.141 2.1.142 2.1.143 2.1.144 2.1.145 2.1.146 2.1.147 2.1.148 2.1.149 2.1.150 2.1.151 2.1.152 2.1.153 2.1.154 2.1.155 2.1.156 2.1.157 2.1.158 2.1.159 2.1.160 2.1.161 2.1.162 2.1.163 2.1.164 2.1.165 2.1.166 FO 3 VLANID .............................................................................................................. 48 VLANPriority ...................................................................................................... 48 Ext_LNA ............................................................................................................. 48 Ext_PA ............................................................................................................... 48 ExtEEPROM ...................................................................................................... 49 Mem ................................................................................................................... 49 IgmpAdd1........................................................................................................... 49 E2pAccessMode ................................................................................................ 49 AutoChannelSkipList ......................................................................................... 50 EntryLifeCheck .................................................................................................. 50 EtherTrafficBand ................................................................................................ 50 DetectPhy .......................................................................................................... 50 Thermal .............................................................................................................. 51 %s_DfsSwAddCheck%d.................................................................................... 51 IsolateCard......................................................................................................... 52 EnhanceMultiClient ............................................................................................ 52 BGMultiClient ..................................................................................................... 52 RssiDisauth ........................................................................................................ 52 RssiThreshold .................................................................................................... 53 PollingRssiInterval ............................................................................................. 53 TimeExceedRssiThreshold ................................................................................ 53 SiteSurveyRssi .................................................................................................. 54 AssociationInfoEvent ......................................................................................... 54 EDCCA .............................................................................................................. 54 TX_RETRY_NUM .............................................................................................. 54 RTS_RETRY_NUM ........................................................................................... 55 EDCCA_AP_STA_TH........................................................................................ 55 EDCCA_AP_AP_TH .......................................................................................... 55 EDCCA_AP_RSSI_TH ...................................................................................... 55 Wapiifname ........................................................................................................ 55 WapiAsCertPath ................................................................................................ 56 WapiAsIpAddr .................................................................................................... 56 WapiAsPort ........................................................................................................ 56 WapiMskRekeyMethod ...................................................................................... 56 WapiMskRekeyThreshold .................................................................................. 56 WapiPsk1 ........................................................................................................... 57 WapiPskType ..................................................................................................... 57 WapiUserCertPath ............................................................................................. 57 WapiUskRekeyMethod ...................................................................................... 57 WapiUskRekeyThreshold .................................................................................. 57 Wi-Fi SoftAP driver iwpriv command....................................................................................... 58 3.1.1 3.1.2 3.1.3 3.1.4 MediaTek Confidential Debug ................................................................................................................ 58 DriverVersion ..................................................................................................... 58 CountryRegion ................................................................................................... 58 CountryRegionABand ........................................................................................ 59 © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 7 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.20 3.1.21 3.1.22 3.1.23 3.1.24 3.1.25 3.1.26 3.1.27 3.1.28 3.1.29 3.1.30 3.1.31 3.1.32 3.1.33 3.1.34 3.1.35 3.1.36 3.1.37 3.1.38 3.1.39 3.1.40 3.1.41 3.1.42 3.1.43 3.1.44 3.1.45 3.1.46 3.1.47 3.1.48 3.1.49 MediaTek Confidential CountryCode ...................................................................................................... 59 AccessPolicy ...................................................................................................... 59 ResetCounter ..................................................................................................... 60 SiteSurvey.......................................................................................................... 60 CountryString ..................................................................................................... 60 SSID................................................................................................................... 62 WirelessMode .................................................................................................... 62 FixedTxMode ..................................................................................................... 63 OFDMBasicRate ................................................................................................ 63 Channel.............................................................................................................. 63 BeaconPeriod .................................................................................................... 64 DtimPeriod ......................................................................................................... 64 TxPower ............................................................................................................. 64 BGProtection ..................................................................................................... 64 DisableOLBC ..................................................................................................... 64 TxPreamble........................................................................................................ 65 RTSThreshold .................................................................................................... 65 FragThreshold ................................................................................................... 65 TxBurst............................................................................................................... 65 PktAggregate ..................................................................................................... 65 NoForwarding .................................................................................................... 66 NoForwardingBTNBSSID .................................................................................. 66 NoForwardingMBCast ....................................................................................... 66 HideSSID ........................................................................................................... 66 ShortSlot ............................................................................................................ 66 DisConnectSta ................................................................................................... 67 DisConnectAllSta ............................................................................................... 67 McastPhyMode .................................................................................................. 67 McastMcs ........................................................................................................... 67 WscVendorPinCode .......................................................................................... 67 ACLAddEntry ..................................................................................................... 68 ACLClearAll ....................................................................................................... 68 FixedTxMode ..................................................................................................... 68 WpaMixPairCipher ............................................................................................. 68 MaxStaNum ....................................................................................................... 69 AutoFallBack ...................................................................................................... 69 ApCliTxMode ..................................................................................................... 69 ApCliTxMcs ........................................................................................................ 69 ApCliAutoConnect ............................................................................................. 70 GreenAP ............................................................................................................ 70 AutoChannelSel ................................................................................................. 70 ACSCheckTime ................................................................................................. 70 MBSSWirelessMode .......................................................................................... 70 HwAntDiv ........................................................................................................... 71 HtBw .................................................................................................................. 71 © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 8 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.50 3.1.51 3.1.52 3.1.53 3.1.54 3.1.55 3.1.56 3.1.57 3.1.58 3.1.59 3.1.60 3.1.61 3.1.62 3.1.63 3.1.64 3.1.65 3.1.66 3.1.67 3.1.68 3.1.69 3.1.70 3.1.71 3.1.72 3.1.73 3.1.74 3.1.75 3.1.76 3.1.77 3.1.78 3.1.79 3.1.80 3.1.81 3.1.82 3.1.83 3.1.84 3.1.85 3.1.86 3.1.87 3.1.88 3.1.89 3.1.90 3.1.91 3.1.92 3.1.93 3.1.94 MediaTek Confidential VhtBw................................................................................................................. 71 VhtStbc .............................................................................................................. 72 VhtBwSignal ...................................................................................................... 72 VhtDisallowNonVHT .......................................................................................... 72 HtMcs ................................................................................................................. 72 HtGi .................................................................................................................... 73 HtOpMode.......................................................................................................... 73 HtStbc ................................................................................................................ 73 HtExtcha ............................................................................................................ 74 HtMpduDensity .................................................................................................. 74 HtBaWinSize ...................................................................................................... 74 HtTxBASize........................................................................................................ 74 HtRdg ................................................................................................................. 75 HtAmsdu ............................................................................................................ 75 HtAutoBa............................................................................................................ 75 BADecline .......................................................................................................... 75 HtProtect ............................................................................................................ 75 HtMimoPs .......................................................................................................... 76 HtDisallowTKIP .................................................................................................. 76 AP2040Rescan .................................................................................................. 76 HtBssCoex ......................................................................................................... 76 HtTxStream ........................................................................................................ 76 HtRxStream ....................................................................................................... 77 BASetup ............................................................................................................. 77 BAOriTearDown ................................................................................................. 77 BARecTearDown ............................................................................................... 77 PktAggregate ..................................................................................................... 77 WmmCapable .................................................................................................... 78 IEEE80211H ...................................................................................................... 78 AuthMode........................................................................................................... 78 EncrypType ........................................................................................................ 78 DefaultKeyID ...................................................................................................... 79 Key1 ................................................................................................................... 79 Key2 ................................................................................................................... 79 Key3 ................................................................................................................... 79 Key4 ................................................................................................................... 79 WPAPSK............................................................................................................ 80 ResetCounter ..................................................................................................... 80 MACRepeaterEn ................................................................................................ 80 PMFMFPC ......................................................................................................... 80 PMFMFPR ......................................................................................................... 80 SHA256.............................................................................................................. 81 WDSVLANID...................................................................................................... 81 WDSVLANPriority .............................................................................................. 81 ApCliVLANID ..................................................................................................... 81 © 2014 MediaTek Inc. This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. Page 9 of 187 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.95 3.1.96 3.1.97 3.1.98 3.1.99 3.1.100 3.1.101 3.1.102 3.1.103 3.1.104 3.1.105 3.1.106 3.1.107 3.1.108 3.1.109 3.1.110 4 ApCliVLANPriority .............................................................................................. 81 QAEnable........................................................................................................... 82 Console .............................................................................................................. 82 EfuseUploadToHost........................................................................................... 82 tpc ...................................................................................................................... 82 DfsSwAddCheck ................................................................................................ 82 DfsSwDelCheck ................................................................................................. 83 fpga_on .............................................................................................................. 83 dataphy .............................................................................................................. 83 databw ............................................................................................................... 84 datamcs ............................................................................................................. 84 databasize.......................................................................................................... 85 databgi ............................................................................................................... 85 dataldpc ............................................................................................................. 85 KickStaRssiLow ................................................................................................. 86 AssocReqRssiThres .......................................................................................... 86 iwpriv ra0 usage ......................................................................................................................... 87 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 get_site_survey .................................................................................................................. 87 get_mac_table.................................................................................................................... 87 get_wsc_profile .................................................................................................................. 87 get_ba_table ...................................................................................................................... 87 stat...................................................................................................................................... 87 bbp (Debug only)................................................................................................................ 88 mac (Debug only) ............................................................................................................... 88 rf (Debug only) ................................................................................................................... 88 e2p (Debug only)................................................................................................................ 88 5 iwpriv ra0 show command ........................................................................................................ 90 6 WPS Wi-Fi PROTECTED SETUP............................................................................................... 91 6.1 FO 6.2 WPS Profile settings .......................................................................................................... 91 6.1.1 WscConfMode ................................................................................................... 91 6.1.2 WscConfStatus .................................................................................................. 92 6.1.3 WscConfMethods .............................................................................................. 92 6.1.4 WscKeyASCII .................................................................................................... 92 6.1.5 WscSecurityMode .............................................................................................. 92 6.1.6 WscDefaultSSID0 .............................................................................................. 93 6.1.7 WscV2Support ................................................................................................... 93 WPS iwpriv command ........................................................................................................ 93 6.2.1 WscConfMode ................................................................................................... 93 6.2.2 WscConfStatus .................................................................................................. 93 6.2.3 WscMode ........................................................................................................... 94 6.2.4 WscStatus .......................................................................................................... 94 6.2.5 WscPinCode ...................................................................................................... 95 6.2.6 WscOOB ............................................................................................................ 95 6.2.7 WscGetConf....................................................................................................... 95 MediaTek Confidential © 2014 MediaTek Inc. Page 10 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.3 6.4 6.5 6.6 7 WMM PARAMETERS ............................................................................................................... 112 7.1 7.2 7.3 7.4 FO 8 6.2.8 WscGenPinCode ............................................................................................... 95 6.2.9 WscVendorPinCode .......................................................................................... 96 6.2.10 WscSecurityMode .............................................................................................. 96 6.2.11 WscMultiByteCheck ........................................................................................... 96 6.2.12 WscVersion ........................................................................................................ 96 6.2.13 WscVersion2 ...................................................................................................... 96 6.2.14 WscV2Support ................................................................................................... 97 6.2.15 WscFragment .................................................................................................... 97 6.2.16 WscFragmentSize ............................................................................................. 97 6.2.17 WscSetupLock ................................................................................................... 97 6.2.18 WscSetupLockTime ........................................................................................... 97 6.2.19 WscMaxPinAttack .............................................................................................. 98 6.2.20 WscExtraTlvTag ................................................................................................ 98 6.2.21 WscExtraTlvType ............................................................................................... 98 6.2.22 WscExtraTlvData ............................................................................................... 98 6.2.23 WscStop............................................................................................................. 98 6.2.24 WPS iwpriv command example ......................................................................... 99 WPS AP Setup Procedure ............................................................................................... 100 6.3.1 Running the WPS command-line application .................................................. 100 6.3.2 Initial AP setup with Registrar Configuring AP (EAP/UPnP) ........................... 101 6.3.3 Adding an Enrollee to AP+Registrar (EAP) ..................................................... 102 6.3.4 Adding an Enrollee with Eternal Registrar (UPnP/EAP).................................. 102 6.3.5 WPS Config status ........................................................................................... 103 Basic operation of Ralink WPS AP .................................................................................. 104 6.4.1 Configure APUT using PIN method through a WLAN external Registrar ....... 104 6.4.2 Configure APUT using PIN method through a wired external registrar ........... 104 6.4.3 Add devices using external Registrars ............................................................ 109 6.4.4 How to know WPS AP services as Internal Registrar, Enrollee or Proxy ....... 109 6.4.5 How to know WPS AP PinCode ...................................................................... 109 6.4.6 Notes for WPS ................................................................................................. 109 6.4.7 Compile flag for WPS AP................................................................................. 109 6.4.8 WPS related Document ................................................................................... 109 UPNP Daemon HOWTO.................................................................................................. 110 6.5.1 Build WPS UPnP Daemon............................................................................... 110 WPS Command & OID Example ..................................................................................... 111 6.6.1 Iwpriv command without argument .................................................................. 111 Setting Parameters .......................................................................................................... 112 How to Run WMM test ..................................................................................................... 112 WMM “The Ack” ............................................................................................................... 113 Access Precedence and Outgoing Frame Classification ................................................. 114 IEEE802.11h+d ......................................................................................................................... 116 8.1 8.2 IEEE802.11d .................................................................................................................... 116 IEEE802.11h .................................................................................................................... 116 MediaTek Confidential © 2014 MediaTek Inc. Page 11 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 9 SECURITY POLICY .................................................................................................................. 118 9.1 9.2 9.3 10 Authenticator............................................................................................................................ 120 10.1 10.2 10.3 10.4 10.5 10.6 FO 11 All possible combinations of security policy ..................................................................... 118 WP2 Setting ..................................................................................................................... 118 Examples ......................................................................................................................... 118 9.3.1 OPEN/NONE ................................................................................................... 118 9.3.2 SHARED/WEP ................................................................................................. 119 9.3.3 WPAPSK/TKIP ................................................................................................ 119 9.3.4 WPAPSK/AES ................................................................................................. 119 I EEE 802.1X features in rt2860apd ................................................................................ 120 How to start rt2860apd ..................................................................................................... 120 rt2860apd configuration for IEEE 802.1X ........................................................................ 120 Support Multiple RADIUS Servers ................................................................................... 121 Enhance dynamic wep keying ......................................................................................... 122 Examples for Radius server configuration ....................................................................... 122 10.6.1 Example I ......................................................................................................... 122 10.6.2 Example II ........................................................................................................ 123 10.6.3 Example III ....................................................................................................... 123 10.6.4 Example V........................................................................................................ 123 AP CLIENT ................................................................................................................................ 124 11.1 Setup AP Client ................................................................................................................ 125 11.2 Support Parameters in RT2860AP.dat ............................................................................ 125 11.2.1 ApCliEnable ..................................................................................................... 125 11.2.2 ApCliSsid ......................................................................................................... 125 11.2.3 ApCliBssid........................................................................................................ 125 11.2.4 ApCliWPAPSK ................................................................................................. 126 11.2.5 ApCliAuthMode ................................................................................................ 126 11.2.6 ApCliEncrypType ............................................................................................. 126 11.2.7 ApCliDefaultKeyID ........................................................................................... 126 11.2.8 ApCliKey1Type ................................................................................................ 127 11.2.9 ApCliKey1Str ................................................................................................... 127 11.2.10 ApCliKey1Type ................................................................................................ 127 11.2.11 ApCliKey2Str ................................................................................................... 127 11.2.12 ApCliKey2Type ................................................................................................ 127 11.2.13 ApCliKey3Str ................................................................................................... 128 11.2.14 ApCliKey4Type ................................................................................................ 128 11.2.15 ApCliKey4Str ................................................................................................... 128 11.2.16 ApCliTxMode ................................................................................................... 128 11.2.17 ApCliTxMcs ...................................................................................................... 128 11.2.18 ApCliWscSsid .................................................................................................. 129 11.3 AP Client iwpriv command ............................................................................................... 129 11.3.1 ApCliEnable ..................................................................................................... 129 11.3.2 ApCliSsid ......................................................................................................... 129 11.3.3 ApCliBssid........................................................................................................ 129 MediaTek Confidential © 2014 MediaTek Inc. Page 12 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.3.4 ApCliWPAPSK ................................................................................................. 129 11.3.5 ApCliAuthMode ................................................................................................ 130 11.3.6 ApCliEncrypType ............................................................................................. 130 11.3.7 ApCliWscSsid .................................................................................................. 130 11.3.8 ApCliDefaultKeyID ........................................................................................... 130 11.3.9 ApCliKey1Type ................................................................................................ 131 11.3.10 ApCliKey1Str ................................................................................................... 131 11.3.11 ApCliKey1Type ................................................................................................ 131 11.3.12 ApCliKey2Str ................................................................................................... 131 11.3.13 ApCliKey2Type ................................................................................................ 131 11.3.14 ApCliKey3Str ................................................................................................... 132 11.3.15 ApCliKey4Type ................................................................................................ 132 11.3.16 ApCliKey4Str ................................................................................................... 132 11.4 AP Client Examples ......................................................................................................... 132 11.4.1 Enable AP Client with OPEN/NONE data security .......................................... 132 11.4.2 Enable AP Client with OPEN/WEP security .................................................... 132 11.4.3 Enable AP Client with SHARED/WEP security ............................................... 133 11.4.4 Enable AP Client with WPAPSK/TKIP security ............................................... 133 11.4.5 Enable AP Client with WPAPSK/AES security ................................................ 133 11.4.6 AP Client WPS sample command ................................................................... 133 12 WDS ........................................................................................................................................... 134 12.1 HOW to Steup WDS......................................................................................................... 134 12.2 WDS Individual Encryption .............................................................................................. 134 12.3 Supported Paramters in RT2860AP.dat .......................................................................... 135 12.3.1 WdsEnable....................................................................................................... 135 12.3.2 WdsList ............................................................................................................ 135 12.3.3 WdsEncrypType .............................................................................................. 135 12.3.4 WdsKey............................................................................................................ 136 12.3.5 Wds0Key.......................................................................................................... 136 12.3.6 Wds1Key.......................................................................................................... 136 12.3.7 Wds2Key.......................................................................................................... 137 12.3.8 Wds3Key.......................................................................................................... 137 12.3.9 WdsDefaultKeyID ............................................................................................ 137 12.3.10 WdsPhyMode .................................................................................................. 137 12.3.11 WdsTxMcs ....................................................................................................... 138 12.3.12 WdsTxMode ..................................................................................................... 138 FO 13 IGMP SNOOPING ..................................................................................................................... 139 13.1 IMGP Table Learning ....................................................................................................... 139 13.2 Multicast Packet Process ................................................................................................. 139 13.3 IGMP SNOOPING in RT2860.dat support ....................................................................... 140 13.3.1 IgmpSnEnable ................................................................................................. 140 13.4 Iwpriv command for IGMP SNOOPING ........................................................................... 140 13.4.1 IgmpSnEnable ................................................................................................. 140 13.4.2 IgmpAdd........................................................................................................... 140 MediaTek Confidential © 2014 MediaTek Inc. Page 13 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 13.4.3 14 IgmpDel............................................................................................................ 141 MAC Repeater .......................................................................................................................... 142 14.1 MAC Repeater Management Flow................................................................................... 143 14.2 MAC Repeater Data Flow ................................................................................................ 144 14.2.1 Unicast Data Flow............................................................................................ 144 14.2.2 Multicast / Broadcast Data Flow ...................................................................... 144 14.3 MAC Repeater Limitation ................................................................................................. 145 14.4 MAC Repeater Example command ................................................................................. 145 14.4.1 MAC Repeater by Wi-Fi Profile:....................................................................... 145 14.4.2 MAC Repeater by Wi-Fi command: ................................................................. 145 15 Multiple BSSID Setup .............................................................................................................. 146 16 Concurrent A+G Settings ........................................................................................................ 148 17 SNMP MIBs Support List ......................................................................................................... 149 17.1 RT2860AP Supported v.s. IEEE802dot11-MIB ............................................................... 149 17.2 RALINK OID for SNMP MIB ............................................................................................. 155 18 IOCTL I/O Control Interface .................................................................................................... 157 18.1 Parameters for iwconfig’s IOCTL ..................................................................................... 157 18.2 Parameters for iwpriv’s IOCTL ......................................................................................... 158 18.2.1 Iwpriv Set DATA .............................................................................................. 158 18.2.2 Iwpriv Get DATA .............................................................................................. 158 18.2.3 Iwpriv Set Data: BBP, MAC and EEPROM ..................................................... 160 18.2.4 Iwpriv Get Data: BBP, MAC and EEPROM ..................................................... 160 18.2.5 Iwpriv Set Raw Data ........................................................................................ 161 18.2.6 Set Raw Data with Flags ................................................................................. 162 18.2.7 Get Raw Data with Flags ................................................................................. 162 18.3 Sample user space Applications ...................................................................................... 164 19 SingleSKU Example file (New feature for MT76XX).............................................................. 176 19.1 2.4GHz example SingleSKU.dat ...................................................................................... 176 19.2 5GHz example SingleSKU.dat ......................................................................................... 176 20 EDCCA testing ......................................................................................................................... 178 20.1 Before EDCCA testing check and BBP R61 fine tune during EDCCA testing ................ 178 FO 21 Q&A ........................................................................................................................................... 179 21.1 Why WPAPSK can not work? .......................................................................................... 179 21.2 How to switch driver to operate in A band? ..................................................................... 179 21.3 When I set channel as 1, but it will appear in channel 3. Why? ...................................... 179 21.4 How can I know the version of the WLAN Driver? ........................................................... 179 21.5 Can SoftAP support Antenna diversity? .......................................................................... 179 21.6 Can you tell me what is 11n Bit Rate Derivation? ............................................................ 179 21.7 FixTxMode iwpriv command samples .............................................................................. 181 21.8 DFS Test example ........................................................................................................... 183 21.9 New BSSID Mode MAC Address Limitation (for RT55XX/RT53XX series)..................... 184 21.10 TX & RX performance is always unbalance .................................................................... 184 MediaTek Confidential © 2014 MediaTek Inc. Page 14 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use FO 21.11 VHT MCS Table ............................................................................................................... 185 MediaTek Confidential © 2014 MediaTek Inc. Page 15 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1 Introduction FO This document is the Software programming guide for Mediatek Wi-Fi SoftAP driver. The Software Programming guide covers profile setting, command list, and OID examples to demonstrate how to programming the WLAN driver. MediaTek Confidential © 2014 MediaTek Inc. Page 16 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2 Wi-Fi SoftAP driver Profile Default Setting #The word of "Default" must not be removed Default CountryRegion=5 CountryRegionABand=7 CountryCode=TW BssidNum=1 SSID=RT2860AP WirelessMode=9 TxRate=0 Channel=11 BasicRate=15 BeaconPeriod=100 DtimPeriod=1 TxPower=100 DisableOLBC=0 BGProtection=0 TxAntenna= RxAntenna= TxPreamble=0 RTSThreshold=2347 FragThreshold=2346 TxBurst=1 PktAggregate=0 TurboRate=0 WmmCapable=0 APSDCapable=0 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 FO WirelessEvent=0 IdsEnable=0 MediaTek Confidential © 2014 MediaTek Inc. Page 17 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 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 WPAPSK= DefaultKeyID=1 Key1Type=0 Key1Str= Key2Type=0 Key2Str= Key3Type=0 Key3Str= Key4Type=0 Key4Str= 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=br0 PreAuthifname=br0 HT_HTC=0 HT_RDG=0 HT_EXTCHA=0 HT_LinkAdapt=0 HT_OpMode=0 HT_MpduDensity=5 HT_BW=1 VHT_BW=1 VHT_SGI=1 VHT_STBC=0 VHT_BW_SIGNAL=0 FO VHT_DisallowNonVHT=0 MediaTek Confidential © 2014 MediaTek Inc. Page 18 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use VHT_LDPC= HT_AutoBA=1 HT_AMSDU=0 HT_BAWinSize=64 HT_GI=1 HT_MCS=33 WscManufacturer= WscModelName= WscDeviceName= WscModelNumber= WscSerialNumber= 2.1 WLAN Profile Description Syntax is 'Param'='Value' and describes below. SectionNumber Param Value ... ... ... The WLAN driver needs to be restart, after WLAN profile has been modified. Otherwise settings will not take any effect. A interface down/ up could do that. EX: ifconfig ra0 down ifconfig ra0 up 2.1.1 CountryRegion Description: Country region for WLAN radio 2.4G HZ regulation. Value: CountryRegion=5 FO Region Channels 0 1-11 1 1-13 2 10-11 3 10-13 4 14 5 1-14 6 3-9 7 5-13 31 1-14 32 1-11 active scan, 12 and 13 passive scan 33 1-14 all active scan, 14 b mode only MediaTek Confidential © 2014 MediaTek Inc. Page 19 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.2 CountryRegionForABand Description: Country region for WLAN radio 5G HZ regulation. Value: CountryRegionABand=7 Region Channels 2.1.3 0 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 1 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 2 36, 40, 44, 48, 52, 56, 60, 64 3 52, 56, 60, 64, 149, 153, 157, 161 4 149, 153, 157, 161, 165 5 149, 153, 157, 161 6 36, 40, 44, 48 7 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 8 52, 56, 60, 64 9 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 10 36, 40, 44, 48, 149, 153, 157, 161, 165 11 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 CountryCode Description: County Code for WLAN radio regulation. Value: ( Default is empty) CountryCode= 2 characters, like TW for Taiwan. Please refer to ISO3166 code list for other countries and can be found at http://www.iso.org/iso/prods-services/iso3166ma/02iso-3166-codelists/country_names_and_code_elements Note: 1. This parameter can be set from EEPRM or EFUSE. 2. EEPROM/EFUSE has higher priority than the WLAN Profile. 2.1.4 ChannelGeography FO Description: For Channel list builder Value: ChannelGeography=1 0: Outdoor 1: Indoor MediaTek Confidential © 2014 MediaTek Inc. Page 20 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2: Both 2.1.5 BssidNum Description: multiple BSSID number Value: BssidNum=1 1/2/4/8/16 Note: 1. MAC Address alignment on MBSSID. 1.1. Main BSSID have to insure MAC address is multiple of 2s on 2-BSSIDs’ application. 1.2. Main BSSID have to insure MAC address is multiple of 4s on 4-BSSIDs’ application. 1.3. Main BSSID have to insure MAC address is multiple of 8s on 8-BSSIDs’ application. 2. Example 4 BSSIDs: Align 0x00 0x04 0x08 0x0C st 1 AA-BB-CC-DD-EE-F0 AA-BB-CC-DD-EE-F4 AA-BB-CC-DD-EE-F8 AA-BB-CC-DD-EE-FC 2nd AA-BB-CC-DD-EE-F1 AA-BB-CC-DD-EE-F5 AA-BB-CC-DD-EE-F9 AA-BB-CC-DD-EE-FD rd 3 AA-BB-CC-DD-EE-F2 AA-BB-CC-DD-EE-F6 AA-BB-CC-DD-EE-FA AA-BB-CC-DD-EE-FE 4th AA-BB-CC-DD-EE-F3 AA-BB-CC-DD-EE-F7 AA-BB-CC-DD-EE-FB AA-BB-CC-DD-EE-FF 3. 16 BSSID support only on RT55XX serie chipset and after. 2.1.6 SSID Description: The target BSSID string name Value: SSID=11n-AP 0~z, 1~32 ASCII characters. 2.1.7 SSID1 Description: The target BSSID string name Value: SSID1=11n-AP1 0~z, 1~32 ASCII characters. 2.1.8 SSID2 FO Description: The target BSSID string name Value: SSID2=11n-AP2 MediaTek Confidential © 2014 MediaTek Inc. Page 21 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 0~z, 1~32 ASCII characters. 2.1.9 SSID3 Description: The target BSSID string name Value: SSID3=11n-AP3 0~z, 1~32 ASCII characters. 2.1.10 SSID4 Description: The target BSSID string name Value: SSID4=11n-AP4 0~z, 1~32 ASCII characters. 2.1.11 WirelessMode Description: Wireless Mode Value: WirelessMode=9 0: legacy 11b/g mixed 1: legacy 11B only 2: legacy 11A only 3: legacy 11a/b/g mixed 4: legacy 11G only 5: 11ABGN mixed 6: 11N only 7: 11GN mixed 8: 11AN mixed 9: 11BGN mixed 10: 11AGN mixed 11: 11N only in 5G band only 14: 11A/AN/AC mixed 5G band only (Only 11AC chipset support) 15: 11 AN/AC mixed 5G band only (Only 11AC chipset support) 2.1.12 Channel FO Description: WLAN Radio channel (2.4G Band or 5G band) Value: Channel=0 Depends on CountryRegion or CountryRegionForABand. MediaTek Confidential © 2014 MediaTek Inc. Page 22 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Default value = 0, the driver scan BSSID’s channel automatically. 2.1.13 BasicRate Description: Basic rate support Value: BasicRate=15 0~4095 Note: A bitmap represent basic support rate (A mode not support) 1: Basic rate-1Mbps 2: Basic rate-2Mbps 3: Basic rate-1Mbps, 2Mbps 4: Basic rate-5.5Mbps 15: Basic rate-1Mbps, 2Mbps, 5.5Mbps, 11Mbps Examples: Basic Rate Bit Map (max. 12-bit, represent max. 12 basic rates) Bit 11 10 9 8 7 6 5 4 3 2 1 0 Rate 54 48 36 24 18 12 9 6 11 5.5 2 1 Set 0 1 0 1 0 1 0 1 1 1 1 1 Hex 5 5 F Decimal 1375 Note: Set correct basic rates set before changing wireless mode. 11B/G Mixed, 11B/G/N Mixed, and 11N Only: iwpriv ra0 set BasicRate=15 (0x0F: 1, 2, 5.5, 11 Mbps) 11B: iwpriv ra0 set BasicRate=3 (0x03: 1, 2 Mbps) 11G-Only and 11G/N Mixed: iwpriv ra0 set BasicRate=351 (0x15F: 1, 2, 5.5, 11, 6, 12, 24 Mbps) 2.1.14 BeaconPeriod Description: Beacon period setting (It is SoftAP only) Value: BeaconPeriod=100 2.1.15 DtimPeriod FO Description: DTIM period Value: DtimPeriod=1 1~255 MediaTek Confidential © 2014 MediaTek Inc. Page 23 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.16 TxPower Description: WLAN Radio Transmit Power setting in percentage Value: TxPower=100 0~100 2.1.17 DisableOLBC Description: Enable or disable OLBC (Overlapping Legacy BSS Condition) Value: DisableOLBC=0 0: disable 1: enable 2.1.18 BGProtection Description: Enable/disable WLAN 11B or 11G protection Value: BGProtection=0 0: AUTO 1: On 2: Off 2.1.19 MaxStaNum Description: Configure Maximun numbder of station that could connect with this SoftAP Value: MaxStaNum=0 0: disable 1~32 2.1.20 TxAntenna FO Description: Configure Tx antenna number Value: TxAntenna=1 1: 1Tx1R MediaTek Confidential © 2014 MediaTek Inc. Page 24 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2: 2Tx2R 3: 3Tx3R 2.1.21 RxAntenna Description: Configure Rx antenna number Value: RxAntenna=1 1: 1Tx1R 2: 2Tx2R 3: 3Tx3R 2.1.22 TxPreamble Description: Enable or disable Tx preamble Value: TxPreamble=0 0: disable 1: enable 2.1.23 RTSThreshold Description: Set RTS Threshold Value: RTSThreshold=2347 1~2347 2.1.24 FragThreshold Description: Set Fragment threshold Value: FragThreshold=2346 256~2346 2.1.25 TxBurst FO Description: Enable or disable Tx burst Value: TxBurst=1 MediaTek Confidential © 2014 MediaTek Inc. Page 25 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 0: disable 1: enable 2.1.26 PktAggregate Description: Enable or disable Tx Aggregate Value: PktAggregate=0 0: disable 1: enable 2.1.27 WmmCapable Description: Enable or disable WMM QOS function Value: WmmCapable=1 0: disable 1: enable 2.1.28 APSDCapable Description: Enable or disable WMM APSD function Value: APSDCapable=0 0: disable 1: enable 2.1.29 DLSCapable Description: Enable or disable DLS function (Ralink proprietary function, Ralink 11n STA support only) Value: DLSCapable=0 0: disable 1: enable 2.1.30 APAifsn Description: WMM parameter for AP Value: FO APAifsn=3;7;1;1 MediaTek Confidential © 2014 MediaTek Inc. Page 26 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.31 APCwmin Description: WMM parameter for AP Value: APCwmin=4;4;3;2 AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.32 APCwmax Description: WMM parameter for AP Value: APCwmax=6;10;4;3 AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.33 APTxop Description: WMM parameter for AP Value: APTxop=0;0;94;47 AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.34 APACM Description: WMM parameter for AP Value: APACM=0;0;0;0 AC_BE;AC_BK;AC_VI;AC_VO FO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. MediaTek Confidential © 2014 MediaTek Inc. Page 27 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.35 BSSAifsn Description: WMM parameter for station Value: BSSAifsn=3;7;2;2 AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.36 BSSCwmin Description: WMM parameter for station Value: BSSCwmin=4;4;3;2 AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.37 BSSCwmax Description: WMM parameter for station Value: BSSCwmax=10;10;4;3 AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.38 BSSTxop Description: WMM parameter for station Value: BSSTxop=0;0;94;47 AC_BE;AC_BK;AC_VI;AC_VO FO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. MediaTek Confidential © 2014 MediaTek Inc. Page 28 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.39 BSSACM Description: WMM parameter for station Value: BSSACM=0;0;0;0 AC_BE;AC_BK;AC_VI;AC_VO Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.40 AckPolicy Description: Ack policy supports normal Ack or no Ack (AC_BK, AC_BE, AC_VI, AC_VO) Value: AckPolicy=0;0;0;0 0: No ack 1: normal Ack Note: All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. 2.1.41 NoForwarding Description: enable or disable No forwarding STA packet within the same BSSID Value: NoForwarding=0 0: disable 1: enable 2.1.42 NoForwardingBTNBSSID Description: enable or disable No Forwarding between each BSSID interface. Value: NoForwardingBTNBSSID=0 0: disable 1: enable 2.1.43 NoForwardingMBCast FO Description: enable or disable No Forwarding multicast/broadcast packets between the same BSSID interface. Value: MediaTek Confidential © 2014 MediaTek Inc. Page 29 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use NoForwardingMBCast=0 0: disable 1: enable 2.1.44 HideSSID Description: enable or disable Hidden SSID support Value: HideSSID=0 0: disable 1: enable 2.1.45 StationKeepAlive Description: enable or disable Auto-detect the alive status of the station periodically Value: StationKeepAlive=0 0: disable 1~65535 seconds 2.1.46 ShortSlot Description: enable or disable short slot time Value: ShortSlot=1 0: disable 1: enable 2.1.47 AutoChannelSelect Description: enable or disable Auto Channel Select support Value: AutoChannelSelect=0 FO 0: disable 1: Old Channel Selection Algorithm 2: New Channel Selection Algorithm MediaTek Confidential © 2014 MediaTek Inc. Page 30 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.48 IEEE8021X Description: enable or disable 8021X-WEP mode on, this field is enabled only when -WEP or Radius-NONE mode on, otherwise must disable. Value: IEEE8021X=0 0: disable 1: enable 2.1.49 IEEE80211H Description: enable or disable IEEE 802.11H support (DFS) Value: IEEE80211H=0 0: disable 1: enable 2.1.50 CSPeriod Description: Set how many beacons with Channel Switch Announcement Element will be sent before changing a new channel. Value: CSPeriod=10 0 ~ 255. The default is 10. Note: Channel switch period (Beacon count), unit is based on Beacon interval. 2.1.51 WirelessEvent Description: enable or disable sending wireless event to the system log (Linux only) Value: WirelessEvent=0 0: disable 1: enable 2.1.52 IdsEnable FO Description: enable or disable intrusion detection system Value: IdsEnable=0 0: disable MediaTek Confidential © 2014 MediaTek Inc. Page 31 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1: enable 2.1.53 AuthFloodThreshold Description: enable or disable Authentication frame flood threshold Value: AuthFloodThreshold=32 0: disable 1~65535. (default=32) 2.1.54 ReassocReqFloodThreshold Description: enable or disable Reassocation request frame flood threshold Value: ReassocReqFloodThreshold=32 0: disable 1~65535. (default=32) 2.1.55 ProbeReqFloodThreshold=32 Description: enable or disable Probe request frame flood threshold Value: ProbeReqFloodThreshold=32 0: disable 1~65535. (default=32) 2.1.56 DisassocFloodThreshold Description: enable or disable disassocation frame flood threshold Value: DisassocFloodThreshold=32 0: disable 1~65535. (default=32) 2.1.57 DeauthFloodThreshold FO Description: enable or disable deauthentication frame flood threshold Value: DeauthFloodThreshold=32 MediaTek Confidential © 2014 MediaTek Inc. Page 32 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 0: disable 1~65535. (default=32) 2.1.58 EapReqFooldThreshold Description: enable or disable EAP request frame flood threshold Value: EapReqFooldThreshold=32 0: disable 1~65535. (default=32) 2.1.59 PreAuth Description: enable or disable WPA2 pre-authentication mode Value: PreAuth=0 0: disable 1: enable 2.1.60 AuthMode Description: WLAN security Authentication mode Value: AuthMode=OPEN OPEN SHARED WEPAUTO WPAPSK WPA2PSK WPANONE WPA WPA2 2.1.61 For open system For shared key system Auto switch between OPEN and SHARED For WPA pre-shared key (Infra) For WPA2 pre-shared key (Infra) For WPA pre-shared key (Adhoc) For enterprise mode (Need wpa_supplicant) For enterprise mode (Need wpa_supplicant) EncrypType FO Description: WLAN security Encryption type Value: EncrypType=NONE NONE WEP TKIP AES MediaTek Confidential For AuthMode=OPEN For AuthMode=OPEN or AuthMode=SHARED For AuthMode=WPAPSK or WPA2PSK For AuthMode=WPAPSK or WPA2PSK © 2014 MediaTek Inc. Page 33 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.62 RekeyInterval Description: Set group rekey interval. 0 to disable rekey. Unit:1seconds/1000packets dependent on Rekeytype. Value: RekeyInterval=0 0~0x3FFFFFFF 2.1.63 RekeyMethod Description: Set group rekey interval-unit's type for WPA2. Value: RekeyMethod=DISABLE TIME: Time rekey PKT: Packet rekey DISABLE: Disable rekey 2.1.64 PMKCachePeriod Description: Set the alive time of PMKID in PMK-Cache table for WPA2. Value: PMKCachePeriod=10 0~65535 (unit minutes) 2.1.65 WPAPSK Description: WLAN Security string for (TKIP/AES) Value: WPAPSK= 8~63 ASCII Or 64 HEX characters 2.1.66 DefaultKeyID FO Description: Default key ID Value: DefaultKeyID=1 MediaTek Confidential © 2014 MediaTek Inc. Page 34 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1~4 2.1.67 Key1Type Description: Key 1 type Value: Key1Type=0 0: Hexadecimal type 1: ASCII type 2.1.68 Key1Str Description: Key 1 string Value: Key1Str= 10 or 26 characters (key type=0) 5 or 13 characters (key type=1) 2.1.69 Key2Type Description: Key 2 type Value: Key2Type=0 0: Hexadecimal type 1: ASCII type 2.1.70 Key2Str Description: Key 2 string Value: Key2Str= 10 or 26 characters (key type=0) 5 or 13 characters (key type=1) 2.1.71 Key3Type Description: Key 3 type Value: Key3Type=0 FO 0: Hexadecimal type 1: ASCII type MediaTek Confidential © 2014 MediaTek Inc. Page 35 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.72 Key3Str Description: Key 3 string Value: Key3Str= 10 or 26 characters (key type=0) 5 or 13 characters (key type=1) 2.1.73 Key4Type Description: Key 4 type Value: Key4Type=0 0: Hexadecimal type 1: ASCII type 2.1.74 Key4Str Description: Key 4 string Value: Key4Str= 10 or 26 characters (key type=0) 5 or 13 characters (key type=1) 2.1.75 AccessPolicy0 Description: Set the access policy of ACL table 0. Value: AccessPolicy0=0 0: Disable this function 1: Allow all entries of ACL table to associate AP 2: Reject all entries of ACL table to associate AP 2.1.76 AccessControlList0 Description: Set the entry’s MAC address into ACL table 0. Value: AccessControlList0= FO [Mac Address];[Mac Address];... Example: MediaTek Confidential © 2014 MediaTek Inc. Page 36 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 00:10:20:30:40:50;0A:0b:0c:0D:0e:0f;1a:2b:3c:4d:5e:6f Note: ACL for Bssid0, max=64 2.1.77 AccessPolicy1 Description: Set the access policy of ACL table 1. Value: AccessPolicy1=0 0: Disable this function 1: Allow all entries of ACL table to associate AP 2: Reject all entries of ACL table to associate AP 2.1.78 AccessControlList1 Description: Set the entry’s MAC address into ACL table 1. Value: AccessControlList1= [Mac Address];[Mac Address];... Example: 00:10:20:30:40:50;0A:0b:0c:0D:0e:0f;1a:2b:3c:4d:5e:6f Note: ACL for Bssid0, max=64 2.1.79 AccessPolicy2 Description: Set the access policy of ACL table 2. Value: AccessPolicy2=0 0: Disable this function 1: Allow all entries of ACL table to associate AP 2: Reject all entries of ACL table to associate AP 2.1.80 AccessControlList2 Description: Set the entry’s MAC address into ACL table2. Value: AccessControlList2= FO [Mac Address];[Mac Address];... Example: MediaTek Confidential © 2014 MediaTek Inc. Page 37 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 00:10:20:30:40:50;0A:0b:0c:0D:0e:0f;1a:2b:3c:4d:5e:6f Note: ACL for Bssid0, max=64 2.1.81 AccessPolicy3 Description: Set the access policy of ACL table 3. Value: AccessPolicy3=0 0: Disable this function 1: Allow all entries of ACL table to associate AP 2: Reject all entries of ACL table to associate AP 2.1.82 AccessControlList3 Description: Set the entry’s MAC address into ACL table 3. Value: AccessControlList3= [Mac Address];[Mac Address];... Example: 00:10:20:30:40:50;0A:0b:0c:0D:0e:0f;1a:2b:3c:4d:5e:6f Note: ACL for Bssid0, max=64 2.1.83 WdsEnable Description: config WDS mode Value: WdsEnable=0 0: Disable - Disable all WDS function. 1: Restrict mode - Same as Repeater mode. 2: Bridge mode - Turn on WDS function, the peer WDS APs are according to the mac address listed in "WdsList" field below. In this mode, AP will not send beacon out and will not deal with probe request packets, therefore STA will not possible to connect with it. 3: Repeater mode - Turn on WDS function, the peer WDS APs are according to the mac address listed in "WdsList" field below. 4: Lazy mode - Turn on WDS function, and auto learning from WDS packet which with addr4 field. FO 2.1.84 WdsEncrypType Description: MediaTek Confidential © 2014 MediaTek Inc. Page 38 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Value: WdsEncrypType=NONE NONE WEP TKIP AES For example: WdsEncrypType=OPEN;TKIP;WEP;AES The encrptytion of wds0 is OPEN The encrptytion of wds1 is TKIP The encrptytion of wds2 is WEP The encrptytion of wds3 is AES 2.1.85 WdsList Description: WDS list Value: WdsList= [Mac Address];[Mac Address];... Note: maximum WDS-link is 4. 2.1.86 WdsKey Description: The key for WDS link Value: WdsKey= 10 or 26 hexadecimal characters (ex: 1234567890) for WEP 5 or 13 ASCII characters (ex: 12345) for WEP 8 ~ 63 ASCII characters for TKIP or AES 64 hexadecimal characters for TKIP or AES 2.1.87 RADIUS_Server FO Description: Configure radius server IP address Value: RADIUS_Server= IP address. Example: RADIUS_Server=192.168.2.3 MediaTek Confidential © 2014 MediaTek Inc. Page 39 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.88 RADIUS_Port Description: Configure radius server port number Value: RADIUS_Port=1812 Deafult: 1812 2.1.89 RADIUS_Key Description: Configure radius key string Value: RADIUS_Key= Example: RADIUS_Key=ralink 2.1.90 own_ip_addr Descripion: Configure SoftAP itself IP Address Value: own_ip_addr= Example: own_ip_addr=192.168.1.1 2.1.91 EAPifname Description: EAPifname is assigned as the binding interface for EAP negotiation Value: EAPifname= Example: EAPifname=br0 2.1.92 PreAuthifname Description: PreAuthifname is assigned as the binding interface for WPA2 Preauthentication Value: FO PreAuthifname= Example: MediaTek Confidential © 2014 MediaTek Inc. Page 40 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use PreAuthifname=br0 2.1.93 HT_HTC Description: enable or disable Support the HT control field Value: HT_HTC=0 0: disable 1: enable Note: HTC Control field(4-octet) is following QOS field. An MPDU that contains the HT control field is referred to as a +HTC frame. 2.1.94 HT_RDG Description: Enable or disable HT Reverse Direction Grant Value: HT_RDG=1 0: disable 1: enable 2.1.95 HT_EXTCHA Description: To locate the 40MHz channel in combination with the control Value: HT_EXTCHA=0 0: Below 1: Above 2.1.96 HT_LinkAdapt Decription: enable ir disable HT Link Adaptation Control Value: HT_LinkAdapt=0 0: disable 1: enable 2.1.97 HT_OpMode FO Description: HT operation mode MediaTek Confidential © 2014 MediaTek Inc. Page 41 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Value: HT_OpMode=0 0: HT mixed mode 1: HT Greenfield mode 2.1.98 HT_MpduDensity Description: Minimum separation of MPDUs in an A-MPDU Value: HT_MpduDensity=4 0~7 0: no restriction 1: 1/4 µs 2: 1/2 µs 3: 1 µs 4: 2 µs 5: 4 µs 6: 8 µs 7: 16 µs 2.1.99 HT_BW Description: HT channel Bandwidth Value: HT_BW=1 0: 20 MHz 1: 40 MHz 2.1.100 HT_PROTECT Description: Enable/Disable 802.11n protection mechanism. Value: HT_PROTECT=1 0: Disable 1: Enable Deafult set as 1 2.1.101 HT_TxStream FO Description: Set the number of spatial streams for transmission. Value: MediaTek Confidential © 2014 MediaTek Inc. Page 42 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use HT_TxStream=1/2/3 1~3: valid spatial streams 2.1.102 HT_RxStream Description: Set the number of spatial streams for reception. Value: HT_RxStream=1/2/3 1~3: valid spatial streams 2.1.103 VHT_BW Description: Enable/disable 11AC 80MHz Bandwidth Support Value: VHT_BW=1 0: disable 1: enable Note: 11AC chipset only. 2.1.104 VHT_STBC Description: Enable/disable 11AC STBC Support Value: VHT_STBC=1 0: disable 1: enable Note: 11AC chipset only 2.1.105 VHT_BW_SIGNAL Description: Enable/disable 11 AC BandWidth signaling Value: VHT_BW_SIGNAL=1 FO 0: disable 1: enable Note: 11AC chipset only. MediaTek Confidential © 2014 MediaTek Inc. Page 43 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.106 VHT_LDPC Description: Enable/disable to indicate support receiving 11AC LDPC coded packets Value: VHT_LDPC=1 0: disable 1: enable Note: 11AC chipset only. 2.1.107 VHT_DisallowNonVHT Description: Enable/disable to reject non-VHT STA to connect Value: VHT_DisallowNonVHT=1 0: disable 1: enable to reject non-VHT STA Note: 11AC chipset only. 2.1.108 HT_BADecline Description: Enable or disable decline Block Ack to peer Value: HT_BADecline=0 0: disable 1: enable 2.1.109 HT_AutoBA Description: Enable or disable auto build Block Ack section with peer Value: HT_AutoBA=1 0: disable 1: enable 2.1.110 HT_AMSDU FO Description: Enable or disable AMSDU section Value: HT_AMSDU=0 0: disable MediaTek Confidential © 2014 MediaTek Inc. Page 44 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1: enable 2.1.111 HT_BAWinSize Description: Block Ack window size Value: HT_BAWinSize=64 1~64 2.1.112 HT_GI Description: HT Guard interval support Value: HT_GI=1 0: Long guard interval 1: short guard interval 2.1.113 HT_MCS Description: WLAN Modulation and Coding Scheme (MCS) Value: HT_MCS=33 0 ~15, 32: Fix MCS rate for HT rate. 33: Auto Rate Adaption, recommended 2.1.114 HT_MIMOPSMode Description: 802.11n SM power save mode Value: HT_MIMOPSMode=3 0: Static SM Power Save Mode 2: Reserved 1: Dynamic SM Power Save Mode 3: SM enabled (not fully support yet) 2.1.115 HT_DisallowTKIP FO Description: Enable or disable 11N rate with 11N AP when cipher is TKIP or WEP MediaTek Confidential © 2014 MediaTek Inc. Page 45 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Value: HT_DisallowTKIP=1 0: disable 1: enable 2.1.116 HT_STBC Description: Enable or disable HT STBC support Value: HT_STBC=0 0: disable 1: enable 2.1.117 WscManufacturer Description: WPS manufacturer string Value: WscManufacturer= Less than 64 characters 2.1.118 WscModelName Description: WPS Mode name string Value: WscModelName= Less than 32 characters 2.1.119 WscDeviceName Description: WPS Device name string Value: WscDeviceName= Less than 32 characters 2.1.120 WscModelNumber FO Description: WPS Device model number string Value: MediaTek Confidential © 2014 MediaTek Inc. Page 46 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use WscModelNumber= Less than 32 characters 2.1.121 WscSerialNumber Description: WPS serial number string Value: WscSerialNumber= Less than 32 characters 2.1.122 Wsc4digitPinCode Description: WPS 4 digit pin code string Value: Wsc4digitPinCode=0 4 digit 2.1.123 MACRepeaterEn Description: Enable or disable new MAC Repeater function. Value: MACRepeaterEn=0 0: Disable 1: Enable 2.1.124 PMFMFPC Description: Disable or enable Protection Management Frame Capable Value: PMFMFPC=0 0: Disable 1: Enable 2.1.125 PMFMFPR FO Description: Disable or enable Protection Management Frame Required Value: PMFMFPR=0 0: Disable MediaTek Confidential © 2014 MediaTek Inc. Page 47 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1: Enable 2.1.126 PMFSHA256 Description: Disable or enable use SHA256 for Encryption Value: PMFSHA256=0 0: Disable 1: Enable 2.1.127 VLANID Description: set VLAN ID Value: VLANID=0 0: Disable 2.1.128 VLANPriority Description: set VLAN Priority Value: VLANPriority=0 0: Disable 2.1.129 Ext_LNA Description: support External or internal LNA Value: Ext_LNA 0: Internal LNA 1: External LNA Note: MT7620 iNIC driver only profile 2.1.130 Ext_PA FO Description: support External or internal PA Value: Ext_PA 0: Internal PA MediaTek Confidential © 2014 MediaTek Inc. Page 48 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1: External PA Note: MT7620 iNIC driver only profile 2.1.131 ExtEEPROM Description: Support driver to read EEPROM from an external file Value: ExtEEPROM=1 0: read EERPM data from EEPROM chip 1: read EEPROM data from an external file Note: The external EEPROM file must be exactly the same format as EEPROM format. iNIC driver only profile. 2.1.132 Mem Description: Support WLAN profile can configure iNIC system address value Value: Mem=addr1,value1;addr2,value2; Example: Mem=b0110014,ff7f5555;b011008c,2404040; iNIC firmware will Set 1. memory address (0xb0110014) value (0xff7f5555); 2. memory address (0xb011008c) value (0x2404040); Note: This parameter is only for iNIC driver. 2.1.133 IgmpAdd1 Description: Add wihte list to passthrough IGMPsnooping Value: IgmpAdd1=MAC address-MAC address-MAC address Example: IgmpAdd1=01:00:5e:7f:ff:fa-01:00:5e:00:00:fb Note: update to 32 set of MAC address. 2.1.134 E2pAccessMode FO Description: Select the EEPROM access mode from interface start-up Value: MediaTek Confidential © 2014 MediaTek Inc. Page 49 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use E2pAccessMode=2 0: NONE 1: EFUSE mode 2: FLASH mode 3: EEPROM mode 4: BIN FILE mode 2.1.135 AutoChannelSkipList Description: Skip channel list for Auto Channel selection Algorithm Value: AutoChannelSkipList=Channel_list Example: Channel_list=2;3;4;5;7;8;10; 2.1.136 EntryLifeCheck Description: Set how many continued TX failure packets per STA can be ignored. Over the value, AP will tear down this STA, because it shall be gone. Value: EntryLifeCheck=20 Example: EntryLifeCheck=1 ~ 65535. Default is 20. 2.1.137 EtherTrafficBand Description: To bind enthernet packets with specific RF band Value: EtherTrafficBand=2G 2G: Bind enthernet packets with 2.4GHz RF Band 5G: Bind enthernet packets with 5GHz RF Band Note: only available after SoftAP driver v3.0.1.2. or after version 2.1.138 DetectPhy FO Description: Disable/Enable iNIC Phy link detection. if Phy link down will reset iNIC to load firmware. Value: MediaTek Confidential © 2014 MediaTek Inc. Page 50 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use DetectPhy=0 0: disable 1: enable Note: only available on iNIC MT76XX FW v2.7.0.8 and after. 2.1.139 Thermal Description: Disable/Enable iNIC thermal function Value: Thermal=0 0: disable 1: enable Note: Thermal function will be according to criteria with current temperature to configure Ant. Criteria Value: 1~1000 default:80 Example: iwpriv ra0 set tpc =80 Only available on iNIC MT76XX FW v2.7.0.8 and after. 2.1.140 %s_DfsSwAddCheck%d Description: WLAN profile parameter to check DFS false alarm. The first string is RDRegion. RDRegion string can be "CE", "FCC", "JAP", "JAP_W53", "JAP_W56". The second integer is channel index. Channel index can be from 0 to 4. Value: There are four parameter (Period low, Period High, Width low, Width high) in one rule. Multiple rules can be used. At least one rule must be used. Each parameter is separated by semicolon. T_Low;T_High;W_Low;W_High For example: CE_DfsSwAddCheck0=100;200;50;500 FCC_DfsSwAddCheck0=100;200;50;500;70;700;30;300 FO Note: only available on iNIC MT76XX FW v2.7.0.8 and after. MediaTek Confidential © 2014 MediaTek Inc. Page 51 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.141 IsolateCard Description: Disable/Enable for iNIC isolate concurrent card traffic. Value: IsolateCard=0 0: disable 1: enable (iNIC concurrent card traffic can't forward to each other) Note: only available on iNIC MT76XX FW v2.7.0.9 and after. 2.1.142 EnhanceMultiClient Description: Disable/Enable multiple N client related configuration. Value: EnhanceMultiClient=0 0: disable 1: enable Note: only available on iNIC MT76XX FW v2.7.0.9 and after. 2.1.143 BGMultiClient Description: Disable/Enable multiple legacy client related configuration. Value: BGMultiClient=0 0: disable 1: enable Note: only available on iNIC MT76XX FW v2.7.0.9 and after. 2.1.144 RssiDisauth Description: Disable or Enable RSSI disassociate feature.. Value: RssiDisauth=0 FO 0: disable 1: enable Default : 0 (disable); MediaTek Confidential © 2014 MediaTek Inc. Page 52 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use If Enable RSSI disassociate feature. Two scenarios for this feature: (1.) STA was exceeded the RssiThreshold value. AP will disassociate STA. (2.) Periodically Checking: After client was associated. AP will check RSSI periodically base on PollingRssiInterval. If STA was exceeding the RssiThreshold. A counter will be increase. STA will be disassociated when STA‘s own counter was exceeded TimeExceedRssiThreshold. The counter will be reset if AP found STA didn’t exceed the RSSI threshold. Note: only available on iNIC MT76XX FW v2.7.1.0 and after. 2.1.145 RssiThreshold Description: Minimum RSSI disassociate threshold. Value: RssiThreshold=0 Default : 0 (disable); value : -100 ~ -1 Note: only available on iNIC MT76XX FW v2.7.1.0 and after. 2.1.146 PollingRssiInterval Description: Polling time interval for check STA RSSI( in second ). Value: PollingRssiInterval=0 Default : 0 (disable); value : 1 ~ 3600 Note: only available on iNIC MT76XX FW v2.7.1.0 and after. 2.1.147 TimeExceedRssiThreshold Description: Time of user exceed the RSSI threshold before disassociate Value: TimeExceedRssiThreshold=0 FO Default : 0 (disable); value : 1 ~ 10000 Note: only available on iNIC MT76XX FW v2.7.1.0 and after. MediaTek Confidential © 2014 MediaTek Inc. Page 53 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.148 SiteSurveyRssi Description: Disable or Enable get RSSI for each Site Survey APT Value: SiteSurveyRssi=0 Default : 0 value : 0/1 Note: only available on iNIC MT76XX FW v2.7.1.0 and after. 2.1.149 AssociationInfoEvent Description: Disable or Enable association send event include wireless mode/PHY rate/RSSI Value: AssociationInfoEvent=0 Default : 0 value : 0/1 Note: only available on iNIC MT76XX FW v2.7.1.0 and after. 2.1.150 EDCCA Description: Disable or Enable EDCCA function Value: EDCCA=0 Default : 0 value : 0/1 Note: only available on iNIC MT76XX FW v2.7.1.0 and after. 2.1.151 TX_RETRY_NUM Description: Tx retry number Value: TX_RETRY_NUM=3 FO Default:0 Note: only available on iNIC MT76XX FW v3.0.0.2 and after. MediaTek Confidential © 2014 MediaTek Inc. Page 54 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.152 RTS_RETRY_NUM Description: RTC retry number Value: RTS_RETRY_NUM=3 Default=0 Note: only available on iNIC MT76XX FW v3.0.0.2 and after. 2.1.153 EDCCA_AP_STA_TH Description: STA count on SoftAP Value: EDCCA_AP_STA_TH=1 Default:1 Note: only available on iNIC MT76XX FW v3.0.0.2 and after. 2.1.154 EDCCA_AP_AP_TH Description: SoftAP count on the same working channel Value: EDCCA_AP_AP_TH=1 Default:1 Note: only available on iNIC MT76XX FW v3.0.0.2 and after. 2.1.155 EDCCA_AP_RSSI_TH Description: SoftAP count threshold on the same working channel, only when SofAP RSSI is greater than the configured level. Value: EDCCA_AP_RSSI_TH=-80 Note: only available on iNIC MT76XX FW v3.0.0.2 and after. 2.1.156 Wapiifname FO Description: Assign an interface name to process the WAI frame. The WAPID daemon shall be bound on this interface. If it doesn't specify, the default interface is "br0". Value: MediaTek Confidential © 2014 MediaTek Inc. Page 55 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use br0: default binding interface 2.1.157 WapiAsCertPath Description: Assign the path of the AS certificate for the WAPI certificate authentication. Value: WapiAsCertPath=/etc/as.cer 2.1.158 WapiAsIpAddr Description: Assign the IP address of the AS for the WAPI certificate authentication. Value: WapiAsIpAddr=192.168.222.174 2.1.159 WapiAsPort Description: Assign the port number of the AS for the WAPI certificate authentication. Value: WapiAsPort=3810 2.1.160 WapiMskRekeyMethod Description: Set the method for WAPI group key renew mechanism Value: DISABLE : Disable the rekey mechanism TIME : time-based PKT : packet-based 2.1.161 WapiMskRekeyThreshold Description: Set the period of WAPI group key updating Value: FO 0 : Disable this mechanism 10 ~ 0x3ffffff, Default is 3600. MediaTek Confidential © 2014 MediaTek Inc. Page 56 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2.1.162 WapiPsk1 Description: Set the WAPI pre-shared key Value: 8~64 characters 2.1.163 WapiPskType Description: Set the WAPI key type Value: 0: HEX mode 1: ASCII mode 2.1.164 WapiUserCertPath Description: Assign the path of the user certificate for the WAPI certificate authentication Value: WapiUserCertPath=/etc/user.cer 2.1.165 WapiUskRekeyMethod Description: Set the method for WAPI unicast key renew mechanism Value: DISABLE : Disable the rekey mechanism TIME : time-based PKT : packet-based 2.1.166 WapiUskRekeyThreshold Description: Set the period of WAPI unicast key updating Value: FO 0 : Disable this mechanism 10 ~ 0x3ffffff, Default is 3600 MediaTek Confidential © 2014 MediaTek Inc. Page 57 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3 Wi-Fi SoftAP driver iwpriv command Syntax is iwpriv ra0 set [parameters]=[Value] Note: Execute one iwpriv/set command at a time. 3.1.1 Debug Description: config WLAN driver Debug level. Value: iwpriv ra0 set Debug=3 0~5 0: Debug Off 1: Debug Error 2: Debug Warning 3: Debug Trace 4: Debug Info 5: Debug Loud 3.1.2 DriverVersion Description: Check driver version by iwpriv command. (Need to enable debug mode) Value: iwpriv ra0 set DriverVersion=0 Any value 3.1.3 CountryRegion Description: Set Country Region Value: iwpriv ra0 set CountryRegion=1 FO Region Channels 0 1-11 1 1-13 2 10-11 3 10-13 4 14 5 1-14 MediaTek Confidential © 2014 MediaTek Inc. Page 58 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.4 6 3-9 7 5-13 31 1-14 32 1-11 active scan, 12 and 13 passive scan 33 1-14 all active scan, 14 b mode only CountryRegionABand Description: Set Country Region for 5G Hz WLAN regulation Value: iwpriv ra0 set CountryRegionABand=7 Region Channels 3.1.5 0 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 1 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 2 36, 40, 44, 48, 52, 56, 60, 64 3 52, 56, 60, 64, 149, 153, 157, 161 4 149, 153, 157, 161, 165 5 149, 153, 157, 161 6 36, 40, 44, 48 7 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 8 52, 56, 60, 64 9 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 132, 136, 140, 149, 153, 157, 161, 165 10 36, 40, 44, 48, 149, 153, 157, 161, 165 11 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 149, 153, 157, 161 CountryCode Description: configure country code Value: iwpriv ra0 set CountryCode=TW 2 characters, like TW for Taiwan. Note: Please refer to ISO3166 code list for other countries and can be found at http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html#sz 3.1.6 AccessPolicy FO Description: Configure access policy of ACL table Value: iwpriv ra0 set AccessPolicy=0 MediaTek Confidential © 2014 MediaTek Inc. Page 59 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 0: Disable this function 1: Allow all entries of ACL table to associate AP 2: Reject all entries of ACL table to associate AP 3.1.7 ResetCounter Description:Reset all statistic counter Value: iwpriv ra0 set ResetCounter=1 3.1.8 SiteSurvey Description: In SoftAP mode to issue a site survey to the driver. Value: iwpriv ra0 set SiteSurvey=1 1 Passive scan: Null string. Such command “iwpriv ra0 set SiteSurvey=” Active scan: 0~z, 1~32 ASCII characters. Such command “iwpriv ra0 set SiteSurvey=11ac-AP” 3.1.9 CountryString Description: configure country string Value: iwpriv ra0 set CountryString=TAIWAN 32 characters, ex:Taiwan, case insensitive Note: Please refer to ISO3166 code list for other countries and can be found at http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html#sz FO Item Country Number 0 8 12 32 51 36 40 31 48 112 56 84 68 76 96 100 124 ISO Name DB AL DZ AR AM AU AT AZ BH BY BE BZ BO BR BN BG CA Country Name (CountryString) Debug ALBANIA ALGERIA ARGENTINA ARMENIA AUSTRALIA AUSTRIA AZERBAIJAN BAHRAIN BELARUS BELGIUM BELIZE BOLIVIA BRAZIL BRUNEI DARUSSALAM BULGARIA CANADA MediaTek Confidential Support 802.11A Yes No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes 802.11A Country Region A_BAND_REGION_7 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_3 A_BAND_REGION_2 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_2 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_4 A_BAND_REGION_4 A_BAND_REGION_1 A_BAND_REGION_4 A_BAND_REGION_1 A_BAND_REGION_0 © 2014 MediaTek Inc. Support 802.11G Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes 802.11G Country Region G_BAND_REGION_5 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 Page 60 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 152 156 170 188 191 196 203 208 214 218 818 222 233 246 250 268 276 300 320 340 344 348 352 356 360 364 372 376 380 392 400 398 408 410 414 428 422 438 440 442 446 807 458 484 492 504 528 554 578 512 586 591 604 608 616 CL CN CO CR HR CY CZ DK DO EC EG SV EE FI FR GE DE GR GT HN HK HU IS IN ID IR IE IL IT JP JO KZ KP KR KW LV LB LI LT LU MO MK MY MX MC MA NL NZ NO OM PK PA PE PH PL CHILE CHINA COLOMBIA COSTA RICA CROATIA CYPRUS CZECH REPUBLIC DENMARK DOMINICAN REPUBLIC ECUADOR EGYPT EL SALVADOR ESTONIA FINLAND FRANCE GEORGIA GERMANY GREECE GUATEMALA HONDURAS HONG KONG HUNGARY ICELAND INDIA INDONESIA IRAN IRELAND ISRAEL ITALY JAPAN JORDAN KAZAKHSTAN KOREA DEMOCRATIC KOREA REPUBLIC OF KUWAIT LATVIA LEBANON LIECHTENSTEIN LITHUANIA LUXEMBOURG MACAU MACEDONIA MALAYSIA MEXICO MONACO MOROCCO NETHERLANDS NEW ZEALAND NORWAY OMAN PAKISTAN PANAMA PERU PHILIPPINES POLAND MediaTek Confidential Yes Yes Yes No Yes Yes Yes Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes No Yes Yes No Yes No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes Yes Yes No Yes Yes Yes Yes A_BAND_REGION_0 A_BAND_REGION_4 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_2 A_BAND_REGION_1 A_BAND_REGION_2 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_2 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_2 A_BAND_REGION_2 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_4 A_BAND_REGION_4 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_9 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_5 A_BAND_REGION_5 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_2 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_4 A_BAND_REGION_4 A_BAND_REGION_1 © 2014 MediaTek Inc. Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 Page 61 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 620 630 634 642 643 682 702 703 705 710 724 752 756 760 158 764 780 788 792 804 784 826 840 858 860 862 704 887 716 3.1.10 PT PR QA RO RU SA SG SK SI ZA ES SE CH SY TW TH TT TN TR UA AE GB US UY UZ VE VN YE ZW PORTUGAL PUERTO RICO QATAR ROMANIA RUSSIA FEDERATION SAUDI ARABIA SINGAPORE SLOVAKIA SLOVENIA SOUTH AFRICA SPAIN SWEDEN SWITZERLAND SYRIAN ARAB REPUBLIC TAIWAN THAILAND TRINIDAD AND TOBAGO TUNISIA TURKEY UKRAINE UNITED ARAB EMIRATES UNITED KINGDOM UNITED STATES URUGUAY UZBEKISTAN VENEZUELA VIET NAM YEMEN ZIMBABWE Yes Yes No No No No Yes Yes Yes Yes Yes Yes Yes No Yes No Yes Yes Yes No No Yes Yes Yes Yes Yes No No No A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_3 A_BAND_REGION_0 A_BAND_REGION_2 A_BAND_REGION_2 A_BAND_REGION_2 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_1 A_BAND_REGION_0 A_BAND_REGION_5 A_BAND_REGION_1 A_BAND_REGION_5 A_BAND_REGION_0 A_BAND_REGION_0 A_BAND_REGION_0 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_0 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 G_BAND_REGION_1 SSID Description: Set AP SSID Value: iwpriv ra0 set SSID=11n-AP 0~z, 1~32 ASCII characters 3.1.11 WirelessMode FO Description: Set WLAN mode Value: iwpriv ra0 set WirelessMode=5 0: legacy 11b/g mixed 1: legacy 11B only 2: legacy 11A only 3: legacy 11a/b/g mixed 4: legacy 11G only 5: 11ABGN mixed 6: 11N only MediaTek Confidential © 2014 MediaTek Inc. Page 62 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 7: 11GN mixed 8: 11AN mixed 9: 11BGN mixed 10: 11AGN mixed 11: 11N only in 5G band only 14: 11A/AN/AC mixed 5G band only (Only 11AC chipset support) 15: 11 AN/AC mixed 5G band only (Only 11AC chipset support) 3.1.12 FixedTxMode Description: Fix Tx mode to CCK or OFDM for MCS rate selection Value: iwpriv ra0 set FixedTxMode=CCK CCK OFDM 3.1.13 OFDMBasicRate Description: configure OFDM basic rate Value: iwpriv ra0 set OFDMBasicRate= 0~4095 Basic Rate Bit Map (max. 12-bit, represent max. 12 basic rates) Bit 11 10 9 8 7 6 5 4 3 2 1 0 Rate 54 48 36 24 18 12 9 6 11 5.5 2 1 Set 0 1 0 1 0 1 0 1 1 1 1 1 Hex 5 5 F Decimal 1375 Note: Be careful to set this value, if you don’t know what this is, please don’t set this field. 3.1.14 Channel Description: Configure Wi-Fi Channel Value: iwpriv ra0 set Channel=6 FO 802.11b/g: 802.11a: MediaTek Confidential 1 ~ 14 (it must agree with the CountryRegion setting) 36~165 (it must agree with the CountryRegionABand setting) © 2014 MediaTek Inc. Page 63 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.15 BeaconPeriod Description: configure Beacon period Value: iwpriv ra0 set BeaconPeriod=100 20 ~ 1024 (unit is in milli-seconds) 3.1.16 DtimPeriod Description: Configure DTIM period Value: iwpriv ra0 set DtimPeriod=1 1~5 3.1.17 TxPower Description: Set Transmit Power by percentage Value: iwpriv ra0 set TxPower=100 0~100 Note: 91 ~ 100% & AUTO, treat as 100% in terms of mW 61 ~ 90%, treat as 75% in terms of mW 31 ~ 60%, treat as 50% in terms of mW 16 ~ 30%, treat as 25% in terms of mW 10 ~ 15%, treat as 12.5% in terms of mW 0 ~ 9 %, treat as MIN(~3%) in terms of mW 3.1.18 -1dBm -3dBm -6dBm -9dBm -12dBm BGProtection Description: Enable or disable 11B, 11G protection Value: iwpriv ra0 set BGProtection=0 0: disable 1: Always on 2:Always off 3.1.19 DisableOLBC FO Description: enable or disable OLBC Value: MediaTek Confidential © 2014 MediaTek Inc. Page 64 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use iwpriv ra0 set DisableOLBC=0 0: disable 1: enable 3.1.20 TxPreamble Description: enable or disable Tx preamble Value: iwpriv ra0 set TxPreamble=1 0: disable 1: enable 3.1.21 RTSThreshold Description: Set RTS Threshold Value: iwpriv ra0 set RTSThreshold=2347 1~2347 3.1.22 FragThreshold Description: Set Fragment threshold Value: iwpriv ra0 set FragThreshold=2346 256~2346 3.1.23 TxBurst Description: enable or disable Tx burst mode Value: iwpriv ra0 set TxBurst=0 0: disable 1: enable 3.1.24 PktAggregate FO Description: enable or disable packet aggregation (Ralink to Ralink only) Value: iwpriv ra0 set PktAggregate=1 MediaTek Confidential © 2014 MediaTek Inc. Page 65 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 0: disable 1: enable 3.1.25 NoForwarding Description: enable or disable no forwarding packet between STAs in the same BSSID Value: iwpriv ra0 set NoForwarding=0 0: disable 1: enable 3.1.26 NoForwardingBTNBSSID Description: enable or disable No Forwarding between each BSSID interface. Value: iwpriv ra0 set NoForwardingBTNBSSID=1 0: disable 1: enable 3.1.27 NoForwardingMBCast Description: enable or disable No Forwarding multicast/broadcast packets between each BSSID interface. Value: iwpriv ra0 set NoForwardingMBCast=1 0: disable 1: enable 3.1.28 HideSSID Description: enable or disable hidden SSID Value: iwpriv ra0 set HideSSID=1 0: disable 1: enable FO 3.1.29 ShortSlot Description: enable or disabllle short slot time MediaTek Confidential © 2014 MediaTek Inc. Page 66 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Value: iwpriv ra0 set ShortSlot=0 0: disable 1: enable 3.1.30 DisConnectSta Description: Disconnect one specific STA which connected with this SoftAP manually Value: iwpriv ra0 set DisConnectSta=00:11:22:33:44:55 [MAC address] 3.1.31 DisConnectAllSta Description: Disconnect all STAs which connected with this SoftAP manually. Value: iwpriv ra0 set DisConnectAllSta=1 1: disconnect all STAs 3.1.32 McastPhyMode Description: Configure multicast physical mode Value: iwpriv ra0 set McastPhyMode=0 0: 1: 2: 3 3.1.33 Disable CCK OFDM HTMIX McastMcs Description: Specify the MCS of multicast packets. Value: iwpriv ra0 set McastMcs=0 0~15 3.1.34 WscVendorPinCode FO Description: Set vendor pin code as pin code of WPS AP’s enrollee Value: MediaTek Confidential © 2014 MediaTek Inc. Page 67 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use iwpriv ra0 WscVendorPinCode=xxxxxxx xxxxxxxx //Valid PIN code 3.1.35 ACLAddEntry Description: To insert one or several MAC addresses into Access control MAC table list, up to 64 MAC address at one time. Value: iwpriv ra0 set ACLAddEntry=”xx:xx:xx:xx:xx:xx” [MAC address];[MAC address];...;[MAC address]” Example: iwpriv ra0 ACLAddEntry="00:0c:43:28:aa:12;00:0c:43:28:aa:11;00:0c:43:28:aa:10" 3.1.36 set ACLClearAll Description: To clear all the MAC address entries in an Access control MAC table list. Value: iwpriv ra0 set ACLClearAll=1 1: indicate to clear the table Other value is invalid. 3.1.37 FixedTxMode Description: To limit the transmission mode only for CCK and OFDM Value: iwpriv ra0 set FixedTxMode=CCK CCK OFDM 3.1.38 WpaMixPairCipher FO Description: It provides a more flexible cipher combination. Value: iwpriv ra0 set WpaMixPairCipher=WPA_AES_WPA2_TKIPAES WPA_AES_WPA2_TKIPAES WPA_AES_WPA2_TKIP WPA_TKIP_WPA2_AES WPA_TKIP_WPA2_TKIPAES MediaTek Confidential © 2014 MediaTek Inc. Page 68 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use WPA_TKIPAES_WPA2_AES WPA_TKIPAES_WPA2_TKIPAES WPA_TKIPAES_WPA2_TKIP Note: The SSID must be set again to make this setting valid. 3.1.39 MaxStaNum Description: To limit the maximum number of associated clients per BSS. Value: iwpriv ra0 set MaxStaNum=0 0: disable this function 1~32 (default:32) 3.1.40 AutoFallBack Description: enable or disable auto fall back rate control function Value: iwpriv ra0 set AutoFallBack=1 0: disable 1: enable 3.1.41 ApCliTxMode Description: Configure APclient Tx traffic mode Value: iwpriv apcli0 set ApCliTxMode=HT CCK OFDM HT 3.1.42 ApCliTxMcs Description: Set transmission MCS for AP-Client traffic. Value: iwpriv apcli0 set ApCliTxMcs=33 FO 0~15, 32: 33: MediaTek Confidential Fixed MCS Auto MCS © 2014 MediaTek Inc. Page 69 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.43 ApCliAutoConnect Description: Trigger Apcli Auto connect to find the missed AP Value: iwpriv ra0 set ApCliAutoConnect=1 Any value 3.1.44 GreenAP Description: enable or disable Green AP fucntion Value: iwpriv ra0 set GreenAP=0 0: disable 1: enable 3.1.45 AutoChannelSel Description: auto channel select when driver is loaded Value: iwpriv ra0 set AutoChannelSel=2 0: 1: 2: 3.1.46 Disable Old Channel Selection Algorithm New Channel Selection Algorithm ACSCheckTime Description: Set a periodic check time for auto channel selection (unit: hour) Value: iwpriv ra0 set ACSCheckTime=3 0: Disable 3.1.47 MBSSWirelessMode FO Description: Set MBSS Wireless phy Mode. Only support in v2.5.0.0 and after version. Value: 0: 802.11 B/G mixed 1: 802.11 B only 2: 802.11 A only 4: 802.11 G only 6: 802.11 N only 7: 802.11 G/N mixed 8: 802.11 A/N mixed MediaTek Confidential © 2014 MediaTek Inc. Page 70 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 9: 10: 11: 802.11 B/G/N mixed 802.11 A/G/N mixed 802.11 N in 5G band only Example: ra0: B/G/N fixed ra1: B only ra2: B/G mixed ra3: G only Must set main BSS (ra0) first then set other MBSS WirelessMode. Can’t have A & B mode fixed in MBSS. iwpriv ra0 set WirelessMode=9 iwpriv ra1 set MBSSWirelessMode=1 iwpriv ra2 set MBSSWirelessMode=0 iwpriv ra3 set MBSSWirelessMode=4 3.1.48 HwAntDiv Description: enable or disable Hardware antenna diversity Value: iwpriv ra0 set HwAntDiv=0 0: disable 1: enable Note: Only support in RT5350. 3.1.49 HtBw Description: Set HT WLAN Bandwidth Value: iwpriv ra0 set HtBw=1 0: 20 MHz 1: 40MHz 3.1.50 VhtBw Description: Enable or disable 11AC 80MHz Bandwidth support Value: iwpriv ra0 set VhtBw=1 FO 0: disable 1: enable Note: 11AC chipset only MediaTek Confidential © 2014 MediaTek Inc. Page 71 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.51 VhtStbc Description: Enable/disable 11AC STBC Support Value: iwpriv ra0 set VhtStbc=1 0: disable 1: enable Note: 11AC chipset only 3.1.52 VhtBwSignal Description: Enable/disable 11 AC BandWidth signaling Value: iwpriv ra0 set VhtBwSignal=1 0: disable 1: enable Note: 11AC chipset only. 3.1.53 VhtDisallowNonVHT Description: Enable/disable to reject non-VHT STA to connect Value: iwpriv ra0 set VhtDisallowNonVHT=1 0: disable 1: enable to reject non-VHT STA Note: 11AC chipset only. 3.1.54 HtMcs Description: Set WLAN Modulation and Coding Scheme (MCS) Value: iwpriv ra0 set HtMcs=33 FO 0 ~15, 32: Fix MCS rate for HT rate. 33: Auto Rate Adaption, recommended HT Mixed Mode, Refer to IEEE P802.11n Figure n67 HT Greenfield, Refer to IEEE P802.11n Figure n68 MCS = 0 (1S) (BW=0, SGI=0) 6.5Mbps MCS = 1 (BW=0, SGI=0) 13Mbps MCS = 2 (BW=0, SGI=0) 19.5Mbps MCS = 3 (BW=0, SGI=0) 26Mbps MediaTek Confidential © 2014 MediaTek Inc. Page 72 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use MCS = 4 (BW=0, SGI=0) 39Mbps MCS = 5 (BW=0, SGI=0) 52Mbps MCS = 6 (BW=0, SGI=0) 58.5Mbps MCS = 7 (BW=0, SGI=0) 65Mbps MCS = 8 (2S) (BW=0, SGI=0) 13Mbps MCS = 9 (BW=0, SGI=0) 26Mbps MCS = 10 (BW=0, SGI=0) 39Mbps MCS = 11 (BW=0, SGI=0) 52Mbps MCS = 12 (BW=0, SGI=0) 78Mbps MCS = 13 (BW=0, SGI=0) 104Mbps MCS = 14 (BW=0, SGI=0) 117Mbps MCS = 15 (BW=0, SGI=0) 130Mbps MCS = 32 (BW=1, SGI=0) HT duplicate 6Mbps Notes: When BW=1, PHY_RATE = PHY_RATE * 2 When SGI=1, PHY_RATE = PHY_RATE * 10/9 The effects of BW and SGI are accumulative. When MCS=0~7(1S, One Tx Stream), SGI option is supported. BW option is supported. When MCS=8~15(2S, Two Tx Stream), SGI option is supported. BW option is supported. When MCS=32, only SGI option is supported. BW option is not supported. (BW =1) Other MCS code in HT mode are reserved. 3.1.55 HtGi Description: Set WLAN Guard interval support Value: iwpriv ra0 set HtGi=1 0: long guard interval 1: short guard interval 3.1.56 HtOpMode Description: HT operation Mode Value: iwpriv ra0 set HtOpMode=0 0: HT mixed mode 1: HT Greenfield mode 3.1.57 HtStbc FO Description: Enable or disable HT STBC Value: iwpriv ra0 set HtStbc=1 MediaTek Confidential © 2014 MediaTek Inc. Page 73 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 0: disable 1: enable 3.1.58 HtExtcha Description: To locate the 40MHz channel in combination with the control Value: iwpriv ra0 set HtExtcha=0 0: below 1: Above 3.1.59 HtMpduDensity Description: Minimum separation of MPDUs in an A-MPDU Value: iwpriv ra0 set HtMpduDensity=4 0~7 0: no restriction 1: 1/4 µs 2: 1/2 µs 3: 1 µs 4: 2 µs 5: 4 µs 6: 8 µs 7: 16 µs 3.1.60 HtBaWinSize Description: Block Ack window size Value: iwpriv ra0 set HtBaWinSize=64 1~64 3.1.61 HtTxBASize Description: Set the number of AMPDU aggregation size of one transmission burst. Value: iwpriv ra0 set HtTxBASize=64 FO 1~64: valid value MediaTek Confidential © 2014 MediaTek Inc. Page 74 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.62 HtRdg Description: Enable or disable HT Reverse Direction Grant Value: iwpriv ra0 set HtRdg=1 0: disable 1: enable 3.1.63 HtAmsdu Description: Enable or disable AMSDU section Value: Iwpriv ra0 set HtAmsdu=0 0: disable 1: enable 3.1.64 HtAutoBa Description: Enable or disable auto build Block Ack section with peer Value: iwpriv ra0 set HtAutoBa=1 0: disable 1: enable 3.1.65 BADecline Description: Enable or disable decline Block Ack to peer Value: iwpriv ra0 set BADecline=0 0: disable 1: enable 3.1.66 HtProtect FO Description: Enable or disable HT protect Value: iwpriv ra0 set HtProtect=0 0: disable 1: enable MediaTek Confidential © 2014 MediaTek Inc. Page 75 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.67 HtMimoPs Description: Enable or disable HT MIMO Power saving mode Value: iwpriv ra0 set HtMimoPs=0 0: disable 1: enable 3.1.68 HtDisallowTKIP Description: Enable or disable 11N rate with 11N AP when cipher is TKIP or WEP Value: iwpriv ra0 set HtDisallowTKIP=0 0: disable 1: enable 3.1.69 AP2040Rescan Description: Trigger HT20/40 coexistence to rescan Value: iwpriv ra0 set AP2040Rescan=1 1: trigger to rescan 3.1.70 HtBssCoex Description: Enable or disable HT BSS coexistence Value: iwpriv ra0 set HtBssCoex=0 0: disable 1: enable 3.1.71 HtTxStream FO Description: Set the number of spatial streams for transmission Value: iwpriv ra0 set HtTxStream=1 or 2 or 3 1~3: valid spatial streams MediaTek Confidential © 2014 MediaTek Inc. Page 76 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.72 HtRxStream Description: Set the number of spatial streams for reception Value: iwpriv ra0 set HtRxStream=1 or 2 or 3 1~3: valid spatial streams 3.1.73 BASetup Description: Add an Originator BA entry into the BA table manually. Value: iwpriv ra0 set BASetup=00:0c:43:01:02:03-1 The six 2 digit hex-decimal number(xx) previous are the Mac address, The seventh decimal number(d) is the tid value. 3.1.74 BAOriTearDown Description: Remove an Originator BA entry from the BA table manually. Value: iwpriv ra0 set BAOriTearDown=00:0c:43:01:02:03-1 The six 2 digit hex-decimal number(xx) previous are the Mac address, The seventh decimal number(d) is the tid value. 3.1.75 BARecTearDown Description: Remove an Recipient BA entry from the BA table manually. Value: iwpriv ra0 set BARecTearDown=00:0c:43:01:02:03-1 The six 2 digit hex-decimal number(xx) previous are the Mac address, The seventh decimal number(d) is the tid value. 3.1.76 PktAggregate FO Description: Enable or disable 11B/G packet aggregation Value: iwpriv ra0 set PktAggregate=1 0: disable MediaTek Confidential © 2014 MediaTek Inc. Page 77 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1: enable 3.1.77 WmmCapable Description: Enable or disable WMM support Value: iwpriv ra0 set WmmCapable=1 0: disable 1: enable 3.1.78 IEEE80211H Description: Enable or disable IEEE 802.11h function. Spectrum management. This field can only be enabled in A band. Value: iwpriv ra0 set IEEE80211H=0 0: disable 1: enable 3.1.79 AuthMode Description: WLAN security Authentication mode Value: iwpriv ra0 set AuthMode=OPEN OPEN SHARED WEPAUTO WPAPSK WPA2PSK WPANONE WPA WPA2 3.1.80 For open system For shared key system Auto switch between OPEN and SHARED For WPA pre-shared key (Infra) For WPA2 pre-shared key (Infra) For WPA pre-shared key (Adhoc) For enterprise mode (Need wpa_supplicant) For enterprise mode (Need wpa_supplicant) EncrypType FO Description: WLAN security Encryption type Value: iwpriv ra0 set EncrypType=NONE NONE WEP TKIP AES MediaTek Confidential For AuthMode=OPEN For AuthMode=OPEN or AuthMode=SHARED For AuthMode=WPAPSK or WPA2PSK For AuthMode=WPAPSK or WPA2PSK © 2014 MediaTek Inc. Page 78 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.81 DefaultKeyID Description: Default key ID Value: iwpriv ra0 set DefaultKeyID=1 1~4 3.1.82 Key1 Description: Key 1 string Value: iwpriv ra0 set Key1=aaaaa 10 or 26 characters 5 or 13 characters 3.1.83 Key2 Description: Key 2 string Value: iwpriv ra0 set Key2=aaaaa 10 or 26 characters 5 or 13 characters 3.1.84 Key3 Description: Key 3 string Value: iwpriv ra0 set Key3=aaaaa 10 or 26 characters 5 or 13 characters 3.1.85 Key4 FO Description: Key 4 string Value: iwpriv ra0 set Key4=aaaaa 10 or 26 characters 5 or 13 characters MediaTek Confidential © 2014 MediaTek Inc. Page 79 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.86 WPAPSK Description: WLAN Security string for (TKIP/AES) Value: iwpriv ra0 set WPAPSK=12345678 8~63 ASCII Or 64 HEX characters 3.1.87 ResetCounter Description: reset WLAN statistic counter Value: iwpriv ra0 set ResetCounter=1 1 3.1.88 MACRepeaterEn Description: Enable or disable MAC Repeater function Value: iwpriv ra0 set MACRepeaterEn=1 0: disable 1: enable 3.1.89 PMFMFPC Description: Enable or disable Protection Management Frame Capable Value: iwpriv ra0 set PMFMFPC=1 0: disable 1: enable 3.1.90 PMFMFPR Description: Enable or disable Protection Management Frame Required Value: iwpriv ra0 set PMFMFPR=1 FO 0: disable 1: enable MediaTek Confidential © 2014 MediaTek Inc. Page 80 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.91 SHA256 Description: Enable or disable use SHA256 for Encryption Value: iwpriv ra0 set SHA256=1 0: disable 1: enable 3.1.92 WDSVLANID Description: set WDS VLAN ID Value: iwpriv ra0 set WDSVLANID=1 1~16 Note: iNIC driver only 3.1.93 WDSVLANPriority Description: set WDS VLAN priority Value: iwpriv ra0 set WDSVLANPriority=1 1~16 Note: iNIC driver only 3.1.94 ApCliVLANID Description: set APclient VLAN ID Value: iwpriv ra0 set ApCliVLANID=1 1~16 Note: iNIC driver only 3.1.95 ApCliVLANPriority Description: set APclient VLAN priority Value: iwpriv ra0 set ApCliVLANPriority=1 FO 1~16 Note: iNIC driver only MediaTek Confidential © 2014 MediaTek Inc. Page 81 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.96 QAEnable Description: enable or disable QA test tool function. iwpriv ra0 set QAEnable=1 0: disable 1: enable Note: iNIC driver only. 3.1.97 Console Description: redirect console information to host. iwpriv ra0 set Console=1 0: disable 1: enable Note: iNIC driver only. 3.1.98 EfuseUploadToHost Description: This command is specific to iNIC solution. The content of efuse will be uploaded to the iNIC host in iNIC_e2p.bin or iNIC_e2p1.bin . iwpriv ra0 set EfuseUploadToHost=1 0: disable 1: enable Note: iNIC driver only 3.1.99 tpc Description: Thermal function will be according to criteria with current temperature to configure Ant. Criteria Value:1~1000 default: 80 Iwpriv ra0 set tpc=80 Note: iNIC driver only 3.1.100 DfsSwAddCheck FO Description: This command is used to add an entry to prevent false detection in specific range. MediaTek Confidential © 2014 MediaTek Inc. Page 82 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use “ch” is the bbp dfs detection engine ID “T_Low” is the Radar Period low boundary to filter out. “T_High” is the Radar Period high boundary to filter out. “W_Low” is the Radar Width low boundary to filter out. “W_High” is the Radar Width high boundary to filter out. iwpriv ra0 set DfsSwAddCheck=ch:T_Low:T_High:W_Low:W_high Example: iwpriv ra0 set DfsSwAddCheck=0:100:200:50:500 Note: iNIC driver only 3.1.101 DfsSwDelCheck Description: This command is used to delete an entry which was added to filter out radar in specific range. iwpriv ra0 set DfsSwDelCheck=ch:T_Low:T_High:W_Low:W_high Example: iwpriv ra0 set DfsSwDelCheck=0:100:200:50:500 Note: iNIC driver only 3.1.102 fpga_on Description: Turn on or off vht fixed mode. iwpriv ra0 set fpga_on=6 Note: for vht mode fix data rate setting 3.1.103 dataphy Description: For Phy mode setting. iwpriv ra0 set dataphy=value FO Value: 0 = CCK, 1 = OFDM, 2 = MODE_HTMIX, 3 = HT-GF, 4 = VHT Note: for vht mode fix data rate setting MediaTek Confidential © 2014 MediaTek Inc. Page 83 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.1.104 databw Description: For Bandwidth setting. iwpriv rai0 set databw=value Value: 0 = 20M, 1 = 40M, 2 = 80M, Note: for vht mode fix data rate setting 3.1.105 datamcs Description: MCS setting. iwpriv ra0 set datamcs=value bit[3:0] stands for Modulation Coding Scheme (MCS) bit[6:4] stands for Number of Spatial Stream (NSS). Example: iwpriv ra0 set datamcs=24 2SS MCS8 Note: for vht mode fix data rate setting 1SS & 2SS MCS Rate mapping table 1SS FO MCS Index Modulation Value (Dec) 0 BPSK 0 1 QPSK 1 2 QPSK 2 3 16-QAM 3 4 16-QAM 4 5 64-QAM 5 6 64-QAM 6 7 64-QAM 7 8 256-QAM 8 9 256-QAM 9 MediaTek Confidential © 2014 MediaTek Inc. Page 84 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 2SS MCS Index Modulation Value (Dec) 0 BPSK 16 1 QPSK 17 2 QPSK 18 3 16-QAM 19 4 16-QAM 20 5 64-QAM 21 6 64-QAM 22 7 64-QAM 23 8 256-QAM 24 9 256-QAM 25 3.1.106 databasize Description: For BASize setting. iwpriv ra0 set databasize=value Value: 1~64 Note: for vht mode fix data rate setting 3.1.107 databgi Description: For GI setting. iwpriv ra0 set datagi=value Value: 0 = short GI, 1 = long GI Note: for vht mode fix data rate setting 3.1.108 dataldpc FO Description: For LDPC setting. iwpriv ra0 set dataldpc=value MediaTek Confidential © 2014 MediaTek Inc. Page 85 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Value: 0 = disable, 1 = enable Note: for vht mode fix data rate setting 3.1.109 KickStaRssiLow Description: Set the lowest limitation for AP kicking out STA. Value: iwpriv ra0 set KickStaRssiLow=0 0: Disable 0 ~ -100 3.1.110 AssocReqRssiThres Description: Set AssocReq RSSI Threshold to reject STA with weak signal Value: Iwpriv ra0 set AssocReqRssiThres=0 FO 0: Disable 0~ -100 MediaTek Confidential © 2014 MediaTek Inc. Page 86 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 4 iwpriv ra0 usage This section describes parameters set using iwpriv. Please refer to the Readme section for more general data. A detailed explanation of each parameter for iwpriv is shown subsequently. Refer to the Readme before using this section. iwpriv ra0 [parameters] 4.1 get_site_survey Description: Show site survey result Value: iwpriv ra0 get_site_survey Note: Works only after iwpriv ra0 set SiteSurvey=1 4.2 get_mac_table Description: Show STA’s MAC address which associated with AP Value: iwpriv ra0 get_mac_table Note: Need to enable debug mode to display the message. 4.3 get_wsc_profile Description: Display WPS profile information in detailed Value: iwpriv ra0 get_wsc_profile 4.4 get_ba_table Description: Show Block ACK Table raw data information Value: iwpriv ra0 get_ba_table 4.5 stat FO Description: Display WLAN static counter Value: iwpriv ra0 stat MediaTek Confidential © 2014 MediaTek Inc. Page 87 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 4.6 bbp (Debug only) Description: Display/Write bbp content Value: //Display iwpriv ra0 bbp offset //Write bbp iwpriv ra0 bbp offset=value offset = hex address value= hex value 4.7 mac (Debug only) Description: Display/Write mac content Value: //Display iwpriv ra0 mac offset //Write mac iwpriv ra0 mac offset=value offset = hex address value= hex value 4.8 rf (Debug only) Description: Display/Write rf content Value: //Display iwpriv ra0 rf offset //Write iwpriv ra0 rf offset=value offset = hex address value= hex value 4.9 e2p (Debug only) FO Description: Read/Write EEPROM content Value: MediaTek Confidential © 2014 MediaTek Inc. Page 88 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use //Read iwpriv ra0 e2p offset //Write EEPROM iwpriv ra0 e2p offset=value FO offset = hex address value= hex value MediaTek Confidential © 2014 MediaTek Inc. Page 89 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 5 iwpriv ra0 show command This section describes parameters set using iwpriv. Please refer to the Readme section for more general data. Display parameter which has been currently configured in the WLAN driver. iwpriv ra0 show [parameters] [Parameters list] 1. stainfo - Show associated STA's MAC address 2. descinfo - Show Descriptor information. 3. driverinfo - Show driver version. 4. wdsinfo - Show WDS list information. 5. bainfo - Show Block ACK Table. (String message) 6. stat - Show statistics counter. 7. stat_reset - Show, then reset statistics counter. 8. igmpinfo - Show all entrys in IGMP table. 9. mcastrate - Show multicast phy mode and MCS rate. 10. stacountinfo – show associated STA’s Tx, Rx byte counts. 11. stasecinfo – show associated STA’s BSS and security information. 12. mbss – show MBSS phy mode information. Example: show stainfo FO iwpriv ra0 show stainfo MediaTek Confidential © 2014 MediaTek Inc. Page 90 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6 WPS Wi-Fi PROTECTED SETUP Simple Config Architectural Overview This section presents a high-level description of the Simple Config architecture. Much of the material is taken directly from the Simple Config specification. Figure 1 depicts the major components and their interfaces as defined by Wi-Fi Simple Config Spec. There are three logical components involved: the Registrar, the access point (AP), and the Enrollee. The Enrollee is a device seeking to join a WLAN domain. Once an Enrollee obtains a valid credential, it becomes a member. A Registrar is an entity with the authority to issue and revoke domain credentials. A registrar can be integrated into an AP. The AP can be either a WLAN AP or a wireless router. Registration initiation is ordinarily accomplished by a user action such as powering up the Enrollee and, optionally, running a setup wizard on the Registrar (PC). Note: The WLAN driver needs to set HAS_WSC=y in order to enable WPS functions. 6.1 WPS Profile settings Configure WPS setting in RT2860AP.dat or RT2860AP.dat. Syntax: [Parameter]=[Value] 6.1.1 WscConfMode Description: Set WPS function, bitwise. Value: WscConfMode=0x2 FO 0x0: Disable 0x1: Enrollee 0x2: Proxy 0x4: Registrar MediaTek Confidential © 2014 MediaTek Inc. Page 91 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.1.2 WscConfStatus Description: Set WPS AP SC (Simple Config) State Value: WscConfStatus=1 1: AP is un-configured 2: AP is configured 6.1.3 WscConfMethods Description: The Config Methods Data component lists the configuration methods the Enrollee or Registrar supports. The list is a bitwise OR of values from the table below. If you don’t know what this is, please don’t set this field. Value: WscConfMethods=16 1 2 4 8 16 32 64 128 256 6.1.4 - USBA (Flash Drive) - Ethernet - Label - Display - External NFC Token - Integrated NFC Token - NFC Interface - PushButton - Keypad WscKeyASCII Description: Define WPS WPAPSK format and key length for un-configured internal WPS Registrar AP. Value: WscKeyASCII=0 0: Hex (64-bytes). Default is 0. 1: ASCII(random length) 8 ~ 63: ASCII length 6.1.5 WscSecurityMode FO Description: Define WPS regitrar’s unconfiguraed -> configuraed security mode. Value: WscSecurityMode=0 0 : WPA2PSK AES 1 : WPA2PSK TKIP 2 : WPAPSK AES 3 : WPAPSK TKIP MediaTek Confidential © 2014 MediaTek Inc. Page 92 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.1.6 WscDefaultSSID0 Description: Default WPS SSID for AP. After WPS process completes with Enrollee when AP acts as un-configured Registrar, AP will use this SSID as new SSID. Value: WscDefaultSSID0=SSID 1~32 characters 6.1.7 WscV2Support Description: enable or disable WPS v2.0 support Value: WscV2Support=1 0: disable 1: enable 6.2 WPS iwpriv command This section describes parameters set using iwpriv. Please refer to the Readme section for more general data. iwpriv ra0 set [parameter]=[Value] Note: Wireless extension private handlers. 6.2.1 WscConfMode Description: set WPS conf mode Value: iwpriv ra0 set WscConfMode=1 0x0: Disable 0x1: Enrollee 0x2: Proxy 0x4: Registrar 6.2.2 WscConfStatus FO Description: Set WPS SC (simple config) state Value: MediaTek Confidential © 2014 MediaTek Inc. Page 93 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use iwpriv ra0 set WscConfStatus=1 1: AP is un-configured 2: AP is configured 6.2.3 WscMode Description: WPS mode, PBC or PIN Value: iwpriv ra0 set WscMode=1 1: PIN (Personal Identification Number) Mode 2: PBC (Push Button Communication) Mode 6.2.4 WscStatus FO Description: Get WPS Configured Methods. Value: iwpriv ra0 set WscStatus=0 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: Not Used Idle WSC Process Fail Start WSC Process Received EAPOL-Start Sending EAP-Req(ID) Receive EAP-Rsp(ID) Receive EAP-Req with wrong WSC SMI Vendor Id Receive EAPReq with wrong WSC Vendor Type Sending EAP-Req(WSC_START) Send M1 Received M1 Send M2 Received M2 Received M2D Send M3 Received M3 Send M4 Received M4 Send M5 Received M5 Send M6 Received M6 Send M7 Received M7 MediaTek Confidential © 2014 MediaTek Inc. Page 94 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 6.2.5 Send M8 Received M8 Processing EAP Response (ACK) Processing EAP Request (Done) Processing EAP Response (Done) Sending EAP-Fail WSC_ERROR_HASH_FAIL WSC_ERROR_HMAC_FAIL WSC_ERROR_DEV_PWD_AUTH_FAIL Configured WscPinCode Description: Input Enrollee’s Pin Code to AP-Registrar. Value: iwpriv ra0 WscPinCode xxxxxxxx xxxxxxx = {00000000 ~ 99999999} 6.2.6 WscOOB Description: Reset WPS AP to the OOB (out-of-box) configuration. Value: iwpriv ra0 set WscOOB=1 0: disable 1: enable 6.2.7 WscGetConf Description: Trigger WPS AP to do simple config with WPS Client. Value: iwpriv ra0 set WscGetConf=1 0: disable 1: enable 6.2.8 WscGenPinCode FO Description: Randomly generate enrollee PIN code Value: iwpriv ra0 set WscGenPinCode=1 1 MediaTek Confidential © 2014 MediaTek Inc. Page 95 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.2.9 WscVendorPinCode Description: Input vendor’s Pin Code to AP-Registrar. Value: iwpriv ra0 set WscVendorPinCode=xxxxxxxx xxxxxxxx: 8 digit pin code 6.2.10 WscSecurityMode Description: Set WPS regitrar’s unconfiguraed -> configuraed security mode. Value: iwpriv ra0 set WscSecurityMode=0 0 : WPA2PSK AES 1 : WPA2PSK TKIP 2 : WPAPSK AES 3 : WPAPSK TKIP 6.2.11 WscMultiByteCheck Description: Set multi byte check is enabled or disabled. Value: iwpriv ra0 set WscMultiByteCheck=1 0: disable 1: enable 6.2.12 WscVersion Description: Set WPS support version Value: iwpriv ra0 set WscVersion=10 xx: Hex value 6.2.13 WscVersion2 Description: Set WPS version of V2 support Value: iwpriv ra0 set WscVersion2=10 FO xx: Hex Value MediaTek Confidential © 2014 MediaTek Inc. Page 96 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.2.14 WscV2Support Description: enable or disable WPS V2.0 support Value: iwpriv ra0 WscV2Support=1 0: disable 1: enable 6.2.15 WscFragment Description: enable or disable WPS fragment Value: iwpriv ra0 WscFragment=0 0: disable 1: enable 6.2.16 WscFragmentSize Description: Set the size of WPS fragmentation. Value: iwpriv ra0 set WscFragmentSize=128 128~300 6.2.17 WscSetupLock Description: enable or disable WPS setup lock Value: iwpriv ra0 set WscSetupLock=1 0: disable 1: enable 6.2.18 WscSetupLockTime Description: Configure WPS setup lock time Value: iwpriv ra0 set WscSetupLockTime=0 FO 0: lock forever Unit: minute MediaTek Confidential © 2014 MediaTek Inc. Page 97 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.2.19 WscMaxPinAttack Description: Configure WPS pin attack Max time. Value: iwpirv ra0 set WscMaxPinAttack 0:Disable 1-10 6.2.20 WscExtraTlvTag Description: Add extra TLV tag to Beacon, probe response and WSC EAP messages Value: iwpriv ra0 set WscExtraTlvTag=1088 Hex value: 0000 ~ FFFF Example: 1088 6.2.21 WscExtraTlvType Description: Define data format of extra TLV value Value: iwpriv ra0 set WscExtraTlvType=1 0: ASCII string 1: Hex string 6.2.22 WscExtraTlvData Description: Add extra TLV data to Beacon, probe response and WSC EAP messages Value: iwpriv ra0 set WscExtraTlvData= ASCII string or Hex string 6.2.23 WscStop FO Description: Stop WPS process. Value: iwpriv ra0 set WscStop MediaTek Confidential © 2014 MediaTek Inc. Page 98 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.2.24 WPS iwpriv command example 6.2.24.1 Disable WPS support iwpriv ra0 set WscConfMode=0 6.2.24.2 Enable WPS Function iwpriv ra0 set WscConfMode =7 (Binary: 111) (AP could be Registrar(0x4), Proxy(0x2) or Enrollee(0x1)) 6.2.24.3 WPS AP SC (Simple Config) State iwpriv ra0 set WscConfStatus=1 (AP is un-configured) iwpriv ra0 set WscConfStatus=2 (AP is configured) 6.2.24.4 WPS Configured Methods iwpriv ra0 set WscMode =1 (use PIN code) iwpriv ra0 set WscMode =2 (use PBC) 6.2.24.5 Input Enrollee’s Pin Code to AP-Registrar iwpriv ra0 set WscPinCode=xxxxxxxx 6.2.24.6 Reset WPS AP to the OOB configuration iwpriv ra0 set WscOOB=1 (Security: WPAPSK/TKIP, psk: “RalinkInitialAPxx1234” ; SC state: 0x1) (SSID: RalinkInitialAPxxxxxx, last three characters of AP MAC address) 6.2.24.7 Trigger WPS AP to do simple config with WPS Client iwpriv ra0 set WscGetConf=1 6.2.24.8 AP services as Enrollee by using PIN code iwpriv ra0 set WscMode=1 iwpriv ra0 set WscGetConf=1 6.2.24.9 AP services as Enrollee by using PBC iwpriv ra0 set WscMode=2 iwpriv ra0 set WscGetConf=1 6.2.24.10 AP services as Internal Registrar using PIN code iwpriv ra0 set WscMode=1 iwpriv ra0 set WscPinCode=xxxxxxxx (PIN code from Enrollee, len=8) iwpriv ra0 set WscGetConf=1 FO 6.2.24.11 AP services as Internal Registrar using PBC iwpriv ra0 set WscMode=2 iwpriv ra0 set WscGetConf=1 MediaTek Confidential © 2014 MediaTek Inc. Page 99 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.2.24.12 Get WPS Profile from external registrar iwpriv ra0 get_wsc_profile 6.3 WPS AP Setup Procedure To run the Access Point (as Enrollee or with Registrar capabilities). The following scenarios are currently supported: 1. Initial Access Point (AP) setup, with the Registrar configuring the Access Point 1.1. One WiFi-enabled laptop is setup as the AP acting as an Enrollee 1.2. Another WiFi-enabled laptop is setup as a station acting as the Registrar 1.3. Two sub cases are 1a) using EAP transport and 1b) using UPnP transport 2. Configuration of a WiFi client, using an AP with a built-in registrar 2.1. One WiFi-enabled laptop is setup as the AP with registrar functionality Another WiFienabled laptop is setup as a station acting as an Enrollee 3. Configuration of a WiFi client using an external registrar. AP acts as a proxy and communicates with the client over EAP and with the Registrar over UPnP. 3.1. One WiFi-enabled laptop is setup as a station acting as an Enrollee 3.2. Second WiFi-enabled laptop is setup as the AP with proxy functionality 3.3. Third laptop is setup as the registrar. The registrar and the AP are connected over Ethernet. 6.3.1 Running the WPS command-line application Run the protocol from the console. First, run UPNP deamon like below: wscd -w /etc/xml -m 1 -d 3 & (if your xml file in /etc/xml) use iwpriv command trigger wps, like below: iwpriv ra0 set WscConfMode=7 iwpriv ra0 set WscConfStatus=1 iwpriv ra0 set WscMode=1 iwpriv ra0 set WscPinCode=31668576 iwpriv ra0 set WscGetConf=1 iwpriv ra0 set WscStatus=0 AP services as Enrollee: 1.1. If AP-Enrollee SC state is 0x1, AP will restart with new configurations. 1.2. If AP-Enrollee SC state is 0x2, AP sends own configurations to external-registrar and ignores configurations from external-registrar. 2. AP services as Registrar: 2.1. If AP-Registrar SC state is 0x1, the security mode will be WPAPSK/TKIP and generate random 64bytes psk; after process, AP will restart with new security. 3. WPS AP only services one WPS client at a time. 3.1. WPS AP only can work in ra0. FO 1. MediaTek Confidential © 2014 MediaTek Inc. Page 100 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.2. After WPS configuration finishes, Ralink AP driver writes new configuration to Cfg structure and DAT file. 4. Write items to MBSSID Cfg structure are as below: 4.1. Ssid 4.2. AuthMode 4.3. WepStatus 4.4. PMK 4.5. DefaultKeyId. 5. Write items to SharedKey table are as below: 5.1. Key 5.2. CipherAlg 6. Write items to DAT file are as belw: 6.1. SSID 6.2. AuthMode 6.3. EncrypType 6.4. WPAPSK 6.5. WscConfStatus 6.6. DefaultKeyID Note: wscd daemon must be ported to the target platform first. 6.3.2 Initial AP setup with Registrar Configuring AP (EAP/UPnP) To run command-line console in this mode do: [Unconfigured AP] EAP/UPnP [Registrar] Note: Please make sure upnp deamon is running. After the success of WPS registration, Configured AP will act as a proxy forward EAP and Upnp.) 1. PIN (1) on AP side iwpriv ra0 set WscConfMode=7 iwpriv ra0 set WscConfStatus=1 iwpriv ra0 set WscMode=1 iwpriv ra0 set WscGetConf=1 (2) FO 2. on Registrar side When prompted for the enrollee's PIN, Enter the AP's PIN. Enter the new SSID and new Security for the AP when prompted. The registration process will start, and the application will display the result of the process on completion. PBC (1) on AP side iwpriv ra0 set WscConfMode=7 iwpriv ra0 set WscConfStatus=1 iwpriv ra0 set WscMode=2 iwpriv ra0 set WscGetConf=1 (2) MediaTek Confidential on Registrar side © 2014 MediaTek Inc. Page 101 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Select push-button". The registration process will start, and the application will display the result of the process on completion. The security config will be written out to the AP and registrar config files. 6.3.3 Adding an Enrollee to AP+Registrar (EAP) To run command-line console in this mode do: [AP+Registrar] EAP [Client] Note: Please make sure WPS AP configure status is configured, if AP is un-configure, when WPS AP configure client, it will change configure status to configured and auth mode are WPA-PSK) 1. PIN (1) on AP side iwpriv ra0 set WscConfMode=7 iwpriv ra0 set PinCode=31668576 (enter the enrollee's PIN, the PIN from WPS client) iwpriv ra0 set WscMode=1 iwpriv ra0 set WscGetConf=1. The registration process will begin, and the console will display the result of the process on completion. (2) on Client (Enrollee) side Select PIN process. The process will start, and the application will display the result of the process on completion 2. PBC (1) on AP side iwpriv ra0 set WscConfMode=7 iwpriv ra0 set WscMode=2 iwpriv ra0 set WscGetConf=1. The registration process will start, and the application will display the result of the process on completion. (2) on Client (Enrollee) side Select PBC process. The process will start, and the application will display the result of the process on completion If the registration is successful, on the client will be re-configured with the new parameters, and will connect to the AP with these new parameters. 6.3.4 Adding an Enrollee with Eternal Registrar (UPnP/EAP) To run command-line console in this mode do: [Registrar] PnP [AP] EAP [Client] FO 1. PIN (1) on Registrar side When prompted for the enrollee's PIN, Enter the enrollee's PIN. AP Nothing to be selected.. MediaTek Confidential © 2014 MediaTek Inc. Page 102 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use (2) 2. The registration process will begin, and the application will display the result of the process on completion. on Client (Enrollee) side Select PIN process The process will start, and the application will display the result of the process on completion PBC (1) on Registrar side Select "push-button". AP Nothing to be selected. The registration process will begin, and the application will display the result of the process on completion. (2) on Client (Enrollee) side Select PBC process The registration process will start, and the application will display the result of the process on completion. 6.3.5 WPS Config status 6.3.5.1 Over View The 'Simple Config State' of WPS attribute in WPS IEs contained in beacon and probe response indicates if a device is configured.If an AP is shipped from the factory in the NotConfigured state (Simple Config State set to 0x01), then the AP must transition to the Configured state (Simple Config State set to 0x02) if any of the following occur: 1. Configuration by an external registrar. The AP sends the WSC_Done message in the External Registrar configuration process. 2. Automatic configuration by internal registrar. The AP receives the WSC_Done response in the Enrollee Registration Process from the first Enrollee. Note: The internal registrar waits until successful completion of the protocol before applying the automatically generated credentials to avoid an accidental transition from unconfigured to configured in the case that a neighbouring device tries to run WSC before the real enrollee, but fails. A failed attempt does not change the configuration of the AP, nor the Simple Config State. 3. Manual configuration by user. FO A user manually configures the AP using whatever interface(s) it provides to modify any one of the following: • the SSID • the encryption algorithm • the authentication algorithm • any key or pass phrase If the AP is shipped from the factory in the Not Configured state (Simple Config State set to 0x01), then a factory reset must revert the Simple Config State to Not Configured. If the AP is shipped from the factory pre-configured with WPA2-Personal mixed mode and a randomly generated key, the Simple Config State may be set to 'Configured' (0x2) to prevent MediaTek Confidential © 2014 MediaTek Inc. Page 103 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use an external registrar from overwriting the factory settings. A factory reset must restore the unit to the same configuration as when it was shipped. 6.4 Basic operation of Ralink WPS AP 6.4.1 Configure APUT using PIN method through a WLAN external Registrar 1. 2. 3. [Ralink AP] - Turn on the Ralink AP [Ralink AP] - To change AP ability “iwpriv ra0 set WscConfMode=7” [Ralink AP] - To change from configured to un-configured state: “iwpriv ra0 set WscConfStatus=1 “ 4. [Ralink AP] - To change config method to PIN “iwpriv ra0 set WscMode=1” 5. [Ralink AP] - Trigger Ralink AP start process WPS protocol “iwpriv ra0 set WscGetConf=1” 6. [Intel WPS STA] - The Registrar on Intel STA will be configured with the new parameters (SSID = “scaptest4.1.2ssid” and WPA(2)-PSK=”scaptest4.1.2psk”) which should be entered when prompted 7. [Intel WPS STA] - Read AP's PIN from console and enter the PIN at Intel STA. 8. [Intel WPS STA] - Verify that Intel STA successes to ping to Ralink AP 9. [Ralink STA] - Manually configure Ralink STA with the new parameters (SSID = “scaptest4.1.2ssid” and WPA (2)-PSK = “scaptest4.1.2psk”). 10. [Intel WPS STA] - Verify that Intel STA successes to ping to Ralink STA 6.4.2 Configure APUT using PIN method through a wired external registrar [Ralink AP] - Turn on the Ralink AP [Ralink AP] - Connect the Ethernet cable between AP and extern registrar(Windows Vista) and make sure you can pin our device from extern registrar first! 3. [Ralink AP] - To change AP ability “iwpriv ra0 set WscConfMode=7” 4. [Ralink AP] - To change from configured to un-configured state: “iwpriv ra0 set WscConfStatus=1 “ 5. [Ralink AP] - To change config method to PIN “iwpriv ra0 set WscMode=1” 6. [Ralink AP] - Trigger Ralink AP start process WPS protocol “iwpriv ra0 set WscGetConf=1” 7. [Microsoft STA] - The Registrar on Microsoft STA will be configured with the new wireless configuration settings (SSID = “scaptest4.1.3ssid” and WPA (2)-PSK=”scaptest4.1.3psk”), which should be entered when prompted. Please refer to below figures [7-1] to [7-6]. FO 1. 2. MediaTek Confidential © 2014 MediaTek Inc. Page 104 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use MediaTek Confidential © 2014 MediaTek Inc. Page 105 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use MediaTek Confidential © 2014 MediaTek Inc. Page 106 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1. [Microsoft STA] - Read AP's PIN from console and enter the PIN at Microsoft STA. FO Please refer to below figures [8-1] to [8-2]. MediaTek Confidential © 2014 MediaTek Inc. Page 107 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1. FO 2. [Ralink STA] - Manually configure Ralink STA with the new parameters (SSID = “scaptest4.1.3ssid” and WPA (2)-PSK passphrase= “scaptest4.1.3psk”). [Ralink STA] - Verify that Ralink STA successes to ping to Microsoft STA. MediaTek Confidential © 2014 MediaTek Inc. Page 108 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6.4.3 1. 2. 3. 4. 5. 6. 6.4.4 Add devices using external Registrars [Ralink AP] - Turn on the APUT. [Ralink STA] - Turn on the Ralink STA. [Ralink STA] - Push PIN button. [Microsoft STA] - Search will be configure enrollee (you can in control->network and internet->network and sharing center->add a device to the network). Enter the enrollee’s PIN(Ralink STA) at Microsoft STA when prompted. [Ralink AP] - Do not thing. [Ralink STA] - Verify that Ralink STA successes to ping Ralink A. How to know WPS AP services as Internal Registrar, Enrollee or Proxy It depends on the content of EAP-Response/Identity from WPS Client. When identity is “WFA-SimpleConfig-Registrar-1-0”: WPS AP would service as Enrollee. (After set trigger command) When identity is “WFA-SimpleConfig-Enrollee-1-0”: WPS AP would service as Internal Registrar and Proxy. Without trigger command, WPS AP services as proxy only. 6.4.5 How to know WPS AP PinCode Use ioctl query RT_OID_WSC_PIN_CODE OID to get AP PinCode. 6.4.6 1. 2. 3. 6.4.7 Notes for WPS AP services as Enrollee: 1.1. If AP-Enrollee SC state is 0x1, AP’s configuration is changeable and will restart with new configurations. 1.2. If AP-Enrollee SC state is 0x2, AP’s configuration is un-changeable. AP sends own configurations to external-registrar and ignores configurations from external-registrar. AP services as Registrar: 2.1. If AP-Registrar SC state is 0x1, the security mode will be WPAPSK/TKIP and generate random 64bytes psk; after process, AP will restart with new security. AP services as Proxy: 3.1. The value of SC state has no effect in proxy mode. 3.2. WPS AP only services one WPS client at a time. 3.3. WPS AP only can work in ra0. Compile flag for WPS AP WFLAGS += -DWSC_SUPPORT FO 6.4.8 1. 2. 3. WPS related Document Wi-Fi Protected Setup Specification v1.0 (member only) Wi-Fi Protected Setup White Paper Introducing Wi-Fi Protected Setup MediaTek Confidential © 2014 MediaTek Inc. Page 109 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 4. 5. 6. WSC Linux** Reference Implementation How to Use Windows Connect Now Configuration to Enable Simple Setup for Consumer Wi-Fi Wi Networks [WinHEC 2006; 5.83 MB] Network Infrastructure Device Implementer’s Guide 6.5 UPNP Daemon HOWTO 6.5.1 Build WPS UPnP Daemon Requirements: 1. 2. 3. 4. Linux platform Ralink wireless driver version which support WPS Libupnp You can download the libupnp source code from the following URL: http://upnp.sourceforge.net/ libupnp-1.3.1 1.3.1 is preferred version. For other versions, you may need to patch our modification to the library yourself. POSIX thread library Both libupnp and our WPS UPnP UPnP daemon need the POSIX thread library, following are recommended pthread library version. For uCLibc, need the version >= 0.9.27 For GLIBC, need the version >= 2.3.2 If your pthread library is older than upper list, you may need to upgrade it. Build and Run: 1. 2. 3. 4. FO 5. Modify the “$(work_directory)/wsc_upnp/Makefile” and change the compile flags depends on your target platform. Ex. For arm-Linux Linux target platform, you may need to set the following fags: CROSS_COMPILE = arm-Linuxarm TARGET_HOST = arm-Linux arm WIRELESS_H_INCLUDE_PATH = /usr/src/kernels/2.6.11-1.1369_FC4/usr/src/kernels/2.6.11 smp-i686/include/ i686/include/ Modify the “$(work_directory)/wsc_upnp/libupnp-1.3.1/Makefile.src” “$(work_directory)/wsc_upnp/libupnp 1.3.1/Makefile.src” and change the configure parameters. Ex. For big-endian endian system, you may need to add CFAGS as following: ./configure igure --host=$(TARGET_HOST) CFLAGS="-mbig-endian" endian" Compile it Run “make” in “$(work_directory)/wsc_upnp”, after successful compilation, you will get an execution file named “wscd”. Install Create a sub-directory directory named “xml” in the “/etc” of your target platform plat Copy all files inside in “$(work_directory)/wsc_upnp/xml” to “/etc/xml” Copy the “wscd” to the target platform. Run it Before run it, be sure the target platform already has set the default route or has a route entry for subnet 239.0.0.0 (For UuPnP Multicast) Multicast). Or the WPS daemon will failed when do initialization. Now you can run it by following command: /bin/wscd –m 1 –d 3 MediaTek Confidential © 2014 MediaTek Inc. Page 110 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Related Document: 1. 2. 3. 4. 5. WPS Specification (Simple_Config_v1.0g.pdf) UPnP Device Architecture 1.0 Windows Connect Now-NET Version 1.0 WFAWLANConfig:1 Service Template Version 1.01 WFA Device:1 Device Template Version 1.01 6.6 WPS Command & OID Example 6.6.1 Iwpriv command without argument iwpriv command: iwpriv ra0 wsc_start iwpriv ra0 wsc_stop iwpriv ra0 wsc_gen_pincode OID: Example: FO memset(&lwreq, 0, sizeof(lwreq)); sprintf(lwreq.ifr_name, "ra0", 3); iwreq.u.mode = WSC_STOP; /* Perform the private ioctl */ if(ioctl(skfd, RTPRIV_IOCTL_SET_WSC_PROFILE_U32_ITEM, &lwreq) < 0) { fprintf(stderr, "Interface doesn't accept private ioctl...\n"); MediaTek Confidential © 2014 MediaTek Inc. Page 111 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 7 WMM PARAMETERS 7.1 Setting Parameters 1. 2. 3. 4. 5. 1. 2. 7.2 All WMM parameters do not support iwpriv command but ‘WmmCapable’’, please store all parameter to RT2800AP.dat, and restart driver. The format for WMM parameter is as followed, APAifsn=3;7;1;1 //AC_BE, AC_BK, AC_VI, AC_VO How to Run WMM test 1. FO Set ‘WmmCapable’ as 1 to turn on WMM QoS support Parameters of ‘APAifsn’, ‘APCwmin’, ‘APCwmax’, ‘APTxop’, ‘APACM’ are WMM parameter for AP Parameters of ‘BSSAifsn’, ‘BSSCwmin’, ‘BSSCwmax’, ‘BSSTxop’, ‘BSSACM’ are WMM parameter for station Parameter of AckPolicy is for Ack policy which support normal Ack or no Ack Default WMM parameters for STA and AP WmmCapable=1 For each BSSID: 0: Disable WMM, 1: Enable WMM MediaTek Confidential © 2014 MediaTek Inc. Page 112 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use ( If the parameter sets to 1, the relative BSSID will turn on WMM) TxBurst=0 2. 3. Parameters for AP (for each AC (access category)) APAifsn=3;7;1;1 // AC_BE;AC_BK;AC_VI;AC_VO APCwmin=4;4;3;2 // AC_BE;AC_BK;AC_VI;AC_VO APCwmax=6;10;4;3 // AC_BE;AC_BK;AC_VI;AC_VO APTxop=0;0;94;47 // AC_BE;AC_BK;AC_VI;AC_VO APACM=0;0;0;0 // AC_BE;AC_BK;AC_VI;AC_VO Parameters for all STAs (for each AC (access category)) BSSAifsn=3;7;2;2 // AC_BE;AC_BK;AC_VI;AC_VO BSSCwmin=4;4;3;2 // AC_BE;AC_BK;AC_VI;AC_VO BSSCwmax=10;10;4;3 // AC_BE;AC_BK;AC_VI;AC_VO BSSTxop=0;0;94;47 // AC_BE;AC_BK;AC_VI;AC_VO BSSACM=0;0;0;0 // AC_BE;AC_BK;AC_VI;AC_VO Ack policy AckPolicy=0;0;0;0 // AC_BE;AC_BK;AC_VI;AC_VO; // 0: Normal ACK, 1: No ACK 4. 5. All default values comply with Wi-Fi spec. 7.3 WMM “The Ack” Current driver of RT2800AP only support NORMAL_ACK and NO_ACK. Section 11.1, item 4 Parameter of AckPolicy is for an Ack policy which supports normal Ack or no Ack. The other two ack types have to be supported by the hardware. 2. The difference of ACKs a. NORMAL_ACK is used to ACK data packet. b. NO_ACK is used never ACK any data packet. c. NO_EXPLICIT_ACK have two ways to implement, By received packet count threshold to ACK. By timeing period threshold to ACK. d. BLOCK_ACK is used to ACK data packet per ACK request packet received. If peer didn't request to ACK then never ACK. This type of ACK is depends on what AIR quality is. 1.) AIR quality is bad, then the ACK should be mostly required. 2.) AIR quality is good, then the ACK period maybe longer or even needn't ACK. 3. Reference: Below table is pasted from IEEE802.11e-D13.0 for your reference.(Page 27 and 28) FO 1. Table 3.2—Ack policy field in QoS control field of QoS data frames Bits in QoS Meaning Control field Bit Bit 5 6 Normal acknowledgement. The addressed recipient returns an ACK or 0 0 MediaTek Confidential © 2014 MediaTek Inc. Page 113 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1 0 0 1 1 1 7.4 QoS +CF-Ack frame after a SIFS period, according to the procedures defined in 9.2.8, 9.3.3 and 9.9.2.3. The Ack Policy field is set to this value in all directed frames in which the sender requires acknowledgement. For QoS Null (no data) frames, this is the only permissi-ble value for the Ack Policy field. No Acknowledgement. The addressed recipient takes no action upon receipt of the frame. More details are provided in 9.11. The Ack Policy is set to this value in all directed frames in which the sender does not require acknowledgement. This combination is also used for broadcast and multicast frames that use the QoS frame format. No Explicit Acknowledgement. There may be a response frame to the frame that is received, but it is neither the ACK nor any Data frame of subtype +CF-Ack. For Data frames of subtype QoS CF-Poll and subtype QoS CF-Ack+CF-Poll, this is the only permissible value for the Ack Policy field. Block Acknowledgement. The addressed recipient takes no action upon the receipt of the frame except for recording the state. The recipient can expect a BlockAckReq frame in the future to which it responds using the procedure described in 9.10. Access Precedence and Outgoing Frame Classification 1. 802.1e-D13 1.1. Section 7.3.2.16 Traffic Classification (TCLAS) Element Table 20.7—Frame classifier type Classifier Type 0 1 Classifier Parameters Ethernet parameters TCP/UDP IP parameters 2 IEEE 802.1D/Q Parameters 3-255 Reserved 1.2. Section 9.1.3.1 HCF contention-based channel access (EDCA) Table 20.23—User priority to Access Category mappings Priority lowest highest FO 2. User priority (UP - Same as 802.1D User Priority) 802.1D Designation 1 2 0 3 4 5 6 7 BK BE EE CL VI VO NC Access Category (AC) AC_BK AC_BK AC_BE AC_BE AC_VI AC_VI AC_VO AC_VO Designation (Informative) Background Background Best Effort Best Effort Video Video Voice Voice 802.1Q-2003 2.1. Section 8.9 VLAN classification 3. 802.1q-rev-d4.0-2005-05-19 3.1. Section 6.8 Protocol VLAN classification MediaTek Confidential © 2014 MediaTek Inc. Page 114 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 3.2. 4. Section 9. Tagged frame format Table 9-1—802.1Q Ethernet Type allocations Tag Type Name Value VLAN TAG 802.1Q Tag Protocol Type (802.1QTagType) 81-00 RFC 2474 Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers (802.11e - Differentiated Services Code Point (DSCP)) 5. RFC 791 Internet Protocol 6. RFC 795 6.1. Service mappings – TOS of IP Header The IP Type of Service has the following fields: Bit 0-2 Precedence. Bit 3 0 = Normal Delay, 1 = Low Delay. Bit 4 0 = Normal Throughput, 1 = High Throughput. Bit 5 0 = Normal Relibility, 1 = High Relibility. Bit 6-7 Reserved for Future Use. FO 0 1 2 3 4567 PRECEDENCE D T R 00 111 - Network Control 110 - Internetwork Control 101 - CRITIC/ECP 100 - Flash Override 011 - Flash 010 - Immediate 001 – Priority 000 - Routine MediaTek Confidential © 2014 MediaTek Inc. Page 115 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 8 IEEE802.11h+d DFS - Dynamic Frequency Selection 8.1 IEEE802.11d Regulatory Domains 1. 2. 3. 8.2 To turn on IEEE802.11d, just fill up the parameter of ‘CountryCode’, according to ISO3166 code list. This parameter can work in A/B/G band. The parameter of “CountryCode’ needs to match with ‘CountryRegion’ or ‘CountryRegionABand’ depends on A or B/G band Wi-Fi test requirement for IEEE802.11d Country code IE(0x07) includes in beacon frame and probe response Power constraint IE(32) includes in beacon frame and probe response IEEE802.11h Spectrum and Transmit Power Management 1. 2. 3. 4. 5. FO 6. To turn on IEEE802.11h, just fill up the parameters of ‘IEEE80211H’, ‘AutoChannelSelect’ as 1, WirelessMode set as 3 to support A band. This parameter can work in only A band. Use ‘CSPeriod’ to determine how many beacons before channel switch Driver will turn off BBP tuning temporarily in radar detection mode If turn on IEEE802.11h, AP will have 60sec to do channel available check, and will not send beacon and can not be connect. Wi-Fi test requirement for IEEE802.11h Force AP switch channel, AP will stop beacon transmit between 15 sec At least five beacon includes channel switch announcement IE (37 )in beacon frame ETSI test requirement, please refer to ETSI EN 301 893 for V1.2.3 detail MediaTek Confidential © 2014 MediaTek Inc. Page 116 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use MediaTek Confidential © 2014 MediaTek Inc. Page 117 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 9 SECURITY POLICY 9.1 All possible combinations of security policy Type I. No Radius (Must set parameter of IEEE8021X as FALSE) OPEN SHARED WEPAUTO NONE V X X WEP V V V 802.1x daemon Off Off Off Type II. With Radius (Non WiFi standard) (Must set parameter of IEEE8021X as TRUE) NONE WEP 802.1x daemon OPEN V V On Type III. With WPA (Must set parameter of IEEE8021X as FALSE) TKIP AES BOTH 802.1x daemon WPA WPA2 V V V WPAPSK WPA2PSK V V V V V V V V V WPA WPA2 V V V Off Off On On On WPAPSK WPA2PSK V V V Off The “off” of 802.1x daemon means may be off, it also can be “on” However “on” of 802.1x daemon means must be “on” There are no relationship between the parameter of IEEE8021X and 802.1x daemon (RT2860apd). 9.2 WP2 Setting All settings are same as WPA, but modify attributes --- AuthMode, EncrypType, PreAuth, PMKCachePeriod. Examples 9.3.1 OPEN/NONE FO 9.3 On Step-by-Step setting of how to set SoftAP using OPEN security mechanism. MediaTek Confidential © 2014 MediaTek Inc. Page 118 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 1. 2. 3. 4. 5. 9.3.2 load WLAN SoftAP driver iwpriv ra0 set AuthMode=OPEN iwpriv ra0 set EncrypType=NONE iwpriv ra0 set IEEE8021X=0 iwpriv ra0 set SSID=myownssid SHARED/WEP On Step-by-Step setting of how to set SoftAP using WEP security mechanism. Assume RT2800 SoftAP uses user-defined key. 1. 2. 3. 4. 5. 6. 7. 9.3.3 load WLAN SoftAP driver iwpriv ra0 set AuthMode=SHARED iwpriv ra0 set EncrypType=WEP iwpriv ra0 set IEEE8021X=0 iwpriv ra0 set Key1=0123456789 iwpriv ra0 set DefaultKeyID=1 iwpriv ra0 set SSID=myownssid WPAPSK/TKIP On Step-by-Step setting of how to set SoftAP using WPAPSK security mechanism with encryption method TKIP. Assume RT2800 SoftAP set PreShared Key as "myownpresharedkey". Please ensure to set SSID, before/after set WPAPSK. 1. 2. 3. 4. 5. 6. 7. 8. 9.3.4 load WLAN SoftAP driver iwpriv ra0 set AuthMode=WPAPSK iwpriv ra0 set EncrypType=TKIP iwpriv ra0 set IEEE8021X=0 iwpriv ra0 set SSID=myownssid iwpriv ra0 set WPAPSK=myownpresharedkey iwpriv ra0 set DefaultKeyID=2 iwpriv ra0 set SSID=myownssid WPAPSK/AES Change setting to WPAPSK with AES. 1. iwpriv ra0 set AuthMode=WPAPSK 2. iwpriv ra0 set EncrypType=AES 3. iwpriv ra0 set IEEE8021X=0 4. iwpriv ra0 set SSID=MySsid 5. iwpriv ra0 set WPAPSK=MyPassword 6. iwpriv ra0 set DefaultKeyID=2 7. iwpriv ra0 set SSID=MySsid FO Note: Step 3 is a must for calculating WPAPSK Key, which requires both SSID and WPAPSK. Step 5 will make driver to reload all settings. step5 must be the same with step3. MediaTek Confidential © 2014 MediaTek Inc. Page 119 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 10 Authenticator rt2860apd - user space IEEE 802.1X Authenticator rt2860apd is an optional user space component for RT2800 SoftAP driver. It adds 802.1x Authenticator feature using external RADIUS Authentication Server (AS). 10.1 I EEE 802.1X features in rt2860apd IEEE Std 802.1X-2001 is a standard for port-based network access control. It introduces a extensible mechanism for authenticating and authorizing users. rt2860apd implements partial IEEE 802.1x features that helps AS authorizing Supplicant and in the mean time proves itself a valid Authenticator for AS. Noticed that Key management state machine is not included in rt2860apd. And those keys management is included in RT2800 SoftAP driver. rt2860apd relays the frames between the Supplicant and the AS. Not until either one timeout or Success or Fail frame indicated does rt2860apd finish the authentication process. The port control entity is implemented in SoftAP driver for RT2800. 10.2 How to start rt2860apd Manually start rt2860apd, type “$rt2860apd”. 10.3 rt2860apd configuration for IEEE 802.1X When rt2860apd starts, it reads the configuraion file to derive parameters. For any changes to make, one need to first edit the configuration file, then restart rt2860apd. Please add 4 required parameters in the configuration file for WLAN SoftAP driver (RT2860AP.dat/RT2870AP.dat). RADIUS_Server='192.168.2.3' RADIUS_Port='1812' RADIUS_Key='password' own_ip_addr='your_ip_addr' The word in ' ' must be replaced with your own correct setting. Please make sure 'your_ip_addr' and RADIUS_Server is connected and RADIUS_Server's IAS (or related) services are started. The optional variables as below, FO session_timeout_interval is for 802.1x reauthentication setting. set to zero to disable 802.1x reauthentication service for each session. session_timeout_interval unit is second and must be larger than 60. MediaTek Confidential © 2014 MediaTek Inc. Page 120 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use For example, session_timeout_interval = 120 reauthenticate each session every 2 minutes. - 10.4 session_timeout_interval = 0 disable reauthenticate service. EAPifname is assigned as the binding interface for EAP negotiation. Its default value is "br0". But if the wireless interface doesn't attach to bridge interface or the bridge interface name isn't "br0", please modify it. For example, EAPifname=br0 PreAuthifname is assigned as the binding interface for WPA2 Pre-authentication. Its default value is "br0". But if the ethernet interface doesn't attach to bridge interface or the bridge interface name isn't "br0", please modify it. For example, PreAuthifname=br0 Support Multiple RADIUS Servers We use complier option to turn on/off the multiple RADIUS servers for 802.1x. If you want to enable the feature, make sure that "MULTIPLE_RADIUS" is defined in Makefile. Default is disabled. Besides, you must modify the file "RT2860AP.dat" to cooperate with 802.1x. We extend some variables to support individual RADIUS server IP address, port and secret key for MBSS. E.g. RADIUS_Server=192.168.2.1;192.168.2.2;192.168.2.3;192.168.2.4 RADIUS_Port=1811;1812;1813;1814 RADIUS_Key=ralink_1;ralink_2;ralink_3;ralink_4 RADIUS_Server=10.10.10.1; 10.10.10.2; 10.10.10.3; 10.10.10.4 RADIUS_Port=1812;1812;1812;1812 RADIUS_Key=ralink_5;ralink_6;ralink_7;ralink_8 Or RADIUS_Key1=ralink_1; RADIUS_Key1=ralink_5; RADIUS_Key2=ralink_2; RADIUS_Key2=ralink_6; RADIUS_Key3=ralink_3; RADIUS_Key3=ralink_7; RADIUS_Key4=ralink_4; RADIUS_Key4=ralink_8; FO For backward compatibility, the driver parses "RADIUS_Key" or RADIUS_KeyX"(X=1~4) for radius key usage. But the paramter "RADIUS_Key" has the first priority. This implies, The RADIUS server IP of ra0 is 192.168.2.1, its port is 1811 and its secret key is ralink_1. The RADIUS server IP of ra1 is 192.168.2.2, its port is 1812 and its secret key is ralink_2. MediaTek Confidential © 2014 MediaTek Inc. Page 121 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use The RADIUS server IP of ra2 is 192.168.2.3, its port is 1813 and its secret key is ralink_3. The RADIUS server IP of ra3 is 192.168.2.4, its port is 1814 and its secret key is ralink_4. If your wireless interface prefix is not "ra", please modify these variables. Setup Multiple RADIUS Server failover by iwpriv: iwpriv ra0 set RADIUS_Server=192.168.1.1;192.168.1.2 iwpriv ra0 set RADIUS_Port=1812;1813 iwpriv ra0 set RADIUS_Key=mediatek123;mediatek456 10.5 Enhance dynamic wep keying In OPEN-WEP with 802.1x mode, the authentication process generates broadcast and unicast key. The unicast key is unique for every individual client so it is always generated randomly by 802.1x daemon. But the broadcast key is shared for all associated clients; it can be pre-set manually by users or generated randomly by 802.1x daemon. Through the parameter "DefaultKeyID" and its corresponding parameter "KeyXStr"(i.e. X = the value of DefaultKeyID) in RT2860Ap.dat, the 802.1x daemon would use it as the broadcast key material. But if the corresponding parameter "KeyXStr" is empty or unsuitable, the broadcast key would be generated randomly by the 802.1x daemon. The 802.1x daemon need to read RT2860AP.dat to decide whether the broadcast key is generated randomly or not, so please update the RT2860AP.dat and restart rt2860apd if those correlative parameters are changed. 10.6 Examples for Radius server configuration 10.6.1 Example I This is a step-by-step guide to set SoftAP using WPA security mechanism. Assume RT2800 SoftAP has ip address 192.168.1.138, AS (Authentication Server) has IP address 192.168.1.1, Radius Secret is myownkey. 1. load WLAN SoftAP driver 2. 3. First edit configuration file with correct value, esp. the following parameters that relate to the authentication features of RT2800AP.dat RADIUS_Server=192.168.1.1 RADIUS_Port=1812 RADIUS_Key=myownkey own_ip_addr=192.168.1.138 start RT2800apd daemon by typing. FO 4. 5. MediaTek Confidential $insmod rt2860ap.o $rt2860apd iwpriv ra0 set AuthMode=WPA iwpriv ra0 set EncrypType=TKIP © 2014 MediaTek Inc. Page 122 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 6. 7. 8. 10.6.2 iwpriv ra0 set DefaultKeyID=2 iwpriv ra0 set IEEE8021X=0 iwpriv ra0 set SSID=myownssid Example II Change 802.1x settings to WPA with TKIP, using 802.1x authentication. 1. Modify 4 parameters RADIUS_Server=192.168.2.3 RADIUS_Port=1812 RADIUS_Key=password own_ip_addr=192.168.1.123 2. 3. 4. 5. in the RT2860AP.dat and save. iwpriv ra0 set AuthMode=WPA iwpriv ra0 set EncrypType=TKIP iwpriv ra0 set IEEE8021X=0 iwpriv ra0 set SSID=myownssid Note: Step 4 restarts the rt2860apd, and is essential. 10.6.3 Example III Change setting to OPEN/WEP with 802.1x. 1. iwpriv ra0 set AuthMode= OPEN 2. iwpriv ra0 set EncrypType= WEP 3. iwpriv ra0 set IEEE8021X=1 Note: "IEEE8021X=1" only when Radius-WEP or Radius-NONE mode on, otherwise must "IEEE8021X=0". 10.6.4 Example V FO Change setting to OPEN/NONE with 802.1x. 1. iwpriv ra0 set AuthMode= OPEN 2. iwpriv ra0 set EncrypType= NONE 3. iwpriv ra0 set IEEE8021X=1 Note: "IEEE8021X=1" only when Radius-WEP or Radius-NONE mode on , otherwise must "IEEE8021X=0". MediaTek Confidential © 2014 MediaTek Inc. Page 123 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11 AP CLIENT The AP-Client function provides a 1-to-N MAC address mapping mechanism such that multiple stations behind the AP can transparently connect to the other AP even they didn’t support WDS. When enable the AP-Client function, RT2800 driver will create two interfaces, one is the AP interface which provide the features of Access Point, the other is the station interface used to connect to the remote AP. Besides, the software bridge function is used to forward packets between these two interfaces. The figure 1 shows the network topology and operation module of our AP-client function. The AP1 is an AP-Client feature enabled Access Point and have two wireless interfaces, ra0 and cli0, which provide the AP and station functions, respectively. The AP2 is a legacy Access Point that supports normal AP functions. STA1 associated to AP1 and the STA4 associated to AP2. In general, if the STA1 want to communicate with STA4, the AP2 and AP1 must support WDS or a physical network connection between AP1 and AP2. Now, with the support the APClient function, the AP1 can use build-in station interface cli0 connect to AP2, and then STA1 can communicate with STA4 transparently and didn’t do any modifications. Also, the stations connect to the AP1 through the Ethernet line also can communicate with STA4 or access the Internet through AP2 transparently. FO Before enable the AP-Client feature, there are some restrictions need to remind (1). Due to the limitation of 1-to-N MAC address mapping, AP-Client function currently only support following protocols: (a). All IP-based network applications (b). ARP (c). DHCP (d). PPPoE (2). The last 2 hexadecimal number of the Mac address of our device must be the multiple of 4. (3). The OS must provide a software bridge function can bridge multiple network interfaces. It’s simple to enable the feature of AP-Client; you just need to set the flag “HAS_APCLIENT” as “y” in the driver Makefile and got it. MediaTek Confidential © 2014 MediaTek Inc. Page 124 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.1 Setup AP Client 1. 2. 3. 4. 5. 6. Edit file in /etc/Wireless/RT2800AP/RT2800AP.dat to add a) ApCliEnable=1 b) ApCliSsid=AP2 c) ApCliBssid=00:10:20:30:40:50 (optional) d) ApCliAuthMode=WPAPSK e) ApCliEncrypType=TKIP f) ApCliWPAPSK=12345678 Like the procedure of bringing up main BSSID (ra0), it also must to add "/sbin/ifconfig apcli0 up" and "/usr/sbin/brctl addif br0 apcli0". The AP-client's security policy only supports NONE, WEP (OPEN, SHARED), WPAPSK and WPA2PSK (TKIP, AES). Set the "HAS_APCLI" flag as "y" in config.mk to enable or disable this function. If enable AP client function, the maximum multiple BSSID number would be 7 and the field 'BssidNum' shall larger than 1 and less than 7. Users can also configure AP Client by iwpriv command. 11.2 Support Parameters in RT2860AP.dat 11.2.1 ApCliEnable Description: enable or disable AP client function Value: ApCliEnable=1 0: disable 1: enable 11.2.2 ApCliSsid Description: The target SSID which AP client is going to connect with it. Value: ApCliSsid=target_ssid 1~32 characters 11.2.3 ApCliBssid Description: Set the BSSID which the AP Client wants to join Value: ApCliBssid=00:11:22:33:44:55 FO [MAC address] MediaTek Confidential © 2014 MediaTek Inc. Page 125 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Note: It is an optional command. Users can indicate the desired BSSID by this command.Otherwise, AP Client can also get appropriate BSSID according to SSID automatically. 11.2.4 ApCliWPAPSK Description: Set the WPA pre-shared key of AP client. Value: ApCliWPAPSK=12345678 8 ~ 63 ASCII characters or 64 hexadecimal characters 11.2.5 ApCliAuthMode Description: Set the AP Client authentication mode Value: ApCliAuthMode=OPEN OPEN SHARED WPAPSK WPA2PSK 11.2.6 ApCliEncrypType Description: Set the AP client encryption type. Value: ApCliEncrypType=NONE NONE: WEP: TKIP: AES: 11.2.7 ApCliAuthMode =OPEN ApCliAuthMode =OPEN or SHARED ApCliAuthMode =WPAPSK or WPA2PSK ApCliAuthMode =WPAPSK or WPA2PSK ApCliDefaultKeyID Description: Set the default key index of AP client Value: ApCliDefaultKeyID=1 FO 1~4 MediaTek Confidential © 2014 MediaTek Inc. Page 126 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.2.8 ApCliKey1Type Descripion: Set the WEP key type of AP client for key index 1. Value: ApCliKey1Type=0 0: Hexadecimal 1: ASCII 11.2.9 ApCliKey1Str Description: Set the WEP key string of AP client for key 1 Value: ApcliKey1Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.2.10 ApCliKey1Type Descripion: Set the WEP key type of AP client for key index 1. Value: ApCliKey1Type=0 0: Hexadecimal 1: ASCII 11.2.11 ApCliKey2Str Description: Set the WEP key string of AP client for key 2 Value: ApcliKey2Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.2.12 ApCliKey2Type Descripion: Set the WEP key type of AP client for key index 2. Value: ApCliKey2Type=0 FO 0: Hexadecimal 1: ASCII MediaTek Confidential © 2014 MediaTek Inc. Page 127 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.2.13 ApCliKey3Str Description: Set the WEP key string of AP client for key 3 Value: ApcliKey3Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.2.14 ApCliKey4Type Descripion: Set the WEP key type of AP client for key index 4. Value: ApCliKey4Type=0 0: Hexadecimal 1: ASCII 11.2.15 ApCliKey4Str Description: Set the WEP key string of AP client for key 4 Value: ApcliKey4Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.2.16 ApCliTxMode Description: Set transmission mode for AP-Client traffic Value: ApCliTxMode=HT cck|CCK, ofdm|OFDM, ht|HT 11.2.17 ApCliTxMcs Description: Set TX MCS for AP client Value: ApCliTxMcs=33 FO 0~15, or 33 (Auto) MediaTek Confidential © 2014 MediaTek Inc. Page 128 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.2.18 ApCliWscSsid Description: Set the SSID which the AP-Client wants to negotiate WPS Value: ApCliWscSsid=target_ssid 1~32 characters 11.3 AP Client iwpriv command Syntax: iwpriv apcli0 set [Paramster]=[Value] 11.3.1 ApCliEnable Description: enable or disable AP client function Value: iwpriv apcli0 set ApCliEnable=0 0: disable 1: enable 11.3.2 ApCliSsid Description: Set the target SSID which AP Client wants to connect with Value: iwpriv apcli0 set ApCliSsid=target_ssid 1~32 characters 11.3.3 ApCliBssid Description: Set BSSID which AP Client wants to join Value: iwpriv apcli0 set ApCliDssid=00:11:22:33:44:55 [MAC address] Note: It is an optional command. Users can indicate the desired BSSID by this command. Otherwise, AP Client can also get appropriate BSSID according to SSID automatically. 11.3.4 ApCliWPAPSK FO Description: AP Client WPA Pre-Shared Key MediaTek Confidential © 2014 MediaTek Inc. Page 129 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use Value: iwpriv apcli0 set ApCliWPAPSK=12345678 8~63 ASCII 64 HEX characters 11.3.5 ApCliAuthMode Description: Set AP Client Authentication mode Value: iwpriv apcli0 set ApCliAuthMode=OPEN OPEN SHARED WPAPSK WPA2PSK 11.3.6 ApCliEncrypType Description: Set AP Client Encryption Type Value: iwpriv apcli0 set ApCliEncrypType=NONE NONE WEP TKIP AES 11.3.7 ApCliWscSsid Description: Set the SSID which the AP-Client wants to negotiate WPS Value: iwpriv apcli0 set ApCliWscSsid=target_ssid 1~32 characters 11.3.8 ApCliDefaultKeyID Description: Set the default key index of AP client Value: iwpriv apcli0 set ApCliDefaultKeyID=1 FO 1~4 MediaTek Confidential © 2014 MediaTek Inc. Page 130 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.3.9 ApCliKey1Type Descripion: Set the WEP key type of AP client for key index 1. Value: iwpriv apcli0 set ApCliKey1Type=0 0: Hexadecimal 1: ASCII 11.3.10 ApCliKey1Str Description: Set the WEP key string of AP client for key 1 Value: iwpriv apcli0 set ApcliKey1Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.3.11 ApCliKey1Type Descripion: Set the WEP key type of AP client for key index 1. Value: iwpriv apcli0 set ApCliKey1Type=0 0: Hexadecimal 1: ASCII 11.3.12 ApCliKey2Str Description: Set the WEP key string of AP client for key 2 Value: iwpriv apcli0 set ApcliKey2Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.3.13 ApCliKey2Type Descripion: Set the WEP key type of AP client for key index 2. Value: iwpriv apcli0 set ApCliKey2Type=0 FO 0: Hexadecimal 1: ASCII MediaTek Confidential © 2014 MediaTek Inc. Page 131 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.3.14 ApCliKey3Str Description: Set the WEP key string of AP client for key 3 Value: iwpriv apcli0 set ApcliKey3Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.3.15 ApCliKey4Type Descripion: Set the WEP key type of AP client for key index 4. Value: iwpriv apcli0 set ApCliKey4Type=0 0: Hexadecimal 1: ASCII 11.3.16 ApCliKey4Str Description: Set the WEP key string of AP client for key 4 Value: iwpriv apcli0 set ApcliKey4Str=012345678 10 or 26 hexadecimal characters eg: 012345678 5 or 13 ASCII characters eg: passd 11.4 AP Client Examples 11.4.1 Enable AP Client with OPEN/NONE data security iwpriv apcli0 set ApCliEnable=0 iwpriv apcli0 set ApCliAuthMode=OPEN iwpriv apcli0 set ApCliEncrypType=NONE iwpriv apcli0 set ApCliSsid=AP2 iwpriv apcli0 set ApCliEnable=1 FO 11.4.2 Enable AP Client with OPEN/WEP security iwpriv apcli0 set ApCliEnable=0 iwpriv apcli0 set ApCliAuthMode=OPEN iwpriv apcli0 set ApCliEncrypType=WEP iwpriv apcli0 set ApCliDefaultKeyID=1 iwpriv apcli0 set ApCliKey1=1234567890 iwpriv apcli0 set ApCliSsid=AP2 iwpriv apcli0 set ApCliEnable=1 MediaTek Confidential © 2014 MediaTek Inc. Page 132 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 11.4.3 Enable AP Client with SHARED/WEP security iwpriv apcli0 set ApCliEnable=0 iwpriv apcli0 set ApCliAuthMode=SHARED iwpriv apcli0 set ApCliEncrypType=WEP iwpriv apcli0 set ApCliDefaultKeyID=2 iwpriv apcli0 set ApCliKey2=2345678901 iwpriv apcli0 set ApCliSsid=AP2 iwpriv apcli0 set ApCliEnable=1 11.4.4 Enable AP Client with WPAPSK/TKIP security iwpriv apcli0 set ApCliEnable=0 iwpriv apcli0 set ApCliAuthMode=WPAPSK iwpriv apcli0 set ApCliEncrypType=TKIP iwpriv apcli0 set ApCliSsid=AP2 iwpriv apcli0 set ApCliWPAPSK=12345678 iwpriv apcli0 set ApCliSsid=AP2 iwpriv apcli0 set ApCliEnable=1 11.4.5 Enable AP Client with WPAPSK/AES security iwpriv apcli0 set ApCliEnable=0 iwpriv apcli0 set ApCliAuthMode=WPA2PSK iwpriv apcli0 set ApCliEncrypType=AES iwpriv apcli0 set ApCliSsid=AP2 iwpriv apcli0 set ApCliWPAPSK=12345678 iwpriv apcli0 set ApCliSsid=AP2 iwpriv apcli0 set ApCliEnable=1 11.4.6 AP Client WPS sample command PIN mode: iwpriv apcli0 set WscConfMode=1 iwpriv apcli0 set WscConfStatus=1 iwpriv apcli0 set WscMode=1 iwpriv apcli0 set WscGetConf=1 FO PBC Mode: iwpriv apcli0 set WscConfMode=1 iwpriv apcli0 set WscConfStatus=1 iwpriv apcli0 set WscMode=2 iwpriv apcli0 set WscGetConf=1 MediaTek Confidential © 2014 MediaTek Inc. Page 133 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 12 WDS Wireless Distribution System. Each WDS APs need seting as same channel, encryption type. (not support mixed mode, like WPAPSKWPA2PSK). WDS Security support up to pre-shared key, this is inter AP’s security and no 802.1x support. In case want have auto-learning WDS peers, Lazy mode is the one. But have to note that can’t set each AP to Lazy mode, otherwise no addr4 will be carried by each AP. This means that there at least has one AP have to fill WDS list. 12.1 HOW to Steup WDS 1. edit file in /etc/Wireless/RT2860AP/RT2860AP.dat to add (a). WdsEnable=1 (b). WdsList=00:10:20:30:40:50; ;Another AP's MAC address (c). WdsEncrypType=NONE ;the encryption type in WDS interface 2. edit script file bridge_setup according to the number of WDS-AP add "/usr/sbin/brctl addif br0 wds0" and "/sbin/ifconfig wds0 0.0.0.0" to relative place. 3. re-load WLAN driver(rt2860ap.o) 4. run bridge_setup 12.2 WDS Individual Encryption If the WDS mode is enabled and set as LAZY mode, the all WDS-link shall share the same encryption type and key material (based on wds0 setting). Otherwise, each WDS-link has own individual security setting. No matter what WDS mode is set; it has no any relation to the encryption of BSSIDs. Although the new WDS implementation has been provided, it alos supports previous WDS configuration. A: WdsKey: WdsKey is used for all WDS interface and support AES or TKIP encryption only. WEP key will follow main-AP’s setting. Wds0Key/Wds1Key/Wds2Key/Wds3Key is used to support all of the encryption per WDS interface, WEP, TKIP, and AES. FO B: AuthMode: Follows the main-AP’s setting. Case 1: main AP choose open mode, and WDS choose WEP or AES AuthMode: OPEN, take from main-AP EncrypType: WDS = WEP or AES WEP key will follow main-AP’s setting, Or, take from Wds0Key… depend on which WDs interface. MediaTek Confidential © 2014 MediaTek Inc. Page 134 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use AES key will take from WdsKey or Wds0Key, depend on which WDs interface. Please use PING to check the data whether encrypted or not. Case 2: main AP is wep mode, and WDS is AES mode AuthMode: WEP 12.3 Supported Paramters in RT2860AP.dat 12.3.1 WdsEnable Description: Enable or disable WDS function Value: WdsEnable=0 0: Disable - Disable all WDS function. 1: Restrict mode - Same as Repeater mode. 2: Bridge mode - Turn on WDS function, the peer WDS APs are according to the mac address listed in "WdsList" field below. In this mode, AP will not send beacon out and will not deal with probe request packets, therefore STA will not possible to connect with it. 3: Repeater mode - Turn on WDS function, the peer WDS APs are according to the mac address listed in "WdsList" field below. 4: Lazy mode - Turn on WDS function, and auto learning from WDS packet which with addr4 field. 12.3.2 WdsList Description: WDS list for making the connection Value: WdsList=00:10:20:30:40:50;0A:0b:0c:0D:0e:0f;1a:2b:3c:4d:5e:6f Maximun up to 4 lists 12.3.3 WdsEncrypType Description: WDS encryption type Value: WdsEncrypType=NONE NONE WEP TKIP AES FO Example: WdsEncrypType= OPEN;TKIP;WEP;AES The encrptytion of wds0 is OPEN The encrptytion of wds1 is TKIP MediaTek Confidential © 2014 MediaTek Inc. Page 135 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use The encrptytion of wds2 is WEP The encrptytion of wds3 is AES 12.3.4 WdsKey Description: The Key of WDS Link Value: WdsKey=12345678 10 or 26 hexadecimal characters (eg: 1234567890) for WEP 5 or 13 ASCII characters (eg: 12345) for WEP 8 ~ 63 ASCII characters for TKIP or AES 64 hexadecimal characters for TKIP or AES Note: Combinationsof WDS security mode Main BSSID's WDS's Peer AP WDS's Remark EncrypType WdsEncrypType WdsEncrypType NONE NONE NONE WEP WEP WEP Using legacy key setting method TKIP TKIP TKIP WDS's key is from WdsKey TKIP AES AES WDS's key is from WdsKey AES TKIP TKIP WDS's key is from WdsKey AES AES AES WDS's key is from WdsKey TKIPAES TKIP TKIP WDS's key is from WdsKey TKIPAES AES AES WDS's key is from WdsKey 12.3.5 Wds0Key Description: WDS key for Link0 Value: Wds0Key=12345678 10 or 26 hexadecimal characters (eg: 1234567890) for WEP 5 or 13 ASCII characters (eg: 12345) for WEP 8 ~ 63 ASCII characters for TKIP or AES 64 hexadecimal characters for TKIP or AES 12.3.6 Wds1Key FO Description: WDS key for Link1 Value: Wds1Key=12345678 10 or 26 hexadecimal characters (eg: 1234567890) for WEP 5 or 13 ASCII characters (eg: 12345) for WEP 8 ~ 63 ASCII characters for TKIP or AES 64 hexadecimal characters for TKIP or AES MediaTek Confidential © 2014 MediaTek Inc. Page 136 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 12.3.7 Wds2Key Description: WDS key for Link2 Value: Wds2Key=12345678 10 or 26 hexadecimal characters (eg: 1234567890) for WEP 5 or 13 ASCII characters (eg: 12345) for WEP 8 ~ 63 ASCII characters for TKIP or AES 64 hexadecimal characters for TKIP or AES 12.3.8 Wds3Key Description: WDS key for Link3 Value: Wds3Key=12345678 10 or 26 hexadecimal characters (eg: 1234567890) for WEP 5 or 13 ASCII characters (eg: 12345) for WEP 8 ~ 63 ASCII characters for TKIP or AES 64 hexadecimal characters for TKIP or AES 12.3.9 WdsDefaultKeyID Description: The default key index setting Value: WdsDefaultKeyID=1 1~4 Example: WdsDefaultKeyID=1;2;3;4 The key index of wds0 is 1 The key index of wds1 is 2 The key index of wds2 is 3 The key index of wds3 is 4 12.3.10 WdsPhyMode FO Description: configure WDS Link physical mode Value: WdsPhyMode=HTMIX CCK OFDM HTMIX MediaTek Confidential © 2014 MediaTek Inc. Page 137 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use GREENFIELD 12.3.11 WdsTxMcs Description: Set transmission MCS for WDS traffic. Value: WdsTxMcs=33 0~15, 32: Fixed MCS 33: Auto MCS 12.3.12 WdsTxMode Description: Set transmission mode for WDS traffic Value: WdsTxMcs=HT FO CCK OFDM HT MediaTek Confidential © 2014 MediaTek Inc. Page 138 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 13 13.1 IGMP SNOOPING IMGP Table Learning An IGMP table entry consists of Group-Id (Multicast MAC Address), Net-Interface and Member-List. For example, in the picture above we see the “Multicast Filter Table” of AP1 have two IGMP entries. One is “01:00:5e:02:02:03” with two members and another is “01:00:5e:02:02:04 with empty member list”. AP will automatically insert or remove the entry from table by snooping the IGMP-Membership report packet from Station behind AP. And it also could be manual add and del by iwpriv command. 13.2 Multicast Packet Process FO Once a multicast packet whether it comes from portal, WDS or AP-Client. AP will go through the Multicast-filter table to find a match rule for the incoming packet. If have no any match rule in the table then AP will simply drops it. If it does then there are two cases how AP handles a multicast packet. The first cast is the match entry has no member then AP just forwards it to all stations behind the net-interface. If the match entry has members then AP will do unicast clone for all members. For example, AP1 receive a multicast packet with group-Id, “01:00:5e:02:02:03”, comes from Ethernet then AP1 check the multicast table using group-Id and fount it match the entry with 2 members. So AP1 clone the multicast packet and sent them to Station 1 and Station 2. Another case a multicast packet with group-id (01:00:5e:02:02:04) be sent to AP1 then AP1 just forward it to all Stations behind interface, ra0 since the match entry have no member. MediaTek Confidential © 2014 MediaTek Inc. Page 139 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 13.3 IGMP SNOOPING in RT2860.dat support 13.3.1 IgmpSnEnable Description: enable or disable IGMP snooping function Value: IgmpSnEnable=1 0: disable 1: enable 13.4 Iwpriv command for IGMP SNOOPING Syntax: iwpriv ra0 set [Parameter]=[Value] 13.4.1 IgmpSnEnable Description: enable or disable IGMP SNOOPING Value: iwpriv ra0 set IgmpSnEnable=1 0: disable 1: enable Note: If the command returns failed, please make sure IGMPSNOOP_SUPPORT is selected or not in driver config.mk 13.4.2 IgmpAdd Description: It also provide a command let user add an entry by iwpriv command “set IgmpAdd=”, Group-ID could be a MAC address or a IP address. Also can add members into a Group by command “set IgmpAdd= ”, Group-ID could be a MAC address or an IP address. Value: FO //Add Group-ID iwpriv ra0 set IgmpAdd=226.2.2.3 or iwpriv ra0 set IgmpAdd=01:00:5e:02:02:03 //Add Group-ID-member iwpriv ra0 set IgmpAdd=226.2.2.3-00:0c:43:26:61:27-00:0c:43:26:61:28 or iwpriv ra0 set IgmpAdd=01:00:5e:02:02:03-00:0c:43:26:61:27-00:0c:43:26:61:28 MediaTek Confidential © 2014 MediaTek Inc. Page 140 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 13.4.3 IgmpDel Description: the entry can be deleted by command “set IgmpDelEntry= ”. Also can delete a member from a Group by command “set IgmpDel= ”, Group-ID could be a MAC address or an IP address. Value: //Delete by Group-ID iwpriv ra0 set IgmpDel=226.2.2.3 iwpriv ra0 set IgmpDel=01:00:5e:02:02:03 FO //Delete by Group-ID-Member iwpriv ra0 set IgmpDel=226.2.2.3-00:0c:43:26:61:27-00:0c:43:26:61:28 iwpriv ra0 set IgmpDel=01:00:5e:02:02:03-00:0c:43:26:61:27-00:0c:43:26:61:28 MediaTek Confidential © 2014 MediaTek Inc. Page 141 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 14 MAC Repeater The MAC repeater acts as a Wi-Fi proxy for its clients. For each device connected to the repeater, the extender must create a connection to the root AP separately. The MAC repeater will make connections according to its own wireless capability and security mode. When the device is disconnected from the repeater, the repeater must disconnect the connection between root AP and the repeater for this device. The repeater makes the root AP unaware of what are behind the repeater. From the Root AP side, it just sees all the repeater clients in the same BSS. All communications between the repeater clients and Root AP are utilizing one “AP client” interface on the repeater. Bridge: Ethernet / Wireless (AP / AP client) FO The implement must enable apcli function and bridge all network interfaces. MediaTek Confidential © 2014 MediaTek Inc. Page 142 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 14.1 MAC Repeater Management Flow Management Flow Chart (Wireless): FO Management Flow Chart (Ethernet): MediaTek Confidential © 2014 MediaTek Inc. Page 143 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use MAC Repeater Data Flow 14.2.1 Unicast Data Flow 14.2.2 Multicast / Broadcast Data Flow FO 14.2 MediaTek Confidential © 2014 MediaTek Inc. Page 144 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 14.3 ▪ ▪ ▪ ▪ ▪ ▪ MAC Repeater Limitation Roaming of STAs between different BSSs is not supported. WPA2-Enterprise Security is not supported. Supported protocols: IPv4 / ARP / DHCP The repeater does not response for an end-to-end reliability and security. Support max 16 repeater clients; the others are treated as AP clients. Impact CPU utilization due to parse all received packets from the STA and all multicast and broadcast packets. 14.4 MAC Repeater Example command 14.4.1 MAC Repeater by Wi-Fi Profile: To enable MAC Repeater: Add MACRepeaterEn = 1 into the WLAN profile “RT2860AP.dat”. To disable MAC Repeater: Add MACRepeaterEn = 0 into the WLAN profile. 14.4.2 MAC Repeater by Wi-Fi command: FO iwpriv ra0 set MACRepeaterEn=1 ifconfig apcli0 up iwpriv apcli0 set ApCliEnable=0 iwpriv apcli0 set ApCliSsid=MT7610_RootAP iwpriv apcli0 set ApCliAuthMode=OPEN iwpriv apcli0 set ApCliEncrypType=NONE iwpriv apcli0 set ApCliEnable=1 brctl addif br0 apcli0 MediaTek Confidential © 2014 MediaTek Inc. Page 145 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Y MTXXXX Chip Name Internal Use 15 Multiple BSSID Setup 1. Before turn on multiple BSSID, make sure the byte5 of MAC address in EEPROM is a multiple of 1/2/4/8 and reserve multiple MAC address when manufacturing. example, 00:0A:0B:0C:0D:04; 00:0A:0B:0C:0D:88. 2. When enable multiple BSSID function, the field 'BssidNum' shall larger than 1 and less than 8. 3. BssidNum can only be modified with editing configure file. When change the ' BssidNum ' field, the driver must restart, and modify bridge_setup file to group virtual interface. Others parameters can pass through iwpriv according to their interface. 4. The parameter that support multiple BSSID is listed as followed, FO SSID AuthMode EncrypType WPAPSK DefaultKeyID Key1Type Key1Str Key2Type Key2Str Key3Type Key3Str Key4Type Key4Str AccessPolicy AccessContro lList NoForwarding IEEE8021X HideSSID PreAuth WmmCapable MediaTek Confidential © 2014 MediaTek Inc. Page 146 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 5. Example of notation to represent multiple ssid's parameter: 1.) BssidNum=4 2.) SSID=SSID-A;SSID-B;SSID-C;SSID-D 3.) AuthMode=OPEN;SHARED;WPAPSK;WPA 4.) EncrypType=NONE;WEP;TKIP;AES 6. The WDS's security policy must be the same as main BSSID and only support NONE, WEP, TKIP, and AES. 7. MBSSID and WDS. There 64 security key table in MAC(RT2800). Entry 0: For reserved. Entry 1 - 59: For Associated STA and WDS link. Current driver defined WDS number to 4. MediaTek Confidential © 2014 MediaTek Inc. Page 147 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 16 Concurrent A+G Settings Below table is brief example for two interfaces. For example, Linux HotPlug system found new device would create one driver instance (create new space for driver image) for new device to hold private information (memory consumed). RT2800 Interface Bring Up Sequence NIC# Sequence Two WDS(Virtual) 1 2 3 4 ifconfig ra0 up ra0 wds0 wds1 wds2 wds3 ifconfig ra1 up ra1 wds4 wds5 wds6 wds7 NIC# Sequence Two Normal Normal WDS(Virtual) 1 2 3 MBSSID (Physical) 4 ifconfig ra0 up ra0 ra2 ra3 ra4 wds0 wds1 wds2 wds3 ifconfig ra1 up ra1 ra5 ra6 ra7 wds4 wds5 wds6 wds7 FO WDS IS A VIRTUAL INTERFACE WITHOUT IOCTL FUNCTIONALITY. MediaTek Confidential © 2014 MediaTek Inc. Page 148 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 17 17.1 SNMP MIBs Support List RT2860AP Supported v.s. IEEE802dot11-MIB IEEE802dot11-MIB Acces s ieee802dot11 dot11smt dot11StationConfigTable dot11StationConfigEntry dot11StationID dot11MediumOccupancyLimit dot11CFPollable dot11CFPPeriod dot11CFPMaxDuration dot11AuthenticationResponseTimeO ut dot11PrivacyOptionImplemented dot11PowerManagementMode dot11DesiredSSID dot11DesiredBSSType dot11OperationalRateSet dot11BeaconPeriod dot11DTIMPeriod dot11AssociationResponseTimeOut dot11DisassociateReason dot11DisassociateStation dot11DeauthenticateReason dot11DeauthenticateStation dot11AuthenticateFailStatus dot11AuthenticateFailStation dot11AuthenticationAlgorithmsTable FO dot11AuthenticationAlgorithmsEntry MediaTek Confidential Support notaccess ible notaccess ible readwrite readwrite readonly readwrite readwrite readwrite readonly readwrite readwrite readwrite readwrite readwrite readwrite readwrite readonly readonly readonly readonly readonly readonly notaccess ible not- OID RT2860AP.dat OID_802_3_CURRENT_ADDRESS N - - Y N N N N N N N N N N Y Y RT_OID_802_11_PRIVACYOPTIONIMPLEME NTED RT_OID_802_11_POWERMANAGEMENTM ODE N N N N N N N N N N N N N N N N N N N N N N N N N N - - - - © 2014 MediaTek Inc. Page 149 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL access ible notaccess ible readonly readwrite notaccess ible notaccess ible notaccess ible readwrite notaccess ible notaccess ible notaccess ible readcreate readcreate readcreate readcreate notaccess ible notaccess ible readwrite readwrite readwrite readwrite readonly readonly - dot11AuthenticationAlgorithmsIndex dot11AuthenticationAlgorithm dot11AuthenticationAlgorithmsEnabl e dot11WEPDefaultKeysTable dot11WEPDefaultKeysEntry dot11WEPDefaultKeyIndex dot11WEPDefaultKeyValue dot11WEPKeyMappingsTable dot11WEPKeyMappingsEntry dot11WEPKeyMappingIndex dot11WEPKeyMappingAddress dot11WEPKeyMappingWEPOn dot11WEPKeyMappingValue dot11WEPKeyMappingStatus dot11PrivacyTable dot11PrivacyEntry dot11PrivacyInvoked dot11WEPDefaultKeyID dot11WEPKeyMappingLength dot11ExcludeUnencrypted dot11WEPICVErrorCount dot11WEPExcludedCount FO dot11SMTnotification dot11Disassociate dot11Deauthenticate dot11AuthenticateFail dot11mac dot11OperationTable MediaTek Confidential notaccess Y N Y N Y N - - - - Y N Y OID_802_11_WEPDEFAULTKEYVALUE Y - - - - N N N N N N N N N N - - Y N Y OID_802_11_WEPDEFAULTKEYID Y Y RT_OID_802_11_WEPKEYMAPPINGLENGT H N N N N N N N N N N N N N - © 2014 MediaTek Inc. Page 150 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y ible notaccess ible readonly readwrite readwrite readwrite readwrite readwrite readwrite readonly readonly notaccess ible notaccess ible readonly readonly readonly readonly readonly readonly readonly readonly readonly readonly readonly readonly readonly readonly notaccess ible notaccess ible R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL dot11OperationEntry dot11MACAddress dot11RTSThreshold dot11ShortRetryLimit dot11LongRetryLimit dot11FragmentationThreshold dot11MaxTransmitMSDULifetime dot11MaxReceiveLifetime dot11ManufacturerID dot11ProductID dot11CountersTable dot11CountersEntry dot11TransmittedFragmentCount dot11MulticastTransmittedFrameCo unt dot11FailedCount dot11RetryCount dot11MultipleRetryCount dot11FrameDuplicateCount dot11RTSSuccessCount dot11RTSFailureCount dot11ACKFailureCount dot11ReceivedFragmentCount dot11MulticastReceivedFrameCount dot11FCSErrorCount dot11TransmittedFrameCount dot11WEPUndecryptableCount dot11GroupAddressesTable FO dot11GroupAddressesEntry MediaTek Confidential - Y RT_OID_802_11_MAC_ADDRESS N Y OID_802_11_RTS_THRESHOLD Y Y OID_802_11_SHORTRETRYLIMIT N Y OID_802_11_LONGRETRYLIMIT N Y OID_802_11_FRAGMENTATION_THRESHOL D Y N N N N Y RT_OID_802_11_MANUFACTUREID N Y RT_OID_802_11_PRODUCTID N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N Y OID_802_11_STATISTICS N - - N N N N - - - - © 2014 MediaTek Inc. Page 151 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT N N Y notaccess ible readcreate readcreate R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL dot11GroupAddressesIndex dot11Address dot11GroupAddressesStatus dot11res dot11resAttribute dot11ResourceTypeIDName dot11ResourceInfoTable dot11ResourceInfoEntry dot11manufacturerOUI dot11manufacturerName dot11manufacturerProductName dot11manufacturerProductVersion dot11phy dot11PhyOperationTable dot11PhyOperationEntry dot11PHYType dot11CurrentRegDomain dot11TempType dot11PhyAntennaTable dot11PhyAntennaEntry dot11CurrentTxAntenna dot11DiversitySupport dot11CurrentRxAntenna dot11PhyTxPowerTable dot11PhyTxPowerEntry dot11NumberSupportedPowerLevels dot11TxPowerLevel1 FO dot11TxPowerLevel2 MediaTek Confidential N N N N readonly notaccess ible notaccess ible readonly readonly readonly readonly - notaccess ible notaccess ible readonly readwrite readonly notaccess ible notaccess ible readwrite readonly readwrite notaccess ible notaccess ible readonly readonly readonly - - - Y RT_OID_802_11_MANUFACTUREROUI N Y RT_OID_802_11_MANUFACTURERNAME N Y RT_OID_DEVICE_NAME N Y RT_OID_VERSION_INFO N RT_OID_802_11_PHY_MODE N - Y Y Y N N - - Y OID_802_11_TX_ANTENNA_SELECTED N Y OID_802_11_RX_ANTENNA_SELECTED N Y OID_802_11_RX_ANTENNA_SELECTED N - - N N N N N N © 2014 MediaTek Inc. Page 152 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT N N Y readonly readonly readonly readonly readonly readonly readwrite notaccess ible notaccess ible readonly readwrite readonly readwrite readwrite readwrite readwrite notaccess ible notaccess ible readwrite readonly readwrite readwrite notaccess ible notaccess ible readwrite readwrite readwrite readwrite R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL dot11TxPowerLevel3 dot11TxPowerLevel4 dot11TxPowerLevel5 dot11TxPowerLevel6 dot11TxPowerLevel7 dot11TxPowerLevel8 dot11CurrentTxPowerLevel dot11PhyFHSSTable dot11PhyFHSSEntry dot11HopTime dot11CurrentChannelNumber dot11MaxDwellTime dot11CurrentDwellTime dot11CurrentSet dot11CurrentPattern dot11CurrentIndex dot11PhyDSSSTable dot11PhyDSSSEntry dot11CurrentChannel dot11CCAModeSupported dot11CurrentCCAMode dot11EDThreshold dot11PhyIRTable dot11PhyIREntry dot11CCAWatchdogTimerMax dot11CCAWatchdogCountMax dot11CCAWatchdogTimerMin FO dot11CCAWatchdogCountMin MediaTek Confidential N N N N N N N N N N N N - - N N N N N N N N N N N N N N - - Y OID_802_11_CURRENTCHANNEL Y N N N N N N - - N N N N N N N N © 2014 MediaTek Inc. Page 153 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y notaccess ible notaccess ible notaccess ible readonly notaccess ible notaccess ible notaccess ible readwrite readwrite readwrite notaccess ible notaccess ible notaccess ible readonly notaccess ible notaccess ible notaccess ible readonly notaccess ible notaccess ible readwrite readwrite readonly - R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL dot11RegDomainsSupportedTable dot11RegDomainsSupportEntry dot11RegDomainsSupportIndex dot11RegDomainsSupportValue dot11AntennasListTable dot11AntennasListEntry dot11AntennaListIndex dot11SupportedTxAntenna dot11SupportedRxAntenna dot11DiversitySelectionRx dot11SupportedDataRatesTxTable dot11SupportedDataRatesTxEntry dot11SupportedDataRatesTxIndex dot11SupportedDataRatesTxValue dot11SupportedDataRatesRxTable dot11SupportedDataRatesRxEntry dot11SupportedDataRatesRxIndex dot11SupportedDataRatesRxValue dot11PhyOFDMTable dot11PhyOFDMEntry dot11CurrentFrequency dot11TIThreshold FO dot11FrequencyBandsSupported MediaTek Confidential - Y N Y N - - Y N Y OID_802_11_TX_ANTENNA_SELECTED N Y OID_802_11_RX_ANTENNA_SELECTED N Y OID_802_11_RX_ANTENNA_SELECTED N - - Y Y N OID_802_11_DESIRED_RATES N - - Y OID_802_11_DESIRED_RATES Y - - N OID_802_11_CURRENTCHANNEL Y N N N N © 2014 MediaTek Inc. Page 154 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y RALINK OID for SNMP MIB R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 17.2 RALINK OID for SNMP Value Name 0x010B OID_802_11_NUMBER_OF_ANTEN NAS 0x010C OID_802_11_RX_ANTENNA_SELE CTED 0x010D OID_802_11_TX_ANTENNA_SELEC TED 0x050C RT_OID_802_11_PHY_MODE 0x050E OID_802_11_DESIRED_RATES 0x0607 0x0608 OID_802_11_RTS_THRESHOLD OID_802_11_FRAGMENTATION_TH RESHOLD RT_OID_DEVICE_NAME RT_OID_VERSION_INFO 0x060A 0x060E OID_802_3_CURRENT_ADDRESS OID_802_11_STATISTICS FO 0x0514 0x0515 MediaTek Confidential Structure USHORT numant; USHORT whichant; USHORT whichant; ULONG linfo; typedef UCHAR NDIS_802_11_RATES[NDIS_802_11_LEN GTH_RATES]; #define NDIS_802_11_LENGTH_RATES 8 ULONG linfo; ULONG linfo; char name[128]; typedef struct PACKED _RT_VERSION_INFO{ UCHAR DriverVersionW; UCHAR DriverVersionX; UCHAR DriverVersionY; UCHAR DriverVersionZ; UINT DriverBuildYear; UINT DriverBuildMonth; UINT DriverBuildDay; } RT_VERSION_INFO, *PRT_VERSION_INFO; char addr[128]; typedef struct _NDIS_802_11_STATISTICS { ULONG Length; // Length of structure ULONG TransmittedFragmentCount; ULONG MulticastTransmittedFrameCount; ULONG FailedCount; ULONG RetryCount; ULONG MultipleRetryCount; ULONG RTSSuccessCount; ULONG RTSFailureCount; ULONG ACKFailureCount; ULONG FrameDuplicateCount; ULONG ReceivedFragmentCount; © 2014 MediaTek Inc. Page 155 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL ULONG MulticastReceivedFrameCount; ULONG FCSErrorCount; } NDIS_802_11_STATISTICS, PNDIS_802_11_STATISTICS; char oui[128]; 0x0700 0x0701 0x0702 0x0703 0x0704 0x0705 0x0706 0x0707 FO 0x0708 0x0709 0x0710 0x0711 0x0712 0x0713 RT_OID_802_11_MANUFACTURER OUI RT_OID_802_11_MANUFACTURER NAME RT_OID_802_11_RESOURCETYPEI DNAME RT_OID_802_11_PRIVACYOPTIONI MPLEMENTED RT_OID_802_11_POWERMANAGE MENTMODE OID_802_11_WEPDEFAULTKEYVAL UE OID_802_11_WEPDEFAULTKEYID RT_OID_802_11_WEPKEYMAPPIN GLENGTH OID_802_11_SHORTRETRYLIMIT OID_802_11_LONGRETRYLIMIT RT_OID_802_11_PRODUCTID RT_OID_802_11_MANUFACTUREID OID_802_11_CURRENTCHANNEL RT_OID_802_11_MAC_ADDRESS MediaTek Confidential char name[128]; char name[128]; ULONG linfo; ULONG linfo; typedef struct _DefaultKeyIdxValue { UCHAR KeyIdx; UCHAR Value[16]; }DefaultKeyIdxValue; UCHAR keyid; UCHAR len; ULONG linfo; ULONG linfo; char id[128]; char id[128]; UCHAR channel char macaddress[128] © 2014 MediaTek Inc. Page 156 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 18 18.1 IOCTL I/O Control Interface Parameters for iwconfig’s IOCTL Access Description FO Get ID Parameters BSSID, MAC SIOCGIFHWADDR wrq->u.name, (length = 6) Address WLAN Name SIOCGIWNAME wrq->u.name = "RT2800 SoftAP", length = strlen(wrq->u.name) SSID SIOCGIWESSID struct iw_point *erq = &wrq->u.essid; erq->flags=1; erq->length = pAd->PortCfg.MBSSID[pAd->IoctlIF].SsidLen; if(erq->pointer) { if(copy_to_user(erq->pointer, pAd->PortCfg.MBSSID[pAd->IoctlIF].Ssid, erq->length)) { Status = -EFAULT; break; } } Channel / SIOCGIWFREQ wrq->u.freq.m = pAd->PortCfg.Channel; Frequency wrq->u.freq.e = 0; (Hz) wrq->u.freq.i = 0; Bit Rate SIOCGIWRATE wrq->u.bitrate.value = (bps) RateIdTo500Kbps[pAd->PortCfg.MBSSID[pAd>IoctlIF].TxRate] * 500000; wrq->u.bitrate.disabled = 0; AP’s MAC SIOCGIWAP wrq->u.ap_addr.sa_family = ARPHRD_ETHER; address memcpy(wrq->u.ap_addr. sa_data, &pAd->PortCfg.MBSSID[pAd->IoctlIF].Bssid, ETH_ALEN); Operation SIOCGIWMODE wrq->u.mode = IW_MODE_INFRA; Mode Range of SIOCGIWRANGE range.we_version_compiled = WIRELESS_EXT; range.we_version_source = 14; Parameters Scanning SIOCGIWSCAN typedef struct _NDIS_802_11_SITE_SURVEY_TABLE Results { LONG Channel; LONG Rssi; UCHAR Ssid[33]; UCHAR Bssid[18]; UCHAR EncrypT[8]; } NDIS_802_11_SITE_SURVEY_TABLE, *PNDIS_802_11_SITE_SURVEY_TABLE; Client SIOCGIWAPLIST MediaTek Confidential wrq->u.data.length = sizeof(NDIS_802_11_SITE_SURVEY_TABLE); copy_to_user(wrq->u.data.pointer, site_survey_table, >u.data.length); typedef struct _NDIS_802_11_STATION_TABLE © 2014 MediaTek Inc. Page 157 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. N* wrq- loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y { R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Association List Set UCHAR ULONG ULONG ULONG ULONG ULONG ULONG ULONG MacAddr[18]; Aid; PsMode; LastDataPacketTime; RxByteCount; TxByteCount; CurrTxRate; LastTxRate; } NDIS_802_11_STATION_TABLE, *PNDIS_802_11_STATION_TABLE; Trigger Scanning SIOCSIWSCAN 18.2 wrq->u.data.length = i * sizeof(NDIS_802_11_STATION_TABLE); copy_to_user(wrq->u.data.pointer, sta_list_table, wrq>u.data.length); ApSiteSurvey(pAd); Parameters for iwpriv’s IOCTL Please refer section 4 and 5 to have iwpriv parameters and values. Parameters: int socket_id; char name[25]; // interface name char data[255]; // command string struct iwreq wrq; Default setting: wrq.ifr_name = name = “ra0”; // interface name wrq.u.data.pointer = data; // data buffer of command string wrq.u.data.length = strlen(data); // length of command string wrq.u.data.flags = 0; 18.2.1 Iwpriv Set DATA THESE PARAMETERS ARE THE SAME AS IW PRIV Command and IOCTL Function Set Data Function Type Command IOCTL RTPRIV_IOCTL_SET iwpriv ra0 set SSID=RT2800AP sprintf(name, "ra0"); strcpy(data, "SSID=RT2800AP”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_SET, &wrq); 18.2.2 Iwpriv Get DATA FO THESE PARAMETERS ARE THE SAME AS IW PRIV Command and IOCTL Function MediaTek Confidential © 2014 MediaTek Inc. Page 158 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Get Data Function Type Command IOCTL RTPRIV_IOCTL_STATISTICS Iwpriv ra0 stat sprintf(name, "ra0"); strcpy(data, "stat”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_STATISTICS, &wrq); RTPRIV_IOCTL_GSITESURVEY Iwpriv get_site_survey RTPRIV_IOCTL_GET_MAC_TABLE Iwpriv get_mac_table ra0 sprintf(name, "ra0"); strcpy(data, "get_site_survey”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_GSITESURVEY, &wrq); ra0 sprintf(name, "ra0"); strcpy(data, "get_mac_table”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_GET_MAC_TABLE, &wrq); RTPRIV_IOCTL_SHOW Iwpriv ra0 show sprintf(name, "ra0"); strcpy(data, "get_mac_table”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_SHOW, &wrq); RTPRIV_IOCTL_WSC_PROFILE Iwpriv get_wsc_profile ra0 sprintf(name, "ra0"); strcpy(data, "get_mac_table”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_WSC_PROFILE, &wrq); FO RTPRIV_IOCTL_QUERY_BATABLE Iwpriv get_ba_table MediaTek Confidential ra0 sprintf(name, "ra0"); strcpy(data, "get_mac_table”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_QUERY_BATABLE, &wrq); © 2014 MediaTek Inc. Page 159 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y Iwpriv Set Data: BBP, MAC and EEPROM R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 18.2.3 Command and IOCTL Function Set Data: BBP, MAC and EEPROM, Parameters is Same as iwpriv Type Command IOCTL RTPRIV_IOCTL_BBP Iwpriv ra0 bbp 17=32 (Set BBP Register Value) sprintf(name, "ra0"); strcpy(data, " bbp 17=32”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_BBP, &wrq); RTPRIV_IOCTL_MAC Iwpriv ra0 mac 3000=12345678 sprintf(name, "ra0"); (Set MAC Register Value) strcpy(data, " mac 3000=12345678”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_MAC, &wrq); RTPRIV_IOCTL_E2P (Set EEPROM Value) 18.2.4 Iwpriv ra0 e2p 40=1234 sprintf(name, "ra0"); strcpy(data, " e2p 40=1234”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_E2P, &wrq); Iwpriv Get Data: BBP, MAC and EEPROM Command and IOCTL Function Get Data: BBP, MAC and EEPROM , Parameters is Same as iwpriv Type Command RTPRIV_IOCTL_BBP Iwpriv ra0 bbp 17 (Get BBP Register Value) IOCTL sprintf(name, "ra0"); strcpy(data, " bbp 17”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_BBP, &wrq); FO RTPRIV_IOCTL_MAC Iwpriv ra0 mac 3000 sprintf(name, "ra0"); (Get MAC Register Value) strcpy(data, " mac 3000”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_MAC, &wrq); RTPRIV_IOCTL_E2P MediaTek Confidential Iwpriv ra0 e2p 40 sprintf(name, "ra0"); © 2014 MediaTek Inc. Page 160 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y strcpy(data, " e2p 40”); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_E2P, &wrq); R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL (Get EEPROM Value) 18.2.5 Iwpriv Set Raw Data IOCTL Function Set Raw Data by I/O Control Interface Function Type IOCTL RTPRIV_IOCTL_RADIUS_DATA sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0x55, 100); wrq.u.data.length = 100; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_RADIUS_DATA, &wrq); RTPRIV_IOCTL_ADD_WPA_KEY NDIS_802_11_KEY *vp; sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(NDIS_802_11_KEY)); vp = (NDIS_802_11_KEY *)&data; vp->Length = sizeof(NDIS_802_11_KEY); memset(vp->addr, 0x11, 6); vp->KeyIndex = 2; vp->KeyLength = 32; memset(vp->KeyMaterial, 0xAA, 32); wrq.u.data.length = sizeof(NDIS_802_11_KEY); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_ADD_WPA_KEY, &wrq); FO RTPRIV_IOCTL_ADD_PMKID_CACHE NDIS_802_11_KEY *vp; sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(NDIS_802_11_KEY)); vp = (NDIS_802_11_KEY *)&data; vp->Length = sizeof(NDIS_802_11_KEY); memset(vp->addr, 0x11, 6); vp->KeyIndex = 2; vp->KeyLength = 32; memset(vp->KeyMaterial, 0xBB, 32); wrq.u.data.length = sizeof(NDIS_802_11_KEY); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ioctl(socket_id, RTPRIV_IOCTL_ADD_PMKID_CACHE, &wrq); MediaTek Confidential © 2014 MediaTek Inc. Page 161 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y Set Raw Data with Flags R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 18.2.6 IOCTL Function Set Raw Data by I/O Control Interface with Flags Function Type IOCTL RT_SET_APD_PID sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, 4); data[0] = 12; wrq.u.data.length = 4; wrq.u.data.pointer = data; wrq.u.data.flags = RT_SET_APD_PID; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_SET_DEL_MAC_ENTRY sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0xdd, 6); strcpy(wrq.ifr_name, name); wrq.u.data.length = 6; wrq.u.data.pointer = data; wrq.u.data.flags = RT_SET_DEL_MAC_ENTRY; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_OID_WSC_SET_SELECTED_REGISTRAR sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, decodeStr, decodeLen); strcpy(wrq.ifr_name, name); wrq.u.data.length = decodeLen; wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_WSC_SET_SELECTED_REGISTRAR; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_OID_WSC_EAPMSG 18.2.7 sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, wscU2KMsg, wscU2KMsgLen); strcpy(wrq.ifr_name, name); wrq.u.data.length = wscU2KMsgLen; wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_WSC_EAPMSG; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); Get Raw Data with Flags IOCTL Function Get Raw Data by I/O Control Interface with Flags Function Type IOCTL FO RT_QUERY_ATE_TXDONE_COUNT sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(ULONG)); wrq.u.data.length = sizeof(ULONG); wrq.u.data.pointer = data; MediaTek Confidential © 2014 MediaTek Inc. Page 162 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL wrq.u.data.flags = RT_QUERY_ATE_TXDONE_COUNT; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(RT_SIGNAL_STRUC)); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(RT_SIGNAL_STRUC); wrq.u.data.pointer = data; wrq.u.data.flags = RT_QUERY_SIGNAL_CONTEXT; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_OID_WSC_QUERY_STATUS sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(INT)); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(INT); wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_WSC_QUERY_STATUS; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_OID_WSC_PIN_CODE sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(ULONG)); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(ULONG); wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_WSC_PIN_CODE; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_OID_WSC_UUID sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(UCHAR)); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(UCHAR); wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_WSC_UUID; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_OID_WSC_MAC_ADDRESS sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, MAC_ADDR_LEN); strcpy(wrq.ifr_name, name); wrq.u.data.length = MAC_ADDR_LEN; wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_WSC_MAC_ADDRESS; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); RT_OID_GET_PHY_MODE sprintf(name, "ra0"); strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(ULONG)); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(ULONG); wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_GET_PHY_MODE; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); FO RT_QUERY_SIGNAL_CONTEXT RT_OID_GET_LLTD_ASSO_TANLE sprintf(name, "ra0"); MediaTek Confidential © 2014 MediaTek Inc. Page 163 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL strcpy(wrq.ifr_name, name); memset(data, 0, sizeof(RT_LLTD_ASSOICATION_TABLE)); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(RT_LLTD_ASSOICATION_TABLE); wrq.u.data.pointer = data; wrq.u.data.flags = RT_OID_GET_LLTD_ASSO_TANLE; ioctl(socket_id, RT_PRIV_IOCTL, &wrq); 18.3 Sample user space Applications //===================================================================== // // rtuser: // 1. User space application to demo how to use IOCTL function. // 2. Most of the IOCTL function is defined as "CHAR" type and return with string message. // 3. Use sscanf to get the raw data back from string message. // 4. The command format "parameter=value" is same as iwpriv command format. // 5. Remember to insert driver module and bring interface up prior execute rtuser. // change folder path to driver "Module" // dos2unix * ; in case the files are modified from other OS environment // chmod 644 * // chmod 755 Configure // make config // make // insmod RT2800ap.o // ifconfig ra0 up // // Refer Linux/if.h to have // #define ifr_name ifr_ifrn.ifrn_name /* interface name */ // // Make: // cc -Wall -ortuser rtuser.c // // Run: // ./rtuser // //===================================================================== #include #include #include #include #include #include /* for close */ //============================================================================= #if WIRELESS_EXT <= 11 #ifndef SIOCDEVPRIVATE #define SIOCDEVPRIVATE #endif #define SIOCIWFIRSTPRIV #endif 0x8BE0 SIOCDEVPRIVATE FO // //SET/GET CONVENTION : // * -----------------// * Simplistic summary : MediaTek Confidential © 2014 MediaTek Inc. Page 164 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL // * o even numbered ioctls are SET, restricted to root, and should not // * return arguments (get_args = 0). // * o odd numbered ioctls are GET, authorised to anybody, and should // * not expect any arguments (set_args = 0). // #define RT_PRIV_IOCTL (SIOCIWFIRSTPRIV + 0x01) #define RTPRIV_IOCTL_SET (SIOCIWFIRSTPRIV + 0x02) #define RTPRIV_IOCTL_BBP (SIOCIWFIRSTPRIV + 0x03) #define RTPRIV_IOCTL_MAC (SIOCIWFIRSTPRIV + 0x05) #define RTPRIV_IOCTL_E2P (SIOCIWFIRSTPRIV + 0x07) #define RTPRIV_IOCTL_STATISTICS (SIOCIWFIRSTPRIV + 0x09) #define RTPRIV_IOCTL_ADD_PMKID_CACHE (SIOCIWFIRSTPRIV + 0x0A) #define RTPRIV_IOCTL_RADIUS_DATA (SIOCIWFIRSTPRIV + 0x0C) #define RTPRIV_IOCTL_GSITESURVEY (SIOCIWFIRSTPRIV + 0x0D) #define RTPRIV_IOCTL_ADD_WPA_KEY (SIOCIWFIRSTPRIV + 0x0E) #define RTPRIV_IOCTL_GET_MAC_TABLE (SIOCIWFIRSTPRIV + 0x0F) #define OID_GET_SET_TOGGLE 0x8000 #define RT_QUERY_ATE_TXDONE_COUNT #define RT_QUERY_SIGNAL_CONTEXT #define RT_SET_APD_PID #define RT_SET_DEL_MAC_ENTRY 0x0401 0x0402 (OID_GET_SET_TOGGLE + 0x0405) (OID_GET_SET_TOGGLE + 0x0406) //--------------------------------------------------------#ifndef #define #endif TRUE TRUE #ifndef #define #endif FALSE FALSE 1 0 #define MAC_ADDR_LEN #define ETH_LENGTH_OF_ADDRESS #define MAX_LEN_OF_MAC_TABLE 6 6 64 //--------------------------------------------------------typedef struct _COUNTERS { unsigned long unsigned long unsigned long unsigned long unsigned long unsigned long unsigned long unsigned long unsigned long unsigned long unsigned long unsigned long } COUNTERS; TxSuccessTotal;; TxSuccessWithRetry; TxFailWithRetry; RtsSuccess; RtsFail; RxSuccess; RxWithCRC; RxDropNoBuffer; RxDuplicateFrame; FalseCCA; RssiA; RssiB; PS. User can check with “iwpriv ra0 stat” to make sure the TXRX status is correct when porting the ATE related test program. FO //--------------------------------------------------------- MediaTek Confidential © 2014 MediaTek Inc. Page 165 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y struct _SITE_SURVEY R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL typedef { } unsigned char unsigned short unsigned char unsigned char unsigned char SITE_SURVEY; channel; rssi; ssid[33]; bssid[6]; security[9]; //--------------------------------------------------------- typedef union _MACHTTRANSMIT_SETTING { struct { unsigned short MCS:7; // MCS unsigned short BW:1; //channel bandwidth 20MHz or 40 MHz unsigned short ShortGI:1; unsigned short STBC:2; //SPACE unsigned short rsv:3; unsigned short MODE:2; // Use definition MODE_xxx. } field; unsigned short word; } MACHTTRANSMIT_SETTING, *PMACHTTRANSMIT_SETTING; typedef struct _RT_802_11_MAC_ENTRY { unsigned char Addr[6]; unsigned char Aid; unsigned char Psm; // 0:PWR_ACTIVE, 1:PWR_SAVE unsigned char MimoPs; // 0:MMPS_STATIC, 1:MMPS_DYNAMIC, 3:MMPS_Enabled MACHTTRANSMIT_SETTING TxRate; } RT_802_11_MAC_ENTRY, *PRT_802_11_MAC_ENTRY; typedef struct _RT_802_11_MAC_TABLE { unsigned long Num; RT_802_11_MAC_ENTRY Entry[MAX_LEN_OF_MAC_TABLE]; } RT_802_11_MAC_TABLE, *PRT_802_11_MAC_TABLE; // Key mapping keys require a BSSID typedef struct _NDIS_802_11_KEY { unsigned long Length; // Length of this structure unsigned char addr[6]; unsigned long KeyIndex; unsigned long KeyLength; // length of key in bytes unsigned char KeyMaterial[32]; // variable length depending on above field } NDIS_802_11_KEY, *PNDIS_802_11_KEY; typedef struct _RT_SIGNAL_STRUC { unsigned short Sequence; unsigned char MacAddr[MAC_ADDR_LEN]; unsigned char CurrAPAddr[MAC_ADDR_LEN]; unsigned char Sig; } RT_SIGNAL_STRUC, *PRT_SIGNAL_STRUC; //--------------------------------------------------------- COUNTERS SITE_SURVEY char counter; SiteSurvey[100]; data[4096]; FO //============================================================================= MediaTek Confidential © 2014 MediaTek Inc. Page 166 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL int main( int argc, char ** argv ) { char name[25]; int socket_id; struct iwreq wrq; int ret; // open socket based on address family: AF_NET ---------------------------socket_id = socket(AF_INET, SOCK_DGRAM, 0); if(socket_id < 0) { printf("\nrtuser::error::Open socket error!\n\n"); return -1; } // set interface name as "ra0" -------------------------------------------sprintf(name, "ra0"); memset(data, 0x00, 255); // //example of iwconfig ioctl function ========================================== // // get wireless name -----------------------------------------------------strcpy(wrq.ifr_name, name); wrq.u.data.length = 255; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, SIOCGIWNAME, &wrq); if(ret != 0) { printf("\nrtuser::error::get wireless name\n\n"); goto rtuser_exit; } FO printf("\nrtuser[%s]:%s\n", name, wrq.u.name); // //example of iwpriv ioctl function ============================================ // //WPAPSK, remove "set" string --------------------------------------------memset(data, 0x00, 255); strcpy(data, "WPAPSK=11223344"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_SET, &wrq); if(ret != 0) { printf("\nrtuser::error::set wpapsk\n\n"); goto rtuser_exit; } //set e2p, remove "e2p" string -------------------------------------------memset(data, 0x00, 255); strcpy(data, "80=1234"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_E2P, &wrq); if(ret != 0) MediaTek Confidential © 2014 MediaTek Inc. Page 167 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL { printf("\nrtuser::error::set eeprom\n\n"); goto rtuser_exit; } //printf("\n%s\n", wrq.u.data.pointer); { int addr, value, p1; // string format: "\n[0x%02X]:0x%04X " ==> "[0x20]:0x0C02" sscanf(wrq.u.data.pointer, "\n[%dx%02X]:%04X ", &p1, &addr, &value); printf("\nSet EEP[0x%02X]:0x%04X\n", addr, value); } //get e2p, remove "e2p" string -------------------------------------------memset(data, 0x00, 255); strcpy(data, "80"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_E2P, &wrq); if(ret != 0) { printf("\nrtuser::error::get eeprom\n\n"); goto rtuser_exit; } //printf("\n%s\n", wrq.u.data.pointer); { int addr, value, p1, p2; // string format: "\n[0x%02X]:0x%04X " ==> "[0x20]:0x0C02" sscanf(wrq.u.data.pointer, "\n[%dx%04X]:%dx%X ", &p1, &addr, &p2, &value); printf("\nGet EEP[0x%02X]:0x%04X\n", addr, value); } //set mac, remove "mac" string -------------------------------------------memset(data, 0x00, 255); strcpy(data, "2b4f=1"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_MAC, &wrq); if(ret != 0) { printf("\nrtuser::error::set mac register\n\n"); goto rtuser_exit; } //printf("\n%s\n", wrq.u.data.pointer); { int addr, value, p1; // string format: "\n[0x%02X]:0x%04X " ==> "[0x20]:0x0C02" sscanf(wrq.u.data.pointer, "\n[%dx%08X]:%08X ", &p1, &addr, &value); printf("\nSet MAC[0x%08X]:0x%08X\n", addr, value); FO } MediaTek Confidential © 2014 MediaTek Inc. Page 168 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL //get mac, remove "mac" string -------------------------------------------memset(data, 0x00, 255); strcpy(data, "2b4f"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_MAC, &wrq); if(ret != 0) { printf("\nrtuser::error::get mac register\n\n"); goto rtuser_exit; } //printf("\n%s\n", wrq.u.data.pointer); { int addr, value, p1; // string format: "\n[0x%02X]:0x%04X " ==> "[0x20]:0x0C02" sscanf(wrq.u.data.pointer, "\n[%dx%08X]:%08X ", &p1, &addr, &value); printf("\nGet MAC[0x%08X]:0x%08X\n", addr, value); } //set bbp, remove "bbp" string -------------------------------------------memset(data, 0x00, 255); strcpy(data, "17=32"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_BBP, &wrq); if(ret != 0) { printf("\nrtuser::error::set bbp register\n\n"); goto rtuser_exit; } //printf("\n%s\n", wrq.u.data.pointer); { int id, addr, value, p1; // string format: "\n[0x%02X]:0x%04X " ==> "[0x20]:0x0C02" sscanf(wrq.u.data.pointer, "\nR%02d[%dx%02X]:%02X\n", &id, &p1, &addr, &value); printf("\nSet BBP R%02d[0x%02X]:0x%02X\n", id, addr, value); } FO //get bbp, remove "bbp" string -------------------------------------------memset(data, 0x00, 255); strcpy(data, "17"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_BBP, &wrq); if(ret != 0) { printf("\nrtuser::error::get bbp register\n\n"); goto rtuser_exit; } MediaTek Confidential © 2014 MediaTek Inc. Page 169 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL //printf("\n%s\n", wrq.u.data.pointer); { int id, addr, value, p1; // string format: "\n[0x%02X]:0x%04X " ==> "[0x20]:0x0C02" sscanf(wrq.u.data.pointer, "\nR%02d[%dx%02X]:%02X ", &id, &p1, &addr, &value); printf("\nGet BBP R%02d[0x%02X]:0x%02X\n", id, addr, value); } //get statistics, remove "stat" string -----------------------------------memset(data, 0x00, 2048); strcpy(data, ""); strcpy(wrq.ifr_name, name); wrq.u.data.length = 0; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_STATISTICS, &wrq); if(ret != 0) { printf("\nrtuser::error::get statistics\n\n"); goto rtuser_exit; } printf("\n========= Get AP Statistics ==========\n"); { int i; char *sp = wrq.u.data.pointer; unsigned long *cp = (unsigned long *)&counter; for (i = 0 ; i < 13 ; i++) { sp = strstr(sp, "= "); sp = sp+2; sscanf(sp, "%ul", (unsigned int *)&cp[i]); } printf("Tx success = %u\n", (unsigned int)counter.TxSuccessTotal); printf("Tx success without retry = %u\n", (unsigned int) counter.TxSuccessWithoutRetry); printf("Tx success after retry = %u\n", (unsigned int)counter.TxSuccessWithRetry); printf("Tx fail to Rcv ACK after retry = %u\n", (unsigned int)counter.TxFailWithRetry); printf("RTS Success Rcv CTS = %u\n", (unsigned int)counter.RtsSuccess); printf("RTS Fail Rcv CTS = %u\n", (unsigned int)counter.RtsFail); printf("Rx success = %u\n", (unsigned int)counter.RxSuccess); printf("Rx with CRC = %u\n", (unsigned int)counter.RxWithCRC); printf("Rx drop due to out of resource= %u\n", (unsigned int)counter.RxDropNoBuffer); printf("Rx duplicate frame = %u\n", (unsigned int)counter.RxDuplicateFrame); printf("False CCA (one second) = %u\n", (unsigned int)counter.FalseCCA); printf("RSSI-A = %d\n", ( signed int)counter.RssiA); printf("RSSI-B (if available) = %d\n", ( signed int)counter.RssiB); } FO #if 0 //set AP to do site survey, remove "set" string --------------------------memset(data, 0x00, 255); strcpy(data, "SiteSurvey=1"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; MediaTek Confidential © 2014 MediaTek Inc. Page 170 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL ret = ioctl(socket_id, RTPRIV_IOCTL_SET, &wrq); #endif //get AP's site survey, remove "get_site_survey" string ------------------memset(data, 0x00, 2048); strcpy(data, ""); strcpy(wrq.ifr_name, name); wrq.u.data.length = 4096; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_GSITESURVEY, &wrq); if(ret != 0) { printf("\nrtuser::error::get site survey\n\n"); goto rtuser_exit; } //printf("\n%s\n", wrq.u.data.pointer); printf("\n========== Get Site Survey AP List =========="); if(wrq.u.data.length > 0) { int i, apCount; char *sp, *op; int len = wrq.u.data.length; op = sp = wrq.u.data.pointer; sp = sp+1+8+8+35+19+8+1; i = 0; // santy check // 1. valid char data // 2. rest length is larger than per line length ==> (1+8+8+35+19+8+1) while(*sp && ((len - (sp-op)) > (1+8+8+35+19+8))) { //if(*sp++ == '\n') // continue; //printf("\n\nAP Count: %d\n", i); sscanf(sp, "%d", (int *)&SiteSurvey[i].channel); //printf("channel: %d\n", SiteSurvey[i].channel); sp = strstr(sp, "-"); sscanf(sp, "-%d", (int *)&SiteSurvey[i].rssi); //printf("rssi: -%d\n", SiteSurvey[i].rssi); sp = sp+8; strncpy((char *)&SiteSurvey[i].ssid, sp, 32); SiteSurvey[i].ssid[32] = '\0'; //printf("ssid: %s\n", SiteSurvey[i].ssid); FO sp = sp+35; sscanf(sp, "%02x:%02x:%02x:%02x:%02x:%02x", (int *)&SiteSurvey[i].bssid[0], (int *)&SiteSurvey[i].bssid[1], (int *)&SiteSurvey[i].bssid[2], (int *)&SiteSurvey[i].bssid[3], (int *)&SiteSurvey[i].bssid[4], (int *)&SiteSurvey[i].bssid[5]); //printf("bssid: %02x:%02x:%02x:%02x:%02x:%02x\n", // SiteSurvey[i].bssid[0], SiteSurvey[i].bssid[1], // SiteSurvey[i].bssid[2], SiteSurvey[i].bssid[3], // SiteSurvey[i].bssid[4], SiteSurvey[i].bssid[5]); sp = sp+19; MediaTek Confidential © 2014 MediaTek Inc. Page 171 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL strncpy((char *)&SiteSurvey[i].security, sp, 8); SiteSurvey[i].security[8] = '\0'; //printf("security: %s\n", SiteSurvey[i].security); sp = sp+8+1; i = i+1; } apCount = i; printf("\n%-4s%-8s%-8s%-35s%-20s%-8s\n", "AP", "Channel", "RSSI", "SSID", "BSSID", "Security"); for(i = 0 ; i < apCount ; i++) {//4+8+8+35+20+8 printf("%-4d", i+1); printf("%-8d", SiteSurvey[i].channel); printf("-%-7d", SiteSurvey[i].rssi); printf("%-35s", SiteSurvey[i].ssid); printf("%02X:%02X:%02X:%02X:%02X:%02X ", SiteSurvey[i].bssid[0], SiteSurvey[i].bssid[1], SiteSurvey[i].bssid[2], SiteSurvey[i].bssid[3], SiteSurvey[i].bssid[4], SiteSurvey[i].bssid[5]); printf("%-8s\n", SiteSurvey[i].security); } } //get AP's mac table, remove "get_mac_table" string ----------------------memset(data, 0x00, 2048); strcpy(data, ""); strcpy(wrq.ifr_name, name); wrq.u.data.length = 2048; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_GET_MAC_TABLE, &wrq); if(ret != 0) { printf("\nrtuser::error::get mac table\n\n"); goto rtuser_exit; } printf("\n========== Get Associated MAC Table =========="); { RT_802_11_MAC_TABLE *mp; int i; FO mp = (RT_802_11_MAC_TABLE *)wrq.u.data.pointer; printf("\n%-4s%-20s%-4s%-10s%-10s%-10s\n", "AID", "MAC_Address", "PSM", "LastTime", "RxByte", "TxByte"); for(i = 0 ; i < mp->Num ; i++) { printf("%-4d", mp->Entry[i].Aid); printf("%02X:%02X:%02X:%02X:%02X:%02X ", mp->Entry[i].Addr[0], mp->Entry[i].Addr[1], mp->Entry[i].Addr[2], mp->Entry[i].Addr[3], mp->Entry[i].Addr[4], mp->Entry[i].Addr[5]); printf("%-4d", mp->Entry[i].Psm); printf("%-10u", (unsigned int)mp->Entry[i].HSCounter.LastDataPacketTime); printf("%-10u", (unsigned int)mp->Entry[i].HSCounter.TotalRxByteCount); printf("%-10u", (unsigned int)mp->Entry[i].HSCounter.TotalTxByteCount); printf("\n"); MediaTek Confidential © 2014 MediaTek Inc. Page 172 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL } printf("\n"); } //set: raw data // RTPRIV_IOCTL_RADIUS_DATA // RTPRIV_IOCTL_ADD_WPA_KEY // RTPRIV_IOCTL_ADD_PMKID_CACHE //set RADIUS Data --------------------------------------------------------printf("\nrtuser::set radius data\n\n"); memset(data, 0x55, 100); strcpy(wrq.ifr_name, name); wrq.u.data.length = 100; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_RADIUS_DATA, &wrq); if(ret != 0) { printf("\nrtuser::error::set radius data\n\n"); goto rtuser_exit; } //add WPA Key ------------------------------------------------------------printf("\nrtuser::add wpa key\n\n"); { NDIS_802_11_KEY *vp; memset(data, 0, sizeof(NDIS_802_11_KEY)); vp = (NDIS_802_11_KEY *)&data; vp->Length = sizeof(NDIS_802_11_KEY); memset(vp->addr, 0x11, 6); vp->KeyIndex = 2; vp->KeyLength = 32; memset(vp->KeyMaterial, 0xAA, 32); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(NDIS_802_11_KEY); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_ADD_WPA_KEY, &wrq); if(ret != 0) { printf("\nrtuser::error::add wpa key\n\n"); goto rtuser_exit; } } //add PMKID_CACHE --------------------------------------------------------printf("\nrtuser::add PMKID_CACHE\n\n"); { NDIS_802_11_KEY *vp; FO memset(data, 0, sizeof(NDIS_802_11_KEY)); vp = (NDIS_802_11_KEY *)&data; vp->Length = sizeof(NDIS_802_11_KEY); memset(vp->addr, 0x11, 6); vp->KeyIndex = 2; MediaTek Confidential © 2014 MediaTek Inc. Page 173 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL vp->KeyLength = 32; memset(vp->KeyMaterial, 0xBB, 32); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(NDIS_802_11_KEY); wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_ADD_PMKID_CACHE, &wrq); if(ret != 0) { printf("\nrtuser::error::add PMKID_CACHE\n\n"); goto rtuser_exit; } } //set: raw data // RT_SET_APD_PID // RT_SET_DEL_MAC_ENTRY //set APD_PID ------------------------------------------------------------printf("\nrtuser::set APD_PID\n\n"); memset(data, 0, 4); data[0] = 12; strcpy(wrq.ifr_name, name); wrq.u.data.length = 4; wrq.u.data.pointer = data; wrq.u.data.flags = RT_SET_APD_PID; ret = ioctl(socket_id, RT_PRIV_IOCTL, &wrq); if(ret != 0) { printf("\nrtuser::error::set APD_PID\n\n"); goto rtuser_exit; } //set DEL_MAC_ENTRY ------------------------------------------------------printf("\nrtuser::set DEL_MAC_ENTRY\n\n"); memset(data, 0xdd, 6); strcpy(wrq.ifr_name, name); wrq.u.data.length = 6; wrq.u.data.pointer = data; wrq.u.data.flags = RT_SET_DEL_MAC_ENTRY; ret = ioctl(socket_id, RT_PRIV_IOCTL, &wrq); if(ret != 0) { printf("\nrtuser::error::set DEL_MAC_ENTRY\n\n"); goto rtuser_exit; } FO //get: raw data // RT_QUERY_ATE_TXDONE_COUNT // RT_QUERY_SIGNAL_CONTEXT //get ATE_TXDONE_COUNT ---------------------------------------------------printf("\nrtuser::get ATE_TXDONE_COUNT\n\n"); memset(data, 0, 4); strcpy(wrq.ifr_name, name); wrq.u.data.length = 4; wrq.u.data.pointer = data; wrq.u.data.flags = RT_QUERY_ATE_TXDONE_COUNT; ret = ioctl(socket_id, RT_PRIV_IOCTL, &wrq); MediaTek Confidential © 2014 MediaTek Inc. Page 174 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL if(ret != 0) { printf("\nrtuser::error::get ATE_TXDONE_COUNT\n\n"); goto rtuser_exit; } printf("\nATE_TXDONE_COUNT:: %08lx\n\n", (unsigned long)*wrq.u.data.pointer); //get SIGNAL_CONTEXT -----------------------------------------------------printf("\nrtuser::get SIGNAL_CONTEXT\n\n"); { RT_SIGNAL_STRUC *sp; memset(data, 0, sizeof(RT_SIGNAL_STRUC)); strcpy(wrq.ifr_name, name); wrq.u.data.length = sizeof(RT_SIGNAL_STRUC); wrq.u.data.pointer = data; wrq.u.data.flags = RT_QUERY_SIGNAL_CONTEXT; ret = ioctl(socket_id, RT_PRIV_IOCTL, &wrq); if(ret != 0) { printf("\nrtuser::error::get SIGNAL_CONTEXT\n\n"); goto rtuser_exit; } sp = (RT_SIGNAL_STRUC *)wrq.u.data.pointer; printf("\n===== SIGNAL_CONTEXT =====\n\n"); printf("Sequence = 0x%04x\n", sp->Sequence); printf("Mac.Addr = %02x:%02x:%02x:%02x:%02x:%02x\n", sp->MacAddr[0], sp->MacAddr[1], sp->MacAddr[2], sp->MacAddr[3], sp->MacAddr[4], sp->MacAddr[5]); printf("CurrAP.Addr = %02x:%02x:%02x:%02x:%02x:%02x\n", sp->CurrAPAddr[0], sp->CurrAPAddr[1], sp->CurrAPAddr[2], sp->CurrAPAddr[3], sp->CurrAPAddr[4], sp->CurrAPAddr[5]); printf("Sig = %d\n\n", sp->Sig); } //SSID, remove "set" string ----------------------------------------------memset(data, 0x00, 255); strcpy(data, "SSID=rtuser"); strcpy(wrq.ifr_name, name); wrq.u.data.length = strlen(data)+1; wrq.u.data.pointer = data; wrq.u.data.flags = 0; ret = ioctl(socket_id, RTPRIV_IOCTL_SET, &wrq); if(ret != 0) { printf("\nrtuser::error::set SSID\n\n"); goto rtuser_exit; } rtuser_exit: if (socket_id >= 0) close(socket_id); if(ret) return ret; else return 0; FO } MediaTek Confidential © 2014 MediaTek Inc. Page 175 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 19 19.1 SingleSKU Example file (New feature for MT76XX) 2.4GHz example SingleSKU.dat # Single SKU Max Power Table # |CCK 1~11 | | OFDM 6 ~ 54 || HT20 MCS 0 ~ 15 || HT40 MCS 0 ~ 15 | ch1 23 23 23 23 21 21 21 21 21 21 20 20 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 ch2 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch3 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch4 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch5 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch6 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch7 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch8 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch9 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch10 23 23 23 23 22 22 22 22 22 22 20 20 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch11 23 23 23 23 19 19 19 19 19 19 19 19 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch12 23 23 23 23 19 19 19 19 19 19 19 19 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch13 23 23 23 23 19 19 19 19 19 19 19 19 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 ch14 23 23 23 23 Note: default SingleSKU profile path in driver is defined “/etc_ro/Wireless/RT2860AP/SingleSKU.dat” For the detailed usage of SingleSKU in profile support, please refer MTK_SingleSKU_InProfile_User_manual.pdf and contact with MTK support windows. 19.2 to the 5GHz example SingleSKU.dat FO # Single SKU Max Power Table # OFDM 6 ~ 54 || HT20 MCS 0 ~ 15 || HT40 MCS 0 ~ 15 || VHT80 MCS 0 ~ 9 | ch36 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch38 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch40 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch42 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch44 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch46 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch48 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch52 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch54 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch56 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch58 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 ch60 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch62 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch64 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch100 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 MediaTek Confidential © 2014 MediaTek Inc. Page 176 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL ch102 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch104 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 ch106 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 ch108 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 ch110 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 ch112 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 ch116 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch118 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch120 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch122 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch124 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch126 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch128 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch132 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 18 18 18 18 18 18 18 18 18 18 ch134 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 18 18 18 18 18 18 18 18 18 18 ch136 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 18 18 18 18 18 18 18 18 18 18 ch140 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch149 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch151 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch153 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch155 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch157 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch159 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch161 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch165 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch169 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 ch173 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 # End of Single SKU Table Note: default SingleSKU profile path in driver is defined “/etc_ro/Wireless/RT2860AP/SingleSKU.dat” FO For the detailed usage of SingleSKU in profile support, please refer MTK_SingleSKU_InProfile_User_manual.pdf and contact with MTK support windows. MediaTek Confidential © 2014 MediaTek Inc. Page 177 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. to the loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 20 EDCCA testing 20.1 Before EDCCA testing check and BBP R61 fine tune during EDCCA testing 1. Profile (.dat) setting for EDCCA testing: ▪ ▪ ▪ ▪ ▪ ▪ ▪ CountryCode= FR EDCCA_STA_SCANED_AP_TH=255 // After lab testing, you may fine tune this value back to 5 EDCCA_STA_CURRENT_CH_APS_TH=255 // After lab testing, you may fine tune this value back to 1 EDCCA_STA_RSSI_TH=-100 EDCCA_ED_TH=90 EDCCA_FALSE_CCA_TH=3000 // After lab testing, you may fine tune this value back to 180 EDCCA_BLOCK_CHECK_TH=2 2. Before EDCCA testing, please make sure disable dynamic VGA. # iwpriv ra0 set DyncVgaEnable=0 3. During EDCCA testing, please check CR (control register) bbp 87 bit7=1, make sure ED CCA is enabled # iwpriv ra0 bbp 87 mac 1340 bit20=1, make sure ED CCA is enabled # iwpriv ra0 mac 1340 mac 1004 bit2=1, when driver automatic hit ED CCA condition else it is 0. # iwpriv ra0 mac 1004 4. During EDCCA testing, you may fine tune bbp R61 [7:0] to control sensitivity。 # iwpriv ra0 bbp 61=01 (you may fine tune dpendson different boards,0x01 is the smallest value, FO that means most sensitive.) MediaTek Confidential © 2014 MediaTek Inc. Page 178 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 21 Q&A 21.1 Why WPAPSK can not work? Please make sure the parameter “DefaultKeyID” is set to 2 in configuration file 21.2 How to switch driver to operate in A band? Make sure the IC supports A band. Check parameter “WirelessMode” is set to support A band. Channel set to 36, 40….. 21.3 When I set channel as 1, but it will appear in channel 3. Why? Make sure the channel is match with CountryRegion or CountryRegionABand. 21.4 How can I know the version of the WLAN Driver? Check the definition of DRIVER_VERSION in rt_config.h. Use command “iwpriv ra0 set DriverVersion=0”, it will export to debug console. 21.5 Can SoftAP support Antenna diversity? No SoftAP can not support antenna diversity even EEPROM has set antenna enabled. 21.6 Can you tell me what is 11n Bit Rate Derivation? The BitRate of 11n need below information on MAC driver and the real rates will be triggered by PHY layer depends on below three factors. a. MCS b. BW c. GI Bandwidth: Data subcarriers on different bandwidth, 20MHz and 40MHz. a. NSD: Number of data subcarriers. NSD[40Mhz] = 108 NSD[20Mhz] = 52 NSD[40Mhz]/NSD[20MHz] = 108/52 = 2.0769230769230769230769230769231 FO Example: MCS=15, GI=800ns, BW=20MHz, DataRate MCS=15, GI=800ns, BW=40MHz, DataRate MediaTek Confidential © 2014 MediaTek Inc. = 130Mbps = 130 * [Nsd(40Mhz) / Nsd(20Mhz) ] Page 179 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y / 52 ] R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL = 130 * [108 = 270Mbps b. Please refer to “IEEE P802.11n/D2.04, June 2007” on page 314 for below table. 1. Guard Interval. a. Definition: Tsym: 4us Tsyms: 3.6us b. , Symbol Interval , Symbol interval of Short GI. Ratio of symbol interval on GI, refer to below EWC PHY Sepc. Tsym / Tsyms = 4usec / 3.6usec = 10/9 Example: c. MCS=15, 40MHz Bandwidth, and 400ns Short Guard Interval. 270.0 * (10/9) = 300.0 for Short GI. Reference: 1) IEEE 802.11n draft 2.04, page 316 and Table 211—MCS parameters for optional 40 MHz, NSS = 2, NES = 1, EQM (#665) FO MCS Index Data rate (Mb/s) 800 400 ns GI ns GI Modulation R NBPSCS(iSS) NSD NSP NCBPS NDBPS 8 BPSK 1/2 1 108 6 216 108 27.0 30.0 9 QPSK 1/2 2 108 6 432 216 54.0 60.0 10 QPSK 3/4 2 108 6 432 324 81.0 90.0 11 16-QAM 1/2 4 108 6 864 432 108.0 120.0 12 16-QAM 3/4 4 108 6 864 648 162.0 180.0 13 64-QAM 2/3 6 108 6 1296 864 216.0 240.0 14 64-QAM 3/4 6 108 6 1296 972 243.0 270.0 15 64-QAM 5/6 6 108 6 1296 1080 270.0 MediaTek Confidential © 2014 MediaTek Inc. Page 180 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. 300 loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL EWC PHY spec. page 13. 21.7 FixTxMode iwpriv command samples 11 B only Mode: iwpriv ra0 set HtOpMode=1 iwpriv ra0 set FixedTxMode=1 iwpriv ra0 set WirelessMode=1 iwpriv ra0 set HtMcs=2 iwpriv ra0 set BasicRate=3 iwpriv ra0 set SSID=RT3052_AP Note: HtMcs example for different data rate setting iwpriv ra0 set HtMcs=X FO X= 0-3 0=1Mbps, 1=2Mbps, 2=5.5Mbps, 3=11Mbps MediaTek Confidential © 2014 MediaTek Inc. Page 181 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 11 G only Mode: iwpriv ra0 set HtOpMode=0 iwpriv ra0 set FixedTxMode=2 iwpriv ra0 set WirelessMode=4 iwpriv ra0 set HtMcs=5 iwpriv ra0 set BasicRate=351 iwpriv ra0 set SSID=RT3052_AP Note: HtMcs example for different data rate setting iwpriv ra0 set HtMcs=X X=0-7 0=6Mbps, 1= 9Mbps, 2=12Mbps, 3=18Mbps, 4=24Mbps, 5=36Mbps, 6=48Mbps, 7=54Mbps 11 N only Mode: iwpriv ra0 set HtOpMode=1 iwpriv ra0 set FixedTxMode=0 iwpriv ra0 set WirelessMode=6 iwpriv ra0 set HtMcs=13 iwpriv ra0 set BasicRate=15 iwpriv ra0 set SSID=RT3052_AP 11 B/G/N mixed Mode: iwpriv ra0 set HtOpMode=0 iwpriv ra0 set FixedTxMode=0 iwpriv ra0 set WirelessMode=9 iwpriv ra0 set HtMcs=5 iwpriv ra0 set BasicRate=15 iwpriv ra0 set SSID=RT3052_AP Note: HtMcs example for different data rate setting iwpriv ra0 set HtMcs=x X=0-15 Short GI Data Rate 0=15Mbps, 1=30Mbps, 2=45Mbps, 3=60Mbps, 4=90Mbps, 5=120Mbps, 6=135Mbps, 7=150Mbps 8=30Mbps, 9=60Mbps,10=90Mbps,11=120Mbps,12=180Mbps, 13=240Mbps, 14=270Mbps, 15=300Mbps FO Long GI Data Rate 0=13.5Mbps, 1=27Mbps, 2=40.5Mbps, 3=54Mbps, 4=81Mbps, 5=108Mbps, 6=121.5Mbps, 7=135Mbps 8=27Mbps, 9=54Mbps, 10=81Mbps, 11=108Mbps, 12=162Mbps, 13=216Mbps, 14=243Mbps, MediaTek Confidential © 2014 MediaTek Inc. Page 182 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 15=270Mbps 21.8 DFS Test example Case 1: Band 2 & 3 select one channel for test Test Condition: Run 30% throughput between STA and AP. DFS Debug command: iwpriv ra0 set RadarDebug=0x10 DFS CE certification setting in the profile: IEEE80211H=1 DfsOutdoor=0 RDRegion=CE CountryCode=GB Result: All major test items are all passed. Case 2: Band 2 & 3 select one channel for test. Test condition: Run video stream throughput between STA and AP. (Set AP Fix Tx Rate to MCS0) Bandwidth setting 20MHz and 20/40MHz Auto. DFS Debug command: iwpriv ra0 set RadarDebug=0x10 DFS FCC certification setting in the profile: IEEE80211H=1 DfsOutdoor=0 RDRegion=FCC CountryCode=US Result: When Radar signal run in 5498~5502MHz, Radar type 3 & 4 fail in BW 40MHz test. Radar type 1 fail in BW 20MHz test, Recommend to make the Radar signal run in 5495~5525MHz with BW 40MHz test. In 5494~5506MHz in BW 20MHz test. All major test items are all passed. Case 3: Detect DFS signal without move channel. (For Lab testing) Command Example: FO iwpriv ra0 set Debug=3 iwpriv ra0 set Channel=100 iwpriv ra0 set RadarDebug=0x10 iwpriv ra0 set ChMovTime=2 iwpriv ra0 set DfsSwDisable=0 MediaTek Confidential © 2014 MediaTek Inc. Page 183 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL Result: When Radar signals run in channl 100, the AP will display DFS detected information on the console. DFS deteched consloe log may look like below: DFS HW check channel = 0x4 T= XXXXX W= XXX detected by ch 2 21.9 New BSSID Mode MAC Address Limitation (for RT55XX/RT53XX series) When the NEW_MBSS_MODE is enabled, HW uses the byte0 of MAC address to distinguish different BSSID. 1. The Bit0 of MAC address Byte0 is broadcast/multicast bit. 2. The Bit1 of MAC address Byte0 is local administration bit and should be set to 1 in extended multiple BSSIDs’. 3. The Bit5:Bit2 of MAC address Byte0 is extended multiple BSSID index if the 16 MBSS mode is set. Please follow the bit-reserved rule as below, The bit5 ~ bit2 of Byte0 need to be reserved as 0 in 16 MBSS mode. The bit4 ~ bit2 of Byte0 need to be reserved as 0 in 8 MBSS mode. The bit3 ~ bit2 of Byte0 need to be reserved as 0 in 4 MBSS mode. The bit2 of Byte0 need to be reserved as 0 in 2 MBSS mode. 21.10 TX & RX performance is always unbalance When encounter TX & RX performance unbalance issue during Wi-Fi performance test, please check the TxBurst option is off or on. When TxBurst is on, the TX packets will have higher priority than RX packets. In the result, the WLAN TX performance will be higher than RX. This problem usual appears in Fast Ethernet + WLAN solution. GiGaBit Ethernet + WLAN solution doesn’t have such problem. How to turn off TxBurst? FO By Profile: TxBurst=0 By iwpriv command: iwpriv ra0 set TxBurst=0 MediaTek Confidential © 2014 MediaTek Inc. Page 184 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y VHT MCS Table FO R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL 21.11 MediaTek Confidential © 2014 MediaTek Inc. Page 185 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL FO MediaTek Confidential © 2014 MediaTek Inc. Page 186 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited. loginid=victorlin@synnex.com.tw,time=2014-07-11 10:02:30,ip=39.12.252.252,doctitle=MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf,company=Synnex Electronics HK Limited 聯強電子_RLT Y R ME vic DI tor AT lin EK @ syn CO ne NF x.c ID om EN .tw TI US AL EO NL FO MediaTek Confidential © 2014 MediaTek Inc. Page 187 of 187 This document contains information that is proprietary to MediaTek Inc. Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.4 Linearized : No Encryption : Standard V2.3 (128-bit) User Access : (none) Page Count : 187 Format : application/pdf Time : 2014:07:11 10:02:30 Doctitle : MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2.pdf Loginid : victorlin@synnex.com.tw Ip : 39.12.252.252 Company : Synnex Electronics HK Limited 聯強電子_RLT Producer : GPL Ghostscript 8.64; modified using iTextSharp 5.0.5 (c) 1T3XT BVBA Create Date : 2014:07:03 09:58:52+08:00 Modify Date : 2014:07:11 10:02:30+08:00 Title : MTK_Wi-Fi_SoftAP_Software_Programming_Guide_v4.2 Creator : PDFCreator Version 0.9.8 Author : mtk04594 Subject :EXIF Metadata provided by EXIF.tools