mt_wifi: add mtkiappd support
* Add mtkiappd * Fix non-DBDC build * Add option to disable dual band of mtkiappd
This commit is contained in:
parent
8561c26155
commit
942261f1a1
@ -106,8 +106,8 @@ RADIUS_Server=192.168.2.3
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Key=ralink
|
||||
own_ip_addr=192.168.5.234
|
||||
EAPifname=br0
|
||||
PreAuthifname=br0
|
||||
EAPifname=br-lan
|
||||
PreAuthifname=br-lan
|
||||
HT_HTC=0
|
||||
HT_RDG=0
|
||||
HT_EXTCHA=0
|
||||
|
||||
@ -12909,8 +12909,8 @@ VOID RTMPIoctlNfcStatus(
|
||||
memset(msg, 0 ,128 );
|
||||
|
||||
/*
|
||||
Action: b<EFBFBD><EFBFBD><7:6>: 0x0 <EFBFBD>V To NFC, 0x1 <EFBFBD>V From NFC
|
||||
b<EFBFBD><EFBFBD><5:0>: 0x0 <EFBFBD>V Get, 0x01 - Set
|
||||
Action: b<7:6>: 0x0 V To NFC, 0x1 V From NFC
|
||||
b<5:0>: 0x0 V Get, 0x01 - Set
|
||||
*/
|
||||
UCHAR action = 0, type = TYPE_NFC_STATUS; /* 5 - NFC Status */
|
||||
|
||||
|
||||
@ -106,8 +106,8 @@ RADIUS_Server=192.168.2.3
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Key=ralink
|
||||
own_ip_addr=192.168.5.234
|
||||
EAPifname=br0
|
||||
PreAuthifname=br0
|
||||
EAPifname=br-lan
|
||||
PreAuthifname=br-lan
|
||||
HT_HTC=0
|
||||
HT_RDG=0
|
||||
HT_EXTCHA=0
|
||||
|
||||
@ -104,8 +104,8 @@ RADIUS_Server=192.168.2.3
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Key=ralink
|
||||
own_ip_addr=192.168.5.234
|
||||
EAPifname=br0
|
||||
PreAuthifname=br0
|
||||
EAPifname=br-lan
|
||||
PreAuthifname=br-lan
|
||||
HT_HTC=0
|
||||
HT_RDG=0
|
||||
HT_EXTCHA=0
|
||||
|
||||
@ -87,8 +87,8 @@ RADIUS_Server=192.168.2.3
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Key=ralink
|
||||
own_ip_addr=192.168.5.234
|
||||
EAPifname=br0
|
||||
PreAuthifname=br0
|
||||
EAPifname=br-lan
|
||||
PreAuthifname=br-lan
|
||||
HT_HTC=0
|
||||
HT_RDG=0
|
||||
HT_EXTCHA=0
|
||||
|
||||
@ -190,11 +190,8 @@ where
|
||||
iwpriv ra0 set ATETXPOW1=18
|
||||
iwpriv ra0 set ATETXCNT=100000
|
||||
iwpriv ra0 set ATE=TXFRAME
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=19
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=20
|
||||
¡K
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
|
||||
2.2 Check Carrier
|
||||
@ -241,7 +238,7 @@ where
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
iwpriv ra0 set ATECHANNEL=1 ; set Channel
|
||||
iwpriv ra0 set ResetCounter=1 ; Reset statistic counter
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the ¡§value¡¨(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the value(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXMODE=1 ; set TX-Mode.
|
||||
iwpriv ra0 set ATETXMCS=7 ; set MCS type.
|
||||
iwpriv ra0 set ATETXBW=0 ; set Bandwidth
|
||||
@ -314,8 +311,7 @@ where
|
||||
MlmePeriodicExec: Rx packet cnt = 2/4
|
||||
MlmePeriodicExec: Rx AvgRssi0=-88, AvgRssi1=-80, AvgRssi2=-91
|
||||
MlmePeriodicExec: Rx packet cnt = 2/6
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89¡K
|
||||
¡K
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89
|
||||
|
||||
iwpriv ra0 set ATERXANT=1 ==> Enable Three Rx Antenna-1
|
||||
iwpriv ra0 set ATERXFER=1 ==> Enable Rx Frame Error Rate: RxCnt/RxTotal
|
||||
@ -324,8 +320,6 @@ where
|
||||
MlmePeriodicExec: Rx AvgRssi=-87
|
||||
MlmePeriodicExec: Rx packet cnt = 7/14
|
||||
MlmePeriodicExec: Rx AvgRssi=-90
|
||||
¡K
|
||||
¡K
|
||||
|
||||
|
||||
===================================================================================================
|
||||
@ -337,7 +331,7 @@ where
|
||||
Read/Write BBP registers by ID number.
|
||||
BBPID
|
||||
|
||||
3.1.1 Read BBP register, BBPID only, no ¡§=¡¨ symbol.
|
||||
3.1.1 Read BBP register, BBPID only, no = symbol.
|
||||
BBPID:
|
||||
0 ~ xx ; decimal, 8-bit
|
||||
BBPID=Value
|
||||
@ -353,7 +347,7 @@ where
|
||||
Read/Write MAC registers by offset.
|
||||
MAC_OFFSET
|
||||
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no ¡§=¡¨ symbol.
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no = symbol.
|
||||
MAC_OFFSET:
|
||||
0000 ~ FFFF ; hexdecimal, 16-bit
|
||||
MAC_OFFSET=Value
|
||||
@ -369,14 +363,14 @@ where
|
||||
Read/Write EEPROM content by address.
|
||||
EEP_ADDR
|
||||
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no ¡§=¡¨ symbol.
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no = symbol.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
EEP_ADDR=Value
|
||||
|
||||
3.3.2 Write EEPROM content.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
Value:
|
||||
0000 ~FFFF ; hexdecimal, 16-bit
|
||||
|
||||
@ -428,7 +422,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
5. If you have no bridge interface, please give an IP address to the ethernet interface.
|
||||
(for example : '$ated -beth0')
|
||||
6. After the interfaces have entered forwarding states, manually start ated, type '$ated -bbrX -iraX'.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br0" respectively, just type $ated.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br-lan" respectively, just type $ated.
|
||||
(For further usage of options, type $ated -h)
|
||||
8. In the Windows host, run RT28xxQA_ATE.exe or ./RT2880_ATE/RaUI.exe.
|
||||
9. Select the wired network adapter, then press OK and wait for a moment.
|
||||
@ -437,7 +431,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
11.If your target platform concerns its network security, please run RT28xxQA_unicast.exe instead of RT28xxQA_ATE.exe.
|
||||
|
||||
Note :
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br0") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br0" respectively !
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br-lan") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br-lan" respectively !
|
||||
b. Please make sure no other RaUI is running before you excute ./RT2880_ATE/RaUI.exe.
|
||||
|
||||
|
||||
|
||||
@ -191,11 +191,9 @@ where
|
||||
iwpriv ra0 set ATETXPOW1=18
|
||||
iwpriv ra0 set ATETXCNT=100000
|
||||
iwpriv ra0 set ATE=TXFRAME
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=19
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=20
|
||||
¡K
|
||||
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
|
||||
2.2 Check Carrier
|
||||
@ -242,7 +240,7 @@ where
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
iwpriv ra0 set ATECHANNEL=1 ; set Channel
|
||||
iwpriv ra0 set ResetCounter=1 ; Reset statistic counter
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the ¡§value¡¨(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the value(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXMODE=1 ; set TX-Mode.
|
||||
iwpriv ra0 set ATETXMCS=7 ; set MCS type.
|
||||
iwpriv ra0 set ATETXBW=0 ; set Bandwidth
|
||||
@ -315,8 +313,7 @@ where
|
||||
MlmePeriodicExec: Rx packet cnt = 2/4
|
||||
MlmePeriodicExec: Rx AvgRssi0=-88, AvgRssi1=-80, AvgRssi2=-91
|
||||
MlmePeriodicExec: Rx packet cnt = 2/6
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89¡K
|
||||
¡K
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89
|
||||
|
||||
iwpriv ra0 set ATERXANT=1 ==> Enable Three Rx Antenna-1
|
||||
iwpriv ra0 set ATERXFER=1 ==> Enable Rx Frame Error Rate: RxCnt/RxTotal
|
||||
@ -325,8 +322,6 @@ where
|
||||
MlmePeriodicExec: Rx AvgRssi=-87
|
||||
MlmePeriodicExec: Rx packet cnt = 7/14
|
||||
MlmePeriodicExec: Rx AvgRssi=-90
|
||||
¡K
|
||||
¡K
|
||||
|
||||
|
||||
===================================================================================================
|
||||
@ -338,7 +333,7 @@ where
|
||||
Read/Write BBP registers by ID number.
|
||||
BBPID
|
||||
|
||||
3.1.1 Read BBP register, BBPID only, no ¡§=¡¨ symbol.
|
||||
3.1.1 Read BBP register, BBPID only, no = symbol.
|
||||
BBPID:
|
||||
0 ~ xx ; decimal, 8-bit
|
||||
BBPID=Value
|
||||
@ -354,7 +349,7 @@ where
|
||||
Read/Write MAC registers by offset.
|
||||
MAC_OFFSET
|
||||
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no ¡§=¡¨ symbol.
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no = symbol.
|
||||
MAC_OFFSET:
|
||||
0000 ~ FFFF ; hexdecimal, 16-bit
|
||||
MAC_OFFSET=Value
|
||||
@ -370,14 +365,14 @@ where
|
||||
Read/Write EEPROM content by address.
|
||||
EEP_ADDR
|
||||
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no ¡§=¡¨ symbol.
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no = symbol.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
EEP_ADDR=Value
|
||||
|
||||
3.3.2 Write EEPROM content.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
Value:
|
||||
0000 ~FFFF ; hexdecimal, 16-bit
|
||||
|
||||
@ -429,7 +424,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
5. If you have no bridge interface, please give an IP address to the ethernet interface.
|
||||
(for example : '$ated -beth0')
|
||||
6. After the interfaces have entered forwarding states, manually start ated, type '$ated -bbrX -iraX'.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br0" respectively, just type $ated.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br-lan" respectively, just type $ated.
|
||||
(For further usage of options, type $ated -h)
|
||||
8. In the Windows host, run RT28xxQA_ATE.exe or ./RT2880_ATE/RaUI.exe.
|
||||
9. Select the wired network adapter, then press OK and wait for a moment.
|
||||
@ -438,7 +433,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
11.If your target platform concerns its network security, please run RT28xxQA_unicast.exe instead of RT28xxQA_ATE.exe.
|
||||
|
||||
Note :
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br0") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br0" respectively !
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br-lan") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br-lan" respectively !
|
||||
b. Please make sure no other RaUI is running before you excute ./RT2880_ATE/RaUI.exe.
|
||||
|
||||
|
||||
|
||||
@ -104,8 +104,8 @@ RADIUS_Server=192.168.2.3
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Key=ralink
|
||||
own_ip_addr=192.168.5.234
|
||||
EAPifname=br0
|
||||
PreAuthifname=br0
|
||||
EAPifname=br-lan
|
||||
PreAuthifname=br-lan
|
||||
HT_HTC=0
|
||||
HT_RDG=0
|
||||
HT_EXTCHA=0
|
||||
|
||||
@ -104,8 +104,8 @@ RADIUS_Server=192.168.2.3
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Key=ralink
|
||||
own_ip_addr=192.168.5.234
|
||||
EAPifname=br0
|
||||
PreAuthifname=br0
|
||||
EAPifname=br-lan
|
||||
PreAuthifname=br-lan
|
||||
HT_HTC=0
|
||||
HT_RDG=0
|
||||
HT_EXTCHA=0
|
||||
|
||||
@ -189,12 +189,8 @@ where
|
||||
iwpriv ra0 set ATETXPOW0=18
|
||||
iwpriv ra0 set ATETXPOW1=18
|
||||
iwpriv ra0 set ATETXCNT=100000
|
||||
iwpriv ra0 set ATE=TXFRAME
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=19
|
||||
¡K
|
||||
iwpriv ra0 set ATE=TXFRAMEpriv ra0 set ATETXPOW0=19
|
||||
iwpriv ra0 set ATETXPOW0=20
|
||||
¡K
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
|
||||
2.2 Check Carrier
|
||||
@ -241,7 +237,7 @@ where
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
iwpriv ra0 set ATECHANNEL=1 ; set Channel
|
||||
iwpriv ra0 set ResetCounter=1 ; Reset statistic counter
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the ¡§value¡¨(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the value(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXMODE=1 ; set TX-Mode.
|
||||
iwpriv ra0 set ATETXMCS=7 ; set MCS type.
|
||||
iwpriv ra0 set ATETXBW=0 ; set Bandwidth
|
||||
@ -314,8 +310,7 @@ where
|
||||
MlmePeriodicExec: Rx packet cnt = 2/4
|
||||
MlmePeriodicExec: Rx AvgRssi0=-88, AvgRssi1=-80, AvgRssi2=-91
|
||||
MlmePeriodicExec: Rx packet cnt = 2/6
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89¡K
|
||||
¡K
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89
|
||||
|
||||
iwpriv ra0 set ATERXANT=1 ==> Enable Three Rx Antenna-1
|
||||
iwpriv ra0 set ATERXFER=1 ==> Enable Rx Frame Error Rate: RxCnt/RxTotal
|
||||
@ -324,8 +319,7 @@ where
|
||||
MlmePeriodicExec: Rx AvgRssi=-87
|
||||
MlmePeriodicExec: Rx packet cnt = 7/14
|
||||
MlmePeriodicExec: Rx AvgRssi=-90
|
||||
¡K
|
||||
¡K
|
||||
|
||||
|
||||
|
||||
===================================================================================================
|
||||
@ -337,7 +331,7 @@ where
|
||||
Read/Write BBP registers by ID number.
|
||||
BBPID
|
||||
|
||||
3.1.1 Read BBP register, BBPID only, no ¡§=¡¨ symbol.
|
||||
3.1.1 Read BBP register, BBPID only, no = symbol.
|
||||
BBPID:
|
||||
0 ~ xx ; decimal, 8-bit
|
||||
BBPID=Value
|
||||
@ -353,7 +347,7 @@ where
|
||||
Read/Write MAC registers by offset.
|
||||
MAC_OFFSET
|
||||
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no ¡§=¡¨ symbol.
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no = symbol.
|
||||
MAC_OFFSET:
|
||||
0000 ~ FFFF ; hexdecimal, 16-bit
|
||||
MAC_OFFSET=Value
|
||||
@ -369,14 +363,14 @@ where
|
||||
Read/Write EEPROM content by address.
|
||||
EEP_ADDR
|
||||
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no ¡§=¡¨ symbol.
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no = symbol.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
EEP_ADDR=Value
|
||||
|
||||
3.3.2 Write EEPROM content.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
Value:
|
||||
0000 ~FFFF ; hexdecimal, 16-bit
|
||||
|
||||
@ -428,7 +422,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
5. If you have no bridge interface, please give an IP address to the ethernet interface.
|
||||
(for example : '$ated -beth0')
|
||||
6. After the interfaces have entered forwarding states, manually start ated, type '$ated -bbrX -iraX'.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br0" respectively, just type $ated.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br-lan" respectively, just type $ated.
|
||||
(For further usage of options, type $ated -h)
|
||||
8. In the Windows host, run RT28xxQA_ATE.exe or ./RT2880_ATE/RaUI.exe.
|
||||
9. Select the wired network adapter, then press OK and wait for a moment.
|
||||
@ -437,7 +431,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
11.If your target platform concerns its network security, please run RT28xxQA_unicast.exe instead of RT28xxQA_ATE.exe.
|
||||
|
||||
Note :
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br0") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br0" respectively !
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br-lan") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br-lan" respectively !
|
||||
b. Please make sure no other RaUI is running before you excute ./RT2880_ATE/RaUI.exe.
|
||||
|
||||
|
||||
|
||||
@ -191,11 +191,8 @@ where
|
||||
iwpriv ra0 set ATETXPOW1=18
|
||||
iwpriv ra0 set ATETXCNT=100000
|
||||
iwpriv ra0 set ATE=TXFRAME
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=19
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=20
|
||||
¡K
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
|
||||
2.2 Check Carrier
|
||||
@ -242,7 +239,7 @@ where
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
iwpriv ra0 set ATECHANNEL=1 ; set Channel
|
||||
iwpriv ra0 set ResetCounter=1 ; Reset statistic counter
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the ¡§value¡¨(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the value(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXMODE=1 ; set TX-Mode.
|
||||
iwpriv ra0 set ATETXMCS=7 ; set MCS type.
|
||||
iwpriv ra0 set ATETXBW=0 ; set Bandwidth
|
||||
@ -315,8 +312,7 @@ where
|
||||
MlmePeriodicExec: Rx packet cnt = 2/4
|
||||
MlmePeriodicExec: Rx AvgRssi0=-88, AvgRssi1=-80, AvgRssi2=-91
|
||||
MlmePeriodicExec: Rx packet cnt = 2/6
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89¡K
|
||||
¡K
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89
|
||||
|
||||
iwpriv ra0 set ATERXANT=1 ==> Enable Three Rx Antenna-1
|
||||
iwpriv ra0 set ATERXFER=1 ==> Enable Rx Frame Error Rate: RxCnt/RxTotal
|
||||
@ -325,8 +321,7 @@ where
|
||||
MlmePeriodicExec: Rx AvgRssi=-87
|
||||
MlmePeriodicExec: Rx packet cnt = 7/14
|
||||
MlmePeriodicExec: Rx AvgRssi=-90
|
||||
¡K
|
||||
¡K
|
||||
|
||||
|
||||
|
||||
===================================================================================================
|
||||
@ -338,7 +333,7 @@ where
|
||||
Read/Write BBP registers by ID number.
|
||||
BBPID
|
||||
|
||||
3.1.1 Read BBP register, BBPID only, no ¡§=¡¨ symbol.
|
||||
3.1.1 Read BBP register, BBPID only, no = symbol.
|
||||
BBPID:
|
||||
0 ~ xx ; decimal, 8-bit
|
||||
BBPID=Value
|
||||
@ -354,7 +349,7 @@ where
|
||||
Read/Write MAC registers by offset.
|
||||
MAC_OFFSET
|
||||
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no ¡§=¡¨ symbol.
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no = symbol.
|
||||
MAC_OFFSET:
|
||||
0000 ~ FFFF ; hexdecimal, 16-bit
|
||||
MAC_OFFSET=Value
|
||||
@ -370,14 +365,14 @@ where
|
||||
Read/Write EEPROM content by address.
|
||||
EEP_ADDR
|
||||
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no ¡§=¡¨ symbol.
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no = symbol.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
EEP_ADDR=Value
|
||||
|
||||
3.3.2 Write EEPROM content.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
Value:
|
||||
0000 ~FFFF ; hexdecimal, 16-bit
|
||||
|
||||
@ -429,7 +424,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
5. If you have no bridge interface, please give an IP address to the ethernet interface.
|
||||
(for example : '$ated -beth0')
|
||||
6. After the interfaces have entered forwarding states, manually start ated, type '$ated -bbrX -iraX'.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br0" respectively, just type $ated.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br-lan" respectively, just type $ated.
|
||||
(For further usage of options, type $ated -h)
|
||||
8. In the Windows host, run RT28xxQA_ATE.exe or ./RT2880_ATE/RaUI.exe.
|
||||
9. Select the wired network adapter, then press OK and wait for a moment.
|
||||
@ -438,7 +433,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
11.If your target platform concerns its network security, please run RT28xxQA_unicast.exe instead of RT28xxQA_ATE.exe.
|
||||
|
||||
Note :
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br0") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br0" respectively !
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br-lan") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br-lan" respectively !
|
||||
b. Please make sure no other RaUI is running before you excute ./RT2880_ATE/RaUI.exe.
|
||||
|
||||
|
||||
|
||||
@ -91,8 +91,8 @@ PUCHAR default_profile_buffer =
|
||||
"RADIUS_Port=1812\n"
|
||||
"RADIUS_Key=ralink\n"
|
||||
"own_ip_addr=192.168.5.234\n"
|
||||
"EAPifname=br0\n"
|
||||
"PreAuthifname=br0\n"
|
||||
"EAPifname=br-lan\n"
|
||||
"PreAuthifname=br-lan\n"
|
||||
"HT_HTC=0\n"
|
||||
"HT_RDG=0\n"
|
||||
"HT_EXTCHA=0\n"
|
||||
|
||||
@ -213,7 +213,7 @@ define Build/Compile
|
||||
endef
|
||||
|
||||
define KernelPackage/mt7615d/install
|
||||
$(INSTALL_DIR) $(1)/etc/wireless/mt7615/
|
||||
$(INSTALL_DIR) $(1)/etc/wireless/mt7615
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,mt7615d))
|
||||
|
||||
@ -2587,7 +2587,7 @@ VOID MacTableMaintenance(RTMP_ADAPTER *pAd)
|
||||
(pEntry->ReptCliIdleCount >=
|
||||
MAC_TABLE_AGEOUT_TIME) &&
|
||||
(pEntry->bReptEthBridgeCli ==
|
||||
FALSE)) { /* Do NOT ageout br0 link. @2016/1/27 */
|
||||
FALSE)) { /* Do NOT ageout br-lan link. @2016/1/27 */
|
||||
REPEATER_CLIENT_ENTRY *pReptCliEntry =
|
||||
NULL;
|
||||
|
||||
|
||||
@ -677,7 +677,7 @@ static VOID ApCliMlmeAssocReqAction(IN PRTMP_ADAPTER pAd,
|
||||
pAd->CommonCfg.MaxSPLength;
|
||||
WmeIe[8] |= *(PUCHAR)&QosInfo;
|
||||
} else {
|
||||
/* The Parameter Set Count is set to <EFBFBD><EFBFBD>0<EFBFBD><EFBFBD> in the association request frames */
|
||||
/* The Parameter Set Count is set to 0 in the association request frames */
|
||||
/* WmeIe[8] |= (pAd->MlmeAux.APEdcaParm.EdcaUpdateCount & 0x0f); */
|
||||
}
|
||||
|
||||
|
||||
@ -1327,7 +1327,7 @@ INT show_fq_info(PRTMP_ADAPTER pAd, RTMP_STRING *arg)
|
||||
|
||||
if ((pAd->fq_ctrl.enable & FQ_EN) == 0) {
|
||||
MTWF_LOG(DBG_CAT_ALL, DBG_SUBCAT_ALL, DBG_LVL_ERROR,
|
||||
("FQ was is Disabled (qm=%d)\n", cap->qm));
|
||||
("FQ was Disabled (qm=%d)\n", cap->qm));
|
||||
return TRUE;
|
||||
}
|
||||
MTWF_LOG(
|
||||
|
||||
@ -59,7 +59,7 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
/*
|
||||
Table E-1<EFBFBD>Operating classes in the United States (11N)
|
||||
Table E-1 Operating classes in the United States (11N)
|
||||
*/
|
||||
REG_CLASS reg_class_fcc[] = {
|
||||
{ 0, 0, 0, 0, { 0 }, 0 }, /* Invlid entry */
|
||||
@ -188,7 +188,7 @@ REG_CLASS reg_class_fcc[] = {
|
||||
};
|
||||
|
||||
/*
|
||||
Table E-2<EFBFBD>Operating classes in Europe (11N)
|
||||
Table E-2 Operating classes in Europe (11N)
|
||||
*/
|
||||
REG_CLASS reg_class_ce[] = {
|
||||
{ 0, 0, 0, 0, { 0 }, 0 }, /* Invlid entry */
|
||||
@ -270,7 +270,7 @@ REG_CLASS reg_class_ce[] = {
|
||||
};
|
||||
|
||||
/*
|
||||
Table E-3<EFBFBD>Operating classes in Japan (11N)
|
||||
Table E-3 Operating classes in Japan (11N)
|
||||
*/
|
||||
REG_CLASS reg_class_jp[] = {
|
||||
{ 0, 0, 0, 0, { 0 }, 0 }, /* Invlid entry */
|
||||
@ -552,7 +552,7 @@ REG_CLASS reg_class_cn[] = {
|
||||
|
||||
#ifdef DOT11_VHT_AC
|
||||
/*
|
||||
Table E-1<EFBFBD>Operating classes in the United States (11AC)
|
||||
Table E-1 Operating classes in the United States (11AC)
|
||||
*/
|
||||
REG_CLASS_VHT reg_class_vht_fcc[] = {
|
||||
{ 0, 0, 0, 0, { 0 }, { 0 }, 0 }, /* Invlid entry */
|
||||
@ -759,7 +759,7 @@ REG_CLASS_VHT reg_class_vht_fcc[] = {
|
||||
};
|
||||
|
||||
/*
|
||||
Table E-2<EFBFBD>Operating classes in Europe (11AC)
|
||||
Table E-2 Operating classes in Europe (11AC)
|
||||
*/
|
||||
REG_CLASS_VHT reg_class_vht_ce[] = {
|
||||
{ 0, 0, 0, 0, { 0 }, { 0 }, 0 }, /* Invlid entry */
|
||||
@ -903,7 +903,7 @@ REG_CLASS_VHT reg_class_vht_ce[] = {
|
||||
};
|
||||
|
||||
/*
|
||||
Table E-3<EFBFBD>Operating classes in Japan (11N)
|
||||
Table E-3 Operating classes in Japan (11N)
|
||||
*/
|
||||
REG_CLASS_VHT reg_class_vht_jp[] = {
|
||||
{ 0, 0, 0, 0, { 0 }, { 0 }, 0 }, /* Invlid entry */
|
||||
|
||||
@ -1777,7 +1777,7 @@ CH_DESP Country_US_ChDesp[] = {
|
||||
|
||||
{ 1, 11, 30, BOTH, FALSE }, /*2402~2472MHz, Ch 1~11, Max BW: 40 */
|
||||
{ 36, 4, 30, IDOR, FALSE }, /*5170~5250MHz, Ch 36~48, Max BW: 40 */
|
||||
{ 52, 4, 24, BOTH, TRUE }, /*5250~5330MHz, Ch 52~64, Max BW: 40 */
|
||||
{ 52, 4, 30, BOTH, FALSE }, /*5250~5330MHz, Ch 52~64, Max BW: 40 */
|
||||
{ 100, 5, 24, BOTH, TRUE }, /*5490~5600MHz, Ch 100~116, Max BW: 40 */
|
||||
{ 132, 4, 24, BOTH, TRUE }, /*5650~5710MHz, Ch 132~140, Max BW: 40 */
|
||||
{ 149, 5, 30, BOTH, FALSE }, /*5735~5835MHz, Ch 149~165, Max BW: 40 */
|
||||
@ -1786,11 +1786,11 @@ CH_DESP Country_US_ChDesp[] = {
|
||||
#else
|
||||
/*United States*/
|
||||
CH_DESP Country_US_ChDesp[] = {
|
||||
{ 1, 11, 30, BOTH, FALSE }, /*2402~2472MHz, Ch 1~11, Max BW: 40 */
|
||||
{ 36, 4, 30, BOTH, FALSE }, /*5170~5250MHz, Ch 36~48, Max BW: 40 */
|
||||
{ 52, 4, 30, BOTH, TRUE }, /*5250~5330MHz, Ch 52~64, Max BW: 40 */
|
||||
{ 100, 12, 24, BOTH, TRUE }, /*5490~5730MHz, Ch 100~144, Max BW: 40 */
|
||||
{ 149, 5, 30, BOTH, FALSE }, /*5735~5835MHz, Ch 149~165, Max BW: 40 */
|
||||
{ 1, 11, 40, BOTH, FALSE }, /*2402~2472MHz, Ch 1~11, Max BW: 40 */
|
||||
{ 36, 9, 40, BOTH, FALSE }, /*5170~5250MHz, Ch 36~48, Max BW: 40 */
|
||||
// { 52, 4, 40, BOTH, FALSE }, /*5250~5330MHz, Ch 52~64, Max BW: 40 */
|
||||
{ 100, 12, 40, BOTH, FALSE }, /*5490~5730MHz, Ch 100~144, Max BW: 40 */
|
||||
{ 149, 5, 40, BOTH, FALSE }, /*5735~5835MHz, Ch 149~165, Max BW: 40 */
|
||||
{ 0 }, /* end*/
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -73,7 +73,7 @@ Build Instructions:
|
||||
|
||||
4> $make
|
||||
# compile driver source code
|
||||
# To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
|
||||
# To fix "error: too few arguments to function iwe_stream_add_event"
|
||||
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
|
||||
|
||||
5> $cp RT2860STA.dat /etc/Wireless/RT2860STA/RT2860STA.dat
|
||||
@ -181,7 +181,7 @@ CarrierDetect=0
|
||||
AckPolicy1~4 Ack policy which support normal Ack or no Ack
|
||||
(AC_BK, AC_BE, AC_VI, AC_VO)
|
||||
|
||||
All WMM parameters do not support iwpriv command but ¡¥WmmCapable¡¦¡¦,
|
||||
All WMM parameters do not support iwpriv command but WmmCapable,
|
||||
please store all parameter to RT2860STA.dat, and restart driver.
|
||||
|
||||
-----------------------------------------------
|
||||
@ -365,13 +365,13 @@ syntax is 'Param'='Value' and describes below.
|
||||
@> HT_MpduDensity=value
|
||||
value (based on 802.11n D2.0)
|
||||
0: no restriction
|
||||
1: 1/4 £gs
|
||||
2: 1/2 £gs
|
||||
3: 1 £gs
|
||||
4: 2 £gs
|
||||
5: 4 £gs
|
||||
6: 8 £gs
|
||||
7: 16 £gs
|
||||
1: 1/4 gs
|
||||
2: 1/2 gs
|
||||
3: 1 gs
|
||||
4: 2 gs
|
||||
5: 4 gs
|
||||
6: 8 gs
|
||||
7: 16 gs
|
||||
|
||||
@> HT_BW=value
|
||||
value
|
||||
|
||||
@ -190,11 +190,8 @@ where
|
||||
iwpriv ra0 set ATETXPOW1=18
|
||||
iwpriv ra0 set ATETXCNT=100000
|
||||
iwpriv ra0 set ATE=TXFRAME
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=19
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=20
|
||||
¡K
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
|
||||
2.2 Check Carrier
|
||||
@ -241,7 +238,7 @@ where
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
iwpriv ra0 set ATECHANNEL=1 ; set Channel
|
||||
iwpriv ra0 set ResetCounter=1 ; Reset statistic counter
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the ¡§value¡¨(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the value(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXMODE=1 ; set TX-Mode.
|
||||
iwpriv ra0 set ATETXMCS=7 ; set MCS type.
|
||||
iwpriv ra0 set ATETXBW=0 ; set Bandwidth
|
||||
@ -314,8 +311,7 @@ where
|
||||
MlmePeriodicExec: Rx packet cnt = 2/4
|
||||
MlmePeriodicExec: Rx AvgRssi0=-88, AvgRssi1=-80, AvgRssi2=-91
|
||||
MlmePeriodicExec: Rx packet cnt = 2/6
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89¡K
|
||||
¡K
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89
|
||||
|
||||
iwpriv ra0 set ATERXANT=1 ==> Enable Three Rx Antenna-1
|
||||
iwpriv ra0 set ATERXFER=1 ==> Enable Rx Frame Error Rate: RxCnt/RxTotal
|
||||
@ -324,8 +320,6 @@ where
|
||||
MlmePeriodicExec: Rx AvgRssi=-87
|
||||
MlmePeriodicExec: Rx packet cnt = 7/14
|
||||
MlmePeriodicExec: Rx AvgRssi=-90
|
||||
¡K
|
||||
¡K
|
||||
|
||||
|
||||
===================================================================================================
|
||||
@ -337,7 +331,7 @@ where
|
||||
Read/Write BBP registers by ID number.
|
||||
BBPID
|
||||
|
||||
3.1.1 Read BBP register, BBPID only, no ¡§=¡¨ symbol.
|
||||
3.1.1 Read BBP register, BBPID only, no = symbol.
|
||||
BBPID:
|
||||
0 ~ xx ; decimal, 8-bit
|
||||
BBPID=Value
|
||||
@ -353,7 +347,7 @@ where
|
||||
Read/Write MAC registers by offset.
|
||||
MAC_OFFSET
|
||||
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no ¡§=¡¨ symbol.
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no = symbol.
|
||||
MAC_OFFSET:
|
||||
0000 ~ FFFF ; hexdecimal, 16-bit
|
||||
MAC_OFFSET=Value
|
||||
@ -369,14 +363,14 @@ where
|
||||
Read/Write EEPROM content by address.
|
||||
EEP_ADDR
|
||||
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no ¡§=¡¨ symbol.
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no = symbol.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
EEP_ADDR=Value
|
||||
|
||||
3.3.2 Write EEPROM content.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
Value:
|
||||
0000 ~FFFF ; hexdecimal, 16-bit
|
||||
|
||||
@ -428,7 +422,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
5. If you have no bridge interface, please give an IP address to the ethernet interface.
|
||||
(for example : '$ated -beth0')
|
||||
6. After the interfaces have entered forwarding states, manually start ated, type '$ated -bbrX -iraX'.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br0" respectively, just type $ated.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br-lan" respectively, just type $ated.
|
||||
(For further usage of options, type $ated -h)
|
||||
8. In the Windows host, run RT28xxQA_ATE.exe or ./RT2880_ATE/RaUI.exe.
|
||||
9. Select the wired network adapter, then press OK and wait for a moment.
|
||||
@ -437,7 +431,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
11.If your target platform concerns its network security, please run RT28xxQA_unicast.exe instead of RT28xxQA_ATE.exe.
|
||||
|
||||
Note :
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br0") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br0" respectively !
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br-lan") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br-lan" respectively !
|
||||
b. Please make sure no other RaUI is running before you excute ./RT2880_ATE/RaUI.exe.
|
||||
|
||||
|
||||
|
||||
@ -191,11 +191,8 @@ where
|
||||
iwpriv ra0 set ATETXPOW1=18
|
||||
iwpriv ra0 set ATETXCNT=100000
|
||||
iwpriv ra0 set ATE=TXFRAME
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=19
|
||||
¡K
|
||||
iwpriv ra0 set ATETXPOW0=20
|
||||
¡K
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
|
||||
2.2 Check Carrier
|
||||
@ -242,7 +239,7 @@ where
|
||||
iwpriv ra0 set ATE=ATESTART
|
||||
iwpriv ra0 set ATECHANNEL=1 ; set Channel
|
||||
iwpriv ra0 set ResetCounter=1 ; Reset statistic counter
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the ¡§value¡¨(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXFREQOFFSET=value ;To use the value(decimal) you got in tx calibration
|
||||
iwpriv ra0 set ATETXMODE=1 ; set TX-Mode.
|
||||
iwpriv ra0 set ATETXMCS=7 ; set MCS type.
|
||||
iwpriv ra0 set ATETXBW=0 ; set Bandwidth
|
||||
@ -315,8 +312,7 @@ where
|
||||
MlmePeriodicExec: Rx packet cnt = 2/4
|
||||
MlmePeriodicExec: Rx AvgRssi0=-88, AvgRssi1=-80, AvgRssi2=-91
|
||||
MlmePeriodicExec: Rx packet cnt = 2/6
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89¡K
|
||||
¡K
|
||||
MlmePeriodicExec: Rx AvgRssi0=-86, AvgRssi1=-77, AvgRssi2=-89
|
||||
|
||||
iwpriv ra0 set ATERXANT=1 ==> Enable Three Rx Antenna-1
|
||||
iwpriv ra0 set ATERXFER=1 ==> Enable Rx Frame Error Rate: RxCnt/RxTotal
|
||||
@ -325,8 +321,6 @@ where
|
||||
MlmePeriodicExec: Rx AvgRssi=-87
|
||||
MlmePeriodicExec: Rx packet cnt = 7/14
|
||||
MlmePeriodicExec: Rx AvgRssi=-90
|
||||
¡K
|
||||
¡K
|
||||
|
||||
|
||||
===================================================================================================
|
||||
@ -338,7 +332,7 @@ where
|
||||
Read/Write BBP registers by ID number.
|
||||
BBPID
|
||||
|
||||
3.1.1 Read BBP register, BBPID only, no ¡§=¡¨ symbol.
|
||||
3.1.1 Read BBP register, BBPID only, no = symbol.
|
||||
BBPID:
|
||||
0 ~ xx ; decimal, 8-bit
|
||||
BBPID=Value
|
||||
@ -354,7 +348,7 @@ where
|
||||
Read/Write MAC registers by offset.
|
||||
MAC_OFFSET
|
||||
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no ¡§=¡¨ symbol.
|
||||
3.2.1 Read MAC register, MAC_OFFSET only, no = symbol.
|
||||
MAC_OFFSET:
|
||||
0000 ~ FFFF ; hexdecimal, 16-bit
|
||||
MAC_OFFSET=Value
|
||||
@ -370,14 +364,14 @@ where
|
||||
Read/Write EEPROM content by address.
|
||||
EEP_ADDR
|
||||
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no ¡§=¡¨ symbol.
|
||||
3.3.1 Read EEPROM content, EEP_ADDR only, no = symbol.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
EEP_ADDR=Value
|
||||
|
||||
3.3.2 Write EEPROM content.
|
||||
EEP_ADDR:
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, ¡K)
|
||||
00 ~ FF ; hexdecimal, 16-bit alignment (0, 2, 4, 6, 8, A, C, )
|
||||
Value:
|
||||
0000 ~FFFF ; hexdecimal, 16-bit
|
||||
|
||||
@ -429,7 +423,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
5. If you have no bridge interface, please give an IP address to the ethernet interface.
|
||||
(for example : '$ated -beth0')
|
||||
6. After the interfaces have entered forwarding states, manually start ated, type '$ated -bbrX -iraX'.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br0" respectively, just type $ated.
|
||||
7. If your WLAN interface and Bridge interface is "ra0" and "br-lan" respectively, just type $ated.
|
||||
(For further usage of options, type $ated -h)
|
||||
8. In the Windows host, run RT28xxQA_ATE.exe or ./RT2880_ATE/RaUI.exe.
|
||||
9. Select the wired network adapter, then press OK and wait for a moment.
|
||||
@ -438,7 +432,7 @@ RT28xx linux driver will leave ATE mode either ated is killed or Windows GUI is
|
||||
11.If your target platform concerns its network security, please run RT28xxQA_unicast.exe instead of RT28xxQA_ATE.exe.
|
||||
|
||||
Note :
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br0") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br0" respectively !
|
||||
a. The names of WLAN interface(default is "ra0") and Bridge interface(default is "br-lan") must be specified manually(for example : '$ated -bbr1 -ira2') if your WLAN interface or Bridge interface is not "ra0" or "br-lan" respectively !
|
||||
b. Please make sure no other RaUI is running before you excute ./RT2880_ATE/RaUI.exe.
|
||||
|
||||
|
||||
|
||||
@ -104,7 +104,6 @@
|
||||
|
||||
#ifdef MT7615
|
||||
#undef EEPROM_DEFAULT_FILE_PATH
|
||||
// #define EEPROM_DEFAULT_FILE_PATH "/etc_ro/wlan/MT7615_EEPROM.bin"
|
||||
#define EEPROM_DEFAULT_FILE_PATH "/dev/mtdblock2"
|
||||
#endif /* MT7615 */
|
||||
|
||||
|
||||
@ -247,7 +247,6 @@ INT wapp_send_wdev_vht_cap_rsp(PRTMP_ADAPTER pAd, struct wapp_req *req)
|
||||
case 1:
|
||||
drv_vht_op.basic_mcs_set.mcs_ss1 =
|
||||
cap->max_vht_mcs;
|
||||
/* FALLTHRU */
|
||||
break;
|
||||
}
|
||||
|
||||
@ -277,7 +276,6 @@ INT wapp_send_wdev_vht_cap_rsp(PRTMP_ADAPTER pAd, struct wapp_req *req)
|
||||
drv_vht_op.basic_mcs_set
|
||||
.mcs_ss1 =
|
||||
VHT_MCS_CAP_8;
|
||||
/* FALLTHRU */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,8 +200,10 @@ cmm_objs := $(SRC_EMBEDDED_DIR)/common/action.o\
|
||||
$(SRC_DIR)/protocol/protection.o\
|
||||
$(SRC_EMBEDDED_DIR)/common/misc_app.o
|
||||
|
||||
ifeq ($(CONFIG_MULTI_PROFILE_SUPPORT),y)
|
||||
EXTRA_CFLAGS += -DMULTI_PROFILE
|
||||
cmm_objs += $(SRC_EMBEDDED_DIR)/common/multi_profile.o
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEFAULT_5G_PROFILE),y)
|
||||
EXTRA_CFLAGS += -DDEFAULT_5G_PROFILE
|
||||
@ -1007,9 +1009,9 @@ chip_objs += $(SRC_DIR)/chips/mt7637.o\
|
||||
$(SRC_DIR)/os/linux/pci_main_dev.o
|
||||
endif
|
||||
|
||||
#ifeq ($(CONFIG_DBDC_MODE),y)
|
||||
ifeq ($(CONFIG_DBDC_MODE),y)
|
||||
EXTRA_CFLAGS += -DDBDC_MODE
|
||||
#endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_G_BAND_256QAM_SUPPORT),y)
|
||||
EXTRA_CFLAGS += -DG_BAND_256QAM
|
||||
|
||||
@ -44,29 +44,28 @@ define Package/mt_wifi/install
|
||||
$(INSTALL_DIR) $(1)/lib/preinit/
|
||||
$(INSTALL_DIR) $(1)/etc_ro/wlan/
|
||||
ifeq ($(CONFIG_MTK_CHIP_MT7603E_MT7612E),y)
|
||||
$(INSTALL_BIN) ./files/7603_7612-l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_BIN) ./files/mt7603.dat $(1)/etc/wireless/mt7615/mt7615.1.dat
|
||||
$(INSTALL_BIN) ./files/mt7612.dat $(1)/etc/wireless/mt7615/mt7615.2.dat
|
||||
$(INSTALL_DATA) ./files/7603_7612-l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_DATA) ./files/mt7603.dat $(1)/etc/wireless/mt7615/mt7615.1.dat
|
||||
$(INSTALL_DATA) ./files/mt7612.dat $(1)/etc/wireless/mt7615/mt7615.2.dat
|
||||
else ifeq ($(CONFIG_MTK_CHIP_MT7603E_MT7615E),y)
|
||||
$(INSTALL_BIN) ./files/7603_7615-l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_BIN) ./files/mt7603.dat $(1)/etc/wireless/mt7615/mt7615.1.dat
|
||||
$(INSTALL_BIN) ./files/mt7615.dat $(1)/etc/wireless/mt7615/mt7615.2.dat
|
||||
$(INSTALL_DATA) ./files/7603_7615-l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_DATA) ./files/mt7603.dat $(1)/etc/wireless/mt7615/mt7615.1.dat
|
||||
$(INSTALL_DATA) ./files/mt7615.dat $(1)/etc/wireless/mt7615/mt7615.2.dat
|
||||
else
|
||||
ifeq ($(CONFIG_MTK_CHIP_MT7615E_DBDC),y)
|
||||
$(INSTALL_BIN) ./files/dbdc.l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_BIN) ./files/DBDC_card0.dat $(1)/etc/wireless/mt7615/
|
||||
$(INSTALL_BIN) ./files/mt7615.1.2G.dat $(1)/etc/wireless/mt7615/
|
||||
$(INSTALL_BIN) ./files/mt7615.1.5G.dat $(1)/etc/wireless/mt7615/
|
||||
$(INSTALL_DATA) ./files/dbdc.l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_DATA) ./files/mt7615.1.2G.dat $(1)/etc/wireless/mt7615/
|
||||
$(INSTALL_DATA) ./files/mt7615.1.5G.dat $(1)/etc/wireless/mt7615/
|
||||
else
|
||||
$(INSTALL_BIN) ./files/7615.l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_BIN) ./files/mt7615.2G.dat $(1)/etc/wireless/mt7615/mt7615.1.dat
|
||||
$(INSTALL_BIN) ./files/mt7615.5G.dat $(1)/etc/wireless/mt7615/mt7615.2.dat
|
||||
$(INSTALL_DATA) ./files/7615.l1profile.dat $(1)/etc/wireless/l1profile.dat
|
||||
$(INSTALL_DATA) ./files/mt7615.2G.dat $(1)/etc/wireless/mt7615/mt7615.1.dat
|
||||
$(INSTALL_DATA) ./files/mt7615.5G.dat $(1)/etc/wireless/mt7615/mt7615.2.dat
|
||||
endif
|
||||
endif
|
||||
$(INSTALL_BIN) ./files/mt7615e-sku.dat $(1)/etc_ro/Wireless/RT2860AP/SingleSKU.dat
|
||||
$(INSTALL_BIN) ./files/mt7615e-sku-bf.dat $(1)/etc_ro/Wireless/RT2860AP/SingleSKU_BF.dat
|
||||
$(INSTALL_BIN) ./files/mt7615.lua $(1)/lib/wifi
|
||||
$(INSTALL_BIN) ./files/firmware.sh $(1)/etc/init.d/
|
||||
$(INSTALL_DATA) ./files/mt7615e-sku.dat $(1)/etc_ro/Wireless/RT2860AP/SingleSKU.dat
|
||||
$(INSTALL_DATA) ./files/mt7615e-sku-bf.dat $(1)/etc_ro/Wireless/RT2860AP/SingleSKU_BF.dat
|
||||
$(INSTALL_BIN) ./files/mt7615.lua $(1)/lib/wifi/
|
||||
$(INSTALL_BIN) ./files/firmware.sh $(1)/etc/init.d/firmware
|
||||
$(INSTALL_BIN) ./files/82_load_wifi.sh $(1)/lib/preinit/
|
||||
endef
|
||||
|
||||
|
||||
@ -1,385 +0,0 @@
|
||||
Default
|
||||
AccessControlList0=
|
||||
AccessControlList10=
|
||||
AccessControlList11=
|
||||
AccessControlList12=
|
||||
AccessControlList13=
|
||||
AccessControlList14=
|
||||
AccessControlList15=
|
||||
AccessControlList2=
|
||||
AccessControlList3=
|
||||
AccessControlList4=
|
||||
AccessControlList5=
|
||||
AccessControlList6=
|
||||
AccessControlList7=
|
||||
AccessControlList8=
|
||||
AccessControlList9=
|
||||
AccessPolicy0=0
|
||||
AccessPolicy10=0
|
||||
AccessPolicy11=0
|
||||
AccessPolicy12=0
|
||||
AccessPolicy13=0
|
||||
AccessPolicy14=0
|
||||
AccessPolicy15=0
|
||||
AccessPolicy2=0
|
||||
AccessPolicy3=0
|
||||
AccessPolicy4=0
|
||||
AccessPolicy5=0
|
||||
AccessPolicy6=0
|
||||
AccessPolicy7=0
|
||||
AccessPolicy8=0
|
||||
AccessPolicy9=0
|
||||
AckPolicy=0;0;0;0
|
||||
APACM=0;0;0;0
|
||||
APAifsn=3;7;1;1
|
||||
APCwmax=6;10;4;3
|
||||
APCwmin=4;4;3;2
|
||||
APSDCapable=1
|
||||
APTxop=0;0;94;47
|
||||
AutoProvisionEn=0
|
||||
BandSteering=0
|
||||
BasicRate=15
|
||||
BgndScanSkipCh=
|
||||
BSSACM=0;0;0;0
|
||||
BSSAifsn=3;7;2;2
|
||||
BSSCwmax=10;10;4;3
|
||||
BSSCwmin=4;4;3;2
|
||||
BSSTxop=0;0;94;47
|
||||
BW_Enable=0
|
||||
BW_Guarantee_Rate=
|
||||
BW_Maximum_Rate=
|
||||
BW_Priority=
|
||||
BW_Root=0
|
||||
CalCacheApply=0
|
||||
CP_SUPPORT=2
|
||||
CSPeriod=6
|
||||
DfsCalibration=0
|
||||
DfsEnable=0
|
||||
DfsFalseAlarmPrevent=1
|
||||
DfsZeroWait=0
|
||||
DfsZeroWaitCacTime=255
|
||||
EAPifname=br0
|
||||
EthConvertMode=dongle
|
||||
EtherTrafficBand=0
|
||||
Ethifname=
|
||||
ITxBfEnCond=1
|
||||
FineAGC=0
|
||||
FixedTxMode=
|
||||
ForceRoamSupport=
|
||||
FreqDelta=0
|
||||
HT_DisallowTKIP=1
|
||||
HT_HTC=1
|
||||
HT_LinkAdapt=0
|
||||
idle_timeout_interval=0
|
||||
Key1Str=
|
||||
Key1Str1=
|
||||
Key1Str10=
|
||||
Key1Str11=
|
||||
Key1Str12=
|
||||
Key1Str13=
|
||||
Key1Str14=
|
||||
Key1Str15=
|
||||
Key1Str16=
|
||||
Key1Str3=
|
||||
Key1Str4=
|
||||
Key1Str5=
|
||||
Key1Str6=
|
||||
Key1Str7=
|
||||
Key1Str8=
|
||||
Key1Str9=
|
||||
Key2Str=
|
||||
Key2Str1=
|
||||
Key2Str10=
|
||||
Key2Str11=
|
||||
Key2Str12=
|
||||
Key2Str13=
|
||||
Key2Str14=
|
||||
Key2Str15=
|
||||
Key2Str16=
|
||||
Key2Str3=
|
||||
Key2Str4=
|
||||
Key2Str5=
|
||||
Key2Str6=
|
||||
Key2Str7=
|
||||
Key2Str8=
|
||||
Key2Str9=
|
||||
Key3Str=
|
||||
Key3Str1=
|
||||
Key3Str10=
|
||||
Key3Str11=
|
||||
Key3Str12=
|
||||
Key3Str13=
|
||||
Key3Str14=
|
||||
Key3Str15=
|
||||
Key3Str16=
|
||||
Key3Str3=
|
||||
Key3Str4=
|
||||
Key3Str5=
|
||||
Key3Str6=
|
||||
Key3Str7=
|
||||
Key3Str8=
|
||||
Key3Str9=
|
||||
Key4Str=
|
||||
Key4Str1=
|
||||
Key4Str10=
|
||||
Key4Str11=
|
||||
Key4Str12=
|
||||
Key4Str13=
|
||||
Key4Str14=
|
||||
Key4Str15=
|
||||
Key4Str16=
|
||||
Key4Str3=
|
||||
Key4Str4=
|
||||
Key4Str5=
|
||||
Key4Str6=
|
||||
Key4Str7=
|
||||
Key4Str8=
|
||||
Key4Str9=
|
||||
LinkTestSupport=0
|
||||
own_ip_addr=192.168.1.1
|
||||
PhyRateLimit=0
|
||||
PreAntSwitch=
|
||||
PreAuthifname=br0
|
||||
RadioLinkSelection=0
|
||||
RadioOn=1
|
||||
RADIUS_Acct_Key=
|
||||
RADIUS_Acct_Port=1813
|
||||
RADIUS_Acct_Server=
|
||||
RADIUS_Key1=
|
||||
RADIUS_Key10=
|
||||
RADIUS_Key11=
|
||||
RADIUS_Key12=
|
||||
RADIUS_Key13=
|
||||
RADIUS_Key14=
|
||||
RADIUS_Key15=
|
||||
RADIUS_Key16=
|
||||
RADIUS_Key3=
|
||||
RADIUS_Key4=
|
||||
RADIUS_Key5=
|
||||
RADIUS_Key6=
|
||||
RADIUS_Key7=
|
||||
RADIUS_Key8=
|
||||
RADIUS_Key9=
|
||||
session_timeout_interval=0
|
||||
ShortSlot=1
|
||||
SSID=
|
||||
SSID1=OpenWrt_5G
|
||||
SSID10=
|
||||
SSID11=
|
||||
SSID12=
|
||||
SSID13=
|
||||
SSID14=
|
||||
SSID15=
|
||||
SSID16=
|
||||
SSID3=
|
||||
SSID4=
|
||||
SSID5=
|
||||
SSID6=
|
||||
SSID7=
|
||||
SSID8=
|
||||
SSID9=
|
||||
StreamMode=0
|
||||
StreamModeMac0=
|
||||
StreamModeMac1=
|
||||
StreamModeMac2=
|
||||
StreamModeMac3=
|
||||
TGnWifiTest=0
|
||||
ThermalRecal=0
|
||||
VLANID=0
|
||||
VLANPriority=0
|
||||
VLANTag=0
|
||||
VOW_Group_DWRR_Max_Wait_Time=
|
||||
VOW_Refill_Period=
|
||||
VOW_Sta_BE_DWRR_Quantum=
|
||||
VOW_Sta_BK_DWRR_Quantum=
|
||||
VOW_Sta_DWRR_Max_Wait_Time=
|
||||
VOW_Sta_VI_DWRR_Quantum=
|
||||
VOW_Sta_VO_DWRR_Quantum=
|
||||
VOW_WATF_MAC_LV0=
|
||||
VOW_WATF_Q_LV0=
|
||||
VOW_WATF_Q_LV1=
|
||||
VOW_WATF_Q_LV2=
|
||||
VOW_WATF_Q_LV3=
|
||||
VOW_WMM_Search_Rule_Band0=
|
||||
VOW_WMM_Search_Rule_Band1=
|
||||
Wds0Key=
|
||||
Wds1Key=
|
||||
Wds2Key=
|
||||
Wds3Key=
|
||||
WdsEnable=0
|
||||
WdsEncrypType=NONE
|
||||
WdsList=
|
||||
WdsPhyMode=0
|
||||
WHNAT=0
|
||||
WiFiTest=0
|
||||
WPAPSK=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK10=
|
||||
WPAPSK11=
|
||||
WPAPSK12=
|
||||
WPAPSK13=
|
||||
WPAPSK14=
|
||||
WPAPSK15=
|
||||
WPAPSK16=
|
||||
WPAPSK3=
|
||||
WPAPSK4=
|
||||
WPAPSK5=
|
||||
WPAPSK6=
|
||||
WPAPSK7=
|
||||
WPAPSK8=
|
||||
WPAPSK9=
|
||||
WscConfMode=0
|
||||
WscConfStatus=2
|
||||
BssidNum=2
|
||||
SSID2=OpenWrt
|
||||
WirelessMode=14;9;
|
||||
Channel=36;6
|
||||
ChannelGrp=0:0:0:0;0:0:0:0
|
||||
AutoChannelSelect=0;0
|
||||
AutoChannelSkipList=;
|
||||
IEEE8021X=0;0
|
||||
PreAuth=0;0
|
||||
AuthMode=OPEN;OPEN
|
||||
EncrypType=NONE;NONE
|
||||
RekeyMethod=DISABLE;DISABLE
|
||||
RekeyInterval=3600;3600
|
||||
PMKCachePeriod=10;10
|
||||
WPAPSK2=12345678
|
||||
DefaultKeyID=1;1
|
||||
Key1Type=0;0
|
||||
Key2Type=0;0
|
||||
Key3Type=0;0
|
||||
Key4Type=0;0
|
||||
Key1Str2=
|
||||
Key2Str2=
|
||||
Key3Str2=
|
||||
Key4Str2=
|
||||
AccessPolicy1=0
|
||||
AccessControlList1=
|
||||
RADIUS_Server=0;0
|
||||
RADIUS_Port=1812;1812
|
||||
RADIUS_Key2=
|
||||
PMFMFPC=1;1
|
||||
PMFMFPR=0;0
|
||||
PMFSHA256=0;0
|
||||
WmmCapable=1;1
|
||||
NoForwarding=0;0
|
||||
StationKeepAlive=0;0;
|
||||
HideSSID=0;0
|
||||
HT_EXTCHA=1;1;
|
||||
HT_TxStream=2;2;
|
||||
HT_RxStream=2;2;
|
||||
HT_MCS=33;33
|
||||
HT_BW=1;1;
|
||||
HT_STBC=1;1;
|
||||
HT_LDPC=1;1;
|
||||
HT_AMSDU=1;1;
|
||||
VHT_STBC=1;1
|
||||
VHT_LDPC=1;1
|
||||
APEdca0=1;3,7,1,1;4,4,3,2;6,10,4,3;0,0,94,47;0,0,0,0
|
||||
APEdca1=1;3,7,1,1;4,4,3,2;6,10,4,3;0,0,94,47;0,0,0,0
|
||||
EdcaIdx=0;1;
|
||||
BSSEdca0=3,7,2,2;4,4,3,2;10,10,4,3;0,0,94,47;0,0,0,0
|
||||
BSSEdca1=3,7,2,2;4,4,3,2;10,10,4,3;0,0,94,47;0,0,0,0
|
||||
APAckPolicy0=0;0;0;0
|
||||
APAckPolicy1=0;0;0;0
|
||||
CountryRegionABand=7
|
||||
VOW_Group_Min_Rate=
|
||||
VOW_Group_Max_Rate=
|
||||
VOW_Group_Min_Ratio=
|
||||
VOW_Group_Max_Ratio=
|
||||
VOW_Airtime_Ctrl_En=
|
||||
VOW_Rate_Ctrl_En=
|
||||
VOW_Group_Min_Rate_Bucket_Size=
|
||||
VOW_Group_Max_Rate_Bucket_Size=
|
||||
VOW_Group_Min_Airtime_Bucket_Size=
|
||||
VOW_Group_Max_Airtime_Bucket_Size=
|
||||
VOW_Group_Backlog=
|
||||
VOW_Group_Max_Wait_Time=
|
||||
VOW_Group_DWRR_Quantum=
|
||||
ETxBfEnCond=1;1;
|
||||
ITxBfEn=1;1;
|
||||
EDCCAEnable=1;1
|
||||
MACRepeaterEn=
|
||||
MACRepeaterOuiMode=2
|
||||
ApCliEnable=;
|
||||
ApCliSsid=;
|
||||
ApCliWirelessMode=;
|
||||
ApCliBssid=;
|
||||
ApCliAuthMode=;
|
||||
ApCliEncrypType=;
|
||||
ApCliWPAPSK=
|
||||
ApCliWPAPSK1=
|
||||
ApCliDefaultKeyID=;
|
||||
ApCliKey1Type=;
|
||||
ApCliKey2Type=;
|
||||
ApCliKey3Type=;
|
||||
ApCliKey4Type=;
|
||||
ApCliKey1Str=
|
||||
ApCliKey1Str1=
|
||||
ApCliKey2Str=
|
||||
ApCliKey2Str1=
|
||||
ApCliKey3Str=
|
||||
ApCliKey3Str1=
|
||||
ApCliKey4Str=
|
||||
ApCliKey4Str1=
|
||||
BndStrgBssIdx=1;1
|
||||
HT_GI=1;1;
|
||||
RTSThreshold=2347;2347;
|
||||
HT_PROTECT=1;1;
|
||||
FragThreshold=2346;2346;
|
||||
HT_MpduDensity=5;5;
|
||||
HT_OpMode=0;0;
|
||||
VHT_BW=1;1;
|
||||
VHT_SGI=1;1;
|
||||
VHT_BW_SIGNAL=0;0;
|
||||
VHT_Sec80_Channel=0;0;
|
||||
MUTxRxEnable=1
|
||||
IEEE80211H=1
|
||||
RDRegion=
|
||||
CountryRegion=5
|
||||
DisableOLBC=0
|
||||
G_BAND_256QAM=1
|
||||
HT_BSSCoexistence=1
|
||||
BGProtection=0
|
||||
TxPreamble=1
|
||||
CountryCode=US
|
||||
NoForwardingBTNBSSID=0
|
||||
GreenAP=1
|
||||
PcieAspm=0
|
||||
DBDC_MODE=1
|
||||
IcapMode=0
|
||||
CarrierDetect=0
|
||||
DebugFlags=0
|
||||
E2pAccessMode=2
|
||||
WCNTest=0
|
||||
HT_RDG=0
|
||||
HT_BADecline=0
|
||||
HT_AutoBA=1
|
||||
HT_BAWinSize=64
|
||||
BeaconPeriod=100
|
||||
DtimPeriod=1
|
||||
TxBurst=1
|
||||
VOW_WATF_Enable=
|
||||
VOW_WATF_MAC_LV1=
|
||||
VOW_WATF_MAC_LV2=
|
||||
VOW_WATF_MAC_LV3=
|
||||
VOW_Airtime_Fairness_En=1
|
||||
VOW_BW_Ctrl=0
|
||||
VOW_RX_En=1
|
||||
RED_Enable=1
|
||||
IgmpSnEnable=0;0
|
||||
SKUenable=0;0
|
||||
PERCENTAGEenable=0;0
|
||||
BFBACKOFFenable=0;0
|
||||
TxPower=100;100
|
||||
PowerUpCckOfdm=0:0:0:0:0:0:0;0:0:0:0:0:0:0
|
||||
PowerUpHT20=0:0:0:0:0:0:0;0:0:0:0:0:0:0
|
||||
PowerUpHT40=0:0:0:0:0:0:0;0:0:0:0:0:0:0
|
||||
PowerUpVHT20=0:0:0:0:0:0:0;0:0:0:0:0:0:0
|
||||
PowerUpVHT40=0:0:0:0:0:0:0;0:0:0:0:0:0:0
|
||||
PowerUpVHT80=0:0:0:0:0:0:0;0:0:0:0:0:0:0
|
||||
PowerUpVHT160=0:0:0:0:0:0:0;0:0:0:0:0:0:0
|
||||
FtSupport=0;0
|
||||
RRMEnable=0;0
|
||||
DscpPriMapBss1=
|
||||
@ -94,7 +94,7 @@ DebugFlags=0
|
||||
DefaultKeyID=1
|
||||
DtimPeriod=1
|
||||
E2pAccessMode=2
|
||||
EAPifname=br0
|
||||
EAPifname=br-lan
|
||||
EDCCAEnable=1
|
||||
EncrypType=NONE
|
||||
EthConvertMode=dongle
|
||||
@ -229,7 +229,7 @@ PowerUpVHT40=0:0:0:0:0:0:0
|
||||
PowerUpVHT80=0:0:0:0:0:0:0
|
||||
PreAntSwitch=
|
||||
PreAuth=0
|
||||
PreAuthifname=br0
|
||||
PreAuthifname=br-lan
|
||||
RadioLinkSelection=0
|
||||
RadioOn=1
|
||||
RADIUS_Acct_Key=
|
||||
|
||||
@ -32,6 +32,7 @@ AccessPolicy7=0
|
||||
AccessPolicy8=0
|
||||
AccessPolicy9=0
|
||||
AckPolicy=0;0;0;0
|
||||
AntCtrl=
|
||||
APACM=0;0;0;0
|
||||
APAifsn=3;7;1;1
|
||||
ApCliAuthMode=
|
||||
@ -51,18 +52,24 @@ ApCliKey3Type=
|
||||
ApCliKey4Str=
|
||||
ApCliKey4Str1=
|
||||
ApCliKey4Type=
|
||||
ApCliPMFMFPC=
|
||||
ApCliPMFMFPR=
|
||||
ApCliPMFSHA256=
|
||||
ApCliSsid=
|
||||
ApCliTxMcs=
|
||||
ApCliTxMode=
|
||||
ApCliUAPSDCapable=
|
||||
ApCliWirelessMode=
|
||||
ApCliWPAPSK=
|
||||
ApCliWPAPSK1=
|
||||
ApCli_Wsc4digitPinCode=
|
||||
ApCliWscScanMode=
|
||||
APCwmax=6;10;4;3
|
||||
APCwmin=4;4;3;2
|
||||
APSDCapable=1
|
||||
APTxop=0;0;94;47
|
||||
AuthMode=OPEN
|
||||
AutoChannelSelect=0
|
||||
AutoChannelSkipList=
|
||||
AutoProvisionEn=0
|
||||
BandSteering=0
|
||||
BasicRate=15
|
||||
BeaconPeriod=100
|
||||
@ -76,11 +83,6 @@ BSSCwmax=10;10;4;3
|
||||
BSSCwmin=4;4;3;2
|
||||
BssidNum=1
|
||||
BSSTxop=0;0;94;47
|
||||
BW_Enable=0
|
||||
BW_Guarantee_Rate=
|
||||
BW_Maximum_Rate=
|
||||
BW_Priority=
|
||||
BW_Root=0
|
||||
CalCacheApply=0
|
||||
CarrierDetect=0
|
||||
Channel=6
|
||||
@ -89,34 +91,35 @@ CountryCode=US
|
||||
CountryRegion=5
|
||||
CountryRegionABand=7
|
||||
CP_SUPPORT=2
|
||||
CSPeriod=6
|
||||
DBDC_MODE=1
|
||||
DebugFlags=0
|
||||
DefaultKeyID=1
|
||||
DfsCalibration=0
|
||||
DfsEnable=0
|
||||
DfsFalseAlarmPrevent=1
|
||||
DfsZeroWait=0
|
||||
DfsZeroWaitCacTime=255
|
||||
DisableOLBC=0
|
||||
DscpPriMapBss=
|
||||
DscpQosMap=
|
||||
DscpQosMapEnable=
|
||||
DtimPeriod=1
|
||||
E2pAccessMode=2
|
||||
EAPifname=br0
|
||||
EAPifname=br-lan
|
||||
EDCCAEnable=1
|
||||
EfuseBufferMode=
|
||||
EncrypType=NONE
|
||||
EthConvertMode=dongle
|
||||
EtherTrafficBand=0
|
||||
Ethifname=
|
||||
ETxBfEnCond=1
|
||||
ITxBfEnCond=1
|
||||
FineAGC=0
|
||||
FixedTxMode=
|
||||
ForceRoamSupport=
|
||||
FQ_Enable=1
|
||||
FragThreshold=2346
|
||||
FreqDelta=0
|
||||
FtMdId=
|
||||
FtOtd=0
|
||||
FtRic=0
|
||||
FtSupport=0
|
||||
GreenAP=1
|
||||
G_BAND_256QAM=1
|
||||
GreenAP=1
|
||||
HideSSID=0
|
||||
HT_AMSDU=1
|
||||
HT_AutoBA=1
|
||||
@ -127,9 +130,7 @@ HT_BW=1
|
||||
HT_DisallowTKIP=1
|
||||
HT_EXTCHA=1
|
||||
HT_GI=1
|
||||
HT_HTC=1
|
||||
HT_LDPC=1
|
||||
HT_LinkAdapt=0
|
||||
HT_MCS=33
|
||||
HT_MpduDensity=5
|
||||
HT_OpMode=0
|
||||
@ -139,8 +140,7 @@ HT_RxStream=2
|
||||
HT_STBC=1
|
||||
HT_TxStream=2
|
||||
IcapMode=0
|
||||
idle_timeout_interval=0
|
||||
IEEE80211H=1
|
||||
IEEE80211H=0
|
||||
IEEE8021X=0
|
||||
IgmpSnEnable=0
|
||||
ITxBfEn=1
|
||||
@ -216,16 +216,19 @@ Key4Str7=
|
||||
Key4Str8=
|
||||
Key4Str9=
|
||||
Key4Type=0
|
||||
LinkTestSupport=0
|
||||
MacAddress=
|
||||
MACRepeaterEn=
|
||||
MACRepeaterOuiMode=2
|
||||
MboSupport=0
|
||||
MbssMaxStaNum=
|
||||
MgmtTxPwr=
|
||||
MUTxRxEnable=1
|
||||
NoForwarding=0
|
||||
NoForwardingBTNBSSID=0
|
||||
own_ip_addr=192.168.1.1
|
||||
PcieAspm=0
|
||||
PcieAspm=1
|
||||
PERCENTAGEenable=0
|
||||
PhyRateLimit=0
|
||||
PktAggregate=
|
||||
PMFMFPC=1
|
||||
PMFMFPR=0
|
||||
PMFSHA256=0
|
||||
@ -237,10 +240,12 @@ PowerUpVHT160=0:0:0:0:0:0:0
|
||||
PowerUpVHT20=0:0:0:0:0:0:0
|
||||
PowerUpVHT40=0:0:0:0:0:0:0
|
||||
PowerUpVHT80=0:0:0:0:0:0:0
|
||||
PreAntSwitch=
|
||||
PreAuth=0
|
||||
PreAuthifname=br0
|
||||
RadioLinkSelection=0
|
||||
PreAuthifname=br-lan
|
||||
PWDID=
|
||||
PWDIDR=
|
||||
PweMethod=0
|
||||
QuickChannelSwitch=
|
||||
RadioOn=1
|
||||
RADIUS_Acct_Key=
|
||||
RADIUS_Acct_Port=1813
|
||||
@ -262,18 +267,18 @@ RADIUS_Key7=
|
||||
RADIUS_Key8=
|
||||
RADIUS_Key9=
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Server=0
|
||||
RADIUS_Server=
|
||||
RDRegion=
|
||||
RED_Enable=1
|
||||
RekeyInterval=3600
|
||||
RekeyMethod=DISABLE
|
||||
RRMEnable=0
|
||||
RTSPktThreshold=
|
||||
RTSThreshold=2347
|
||||
session_timeout_interval=0
|
||||
ShortSlot=1
|
||||
SKUenable=0
|
||||
SSID=
|
||||
SSID1=OpenWrt
|
||||
SSID10=
|
||||
SSID11=
|
||||
SSID12=
|
||||
@ -281,6 +286,7 @@ SSID13=
|
||||
SSID14=
|
||||
SSID15=
|
||||
SSID16=
|
||||
SSID1=OpenWrt
|
||||
SSID2=
|
||||
SSID3=
|
||||
SSID4=
|
||||
@ -295,11 +301,10 @@ StreamModeMac0=
|
||||
StreamModeMac1=
|
||||
StreamModeMac2=
|
||||
StreamModeMac3=
|
||||
TGnWifiTest=0
|
||||
ThermalRecal=0
|
||||
TxBurst=1
|
||||
TxPower=100
|
||||
TxPreamble=1
|
||||
UAPSDCapable=1
|
||||
VHT_BW=1
|
||||
VHT_BW_SIGNAL=0
|
||||
VHT_LDPC=1
|
||||
@ -307,7 +312,6 @@ VHT_Sec80_Channel=0
|
||||
VHT_SGI=1
|
||||
VHT_STBC=1
|
||||
VLANID=0
|
||||
VLANPriority=0
|
||||
VLANTag=0
|
||||
VOW_Airtime_Ctrl_En=
|
||||
VOW_Airtime_Fairness_En=1
|
||||
@ -353,11 +357,10 @@ WdsEncrypType=NONE
|
||||
WdsList=
|
||||
WdsPhyMode=0
|
||||
WHNAT=0
|
||||
WiFiTest=0
|
||||
WirelessMode=9
|
||||
WmmCapable=1
|
||||
WNMEnable=0
|
||||
WPAPSK=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK10=
|
||||
WPAPSK11=
|
||||
WPAPSK12=
|
||||
@ -365,6 +368,7 @@ WPAPSK13=
|
||||
WPAPSK14=
|
||||
WPAPSK15=
|
||||
WPAPSK16=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK2=
|
||||
WPAPSK3=
|
||||
WPAPSK4=
|
||||
@ -373,5 +377,8 @@ WPAPSK6=
|
||||
WPAPSK7=
|
||||
WPAPSK8=
|
||||
WPAPSK9=
|
||||
WscConfMethods=
|
||||
WscConfMode=0
|
||||
WscConfStatus=2
|
||||
WscV2Support=
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ AccessPolicy7=0
|
||||
AccessPolicy8=0
|
||||
AccessPolicy9=0
|
||||
AckPolicy=0;0;0;0
|
||||
AntCtrl=
|
||||
APACM=0;0;0;0
|
||||
APAifsn=3;7;1;1
|
||||
ApCliAuthMode=
|
||||
@ -51,18 +52,24 @@ ApCliKey3Type=
|
||||
ApCliKey4Str=
|
||||
ApCliKey4Str1=
|
||||
ApCliKey4Type=
|
||||
ApCliPMFMFPC=
|
||||
ApCliPMFMFPR=
|
||||
ApCliPMFSHA256=
|
||||
ApCliSsid=
|
||||
ApCliTxMcs=
|
||||
ApCliTxMode=
|
||||
ApCliUAPSDCapable=
|
||||
ApCliWirelessMode=
|
||||
ApCliWPAPSK=
|
||||
ApCliWPAPSK1=
|
||||
ApCli_Wsc4digitPinCode=
|
||||
ApCliWscScanMode=
|
||||
APCwmax=6;10;4;3
|
||||
APCwmin=4;4;3;2
|
||||
APSDCapable=1
|
||||
APTxop=0;0;94;47
|
||||
AuthMode=OPEN
|
||||
AutoChannelSelect=0
|
||||
AutoChannelSkipList=
|
||||
AutoProvisionEn=0
|
||||
BandSteering=0
|
||||
BasicRate=15
|
||||
BeaconPeriod=100
|
||||
@ -76,11 +83,6 @@ BSSCwmax=10;10;4;3
|
||||
BSSCwmin=4;4;3;2
|
||||
BssidNum=1
|
||||
BSSTxop=0;0;94;47
|
||||
BW_Enable=0
|
||||
BW_Guarantee_Rate=
|
||||
BW_Maximum_Rate=
|
||||
BW_Priority=
|
||||
BW_Root=0
|
||||
CalCacheApply=0
|
||||
CarrierDetect=0
|
||||
Channel=36
|
||||
@ -89,34 +91,35 @@ CountryCode=US
|
||||
CountryRegion=5
|
||||
CountryRegionABand=7
|
||||
CP_SUPPORT=2
|
||||
CSPeriod=6
|
||||
DBDC_MODE=1
|
||||
DebugFlags=0
|
||||
DefaultKeyID=1
|
||||
DfsCalibration=0
|
||||
DfsEnable=0
|
||||
DfsFalseAlarmPrevent=1
|
||||
DfsZeroWait=0
|
||||
DfsZeroWaitCacTime=255
|
||||
DisableOLBC=0
|
||||
DscpPriMapBss=
|
||||
DscpQosMap=
|
||||
DscpQosMapEnable=
|
||||
DtimPeriod=1
|
||||
E2pAccessMode=2
|
||||
EAPifname=br0
|
||||
EAPifname=br-lan
|
||||
EDCCAEnable=1
|
||||
EfuseBufferMode=
|
||||
EncrypType=NONE
|
||||
EthConvertMode=dongle
|
||||
EtherTrafficBand=0
|
||||
Ethifname=
|
||||
ETxBfEnCond=1
|
||||
ITxBfEnCond=1
|
||||
FineAGC=0
|
||||
FixedTxMode=
|
||||
ForceRoamSupport=
|
||||
FQ_Enable=1
|
||||
FragThreshold=2346
|
||||
FreqDelta=0
|
||||
FtMdId=
|
||||
FtOtd=0
|
||||
FtRic=0
|
||||
FtSupport=0
|
||||
GreenAP=1
|
||||
G_BAND_256QAM=1
|
||||
GreenAP=1
|
||||
HideSSID=0
|
||||
HT_AMSDU=1
|
||||
HT_AutoBA=1
|
||||
@ -127,9 +130,7 @@ HT_BW=1
|
||||
HT_DisallowTKIP=1
|
||||
HT_EXTCHA=1
|
||||
HT_GI=1
|
||||
HT_HTC=1
|
||||
HT_LDPC=1
|
||||
HT_LinkAdapt=0
|
||||
HT_MCS=33
|
||||
HT_MpduDensity=5
|
||||
HT_OpMode=0
|
||||
@ -139,8 +140,7 @@ HT_RxStream=2
|
||||
HT_STBC=1
|
||||
HT_TxStream=2
|
||||
IcapMode=0
|
||||
idle_timeout_interval=0
|
||||
IEEE80211H=1
|
||||
IEEE80211H=0
|
||||
IEEE8021X=0
|
||||
IgmpSnEnable=0
|
||||
ITxBfEn=1
|
||||
@ -216,16 +216,19 @@ Key4Str7=
|
||||
Key4Str8=
|
||||
Key4Str9=
|
||||
Key4Type=0
|
||||
LinkTestSupport=0
|
||||
MacAddress=
|
||||
MACRepeaterEn=
|
||||
MACRepeaterOuiMode=2
|
||||
MboSupport=0
|
||||
MbssMaxStaNum=
|
||||
MgmtTxPwr=
|
||||
MUTxRxEnable=1
|
||||
NoForwarding=0
|
||||
NoForwardingBTNBSSID=0
|
||||
own_ip_addr=192.168.1.1
|
||||
PcieAspm=0
|
||||
PcieAspm=1
|
||||
PERCENTAGEenable=0
|
||||
PhyRateLimit=0
|
||||
PktAggregate=
|
||||
PMFMFPC=1
|
||||
PMFMFPR=0
|
||||
PMFSHA256=0
|
||||
@ -237,10 +240,12 @@ PowerUpVHT160=0:0:0:0:0:0:0
|
||||
PowerUpVHT20=0:0:0:0:0:0:0
|
||||
PowerUpVHT40=0:0:0:0:0:0:0
|
||||
PowerUpVHT80=0:0:0:0:0:0:0
|
||||
PreAntSwitch=
|
||||
PreAuth=0
|
||||
PreAuthifname=br0
|
||||
RadioLinkSelection=0
|
||||
PreAuthifname=br-lan
|
||||
PWDID=
|
||||
PWDIDR=
|
||||
PweMethod=0
|
||||
QuickChannelSwitch=
|
||||
RadioOn=1
|
||||
RADIUS_Acct_Key=
|
||||
RADIUS_Acct_Port=1813
|
||||
@ -262,18 +267,18 @@ RADIUS_Key7=
|
||||
RADIUS_Key8=
|
||||
RADIUS_Key9=
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Server=0
|
||||
RADIUS_Server=
|
||||
RDRegion=
|
||||
RED_Enable=1
|
||||
RekeyInterval=3600
|
||||
RekeyMethod=DISABLE
|
||||
RRMEnable=0
|
||||
RTSPktThreshold=
|
||||
RTSThreshold=2347
|
||||
session_timeout_interval=0
|
||||
ShortSlot=1
|
||||
SKUenable=0
|
||||
SSID=
|
||||
SSID1=OpenWrt_5G
|
||||
SSID10=
|
||||
SSID11=
|
||||
SSID12=
|
||||
@ -281,6 +286,7 @@ SSID13=
|
||||
SSID14=
|
||||
SSID15=
|
||||
SSID16=
|
||||
SSID1=OpenWrt_5G
|
||||
SSID2=
|
||||
SSID3=
|
||||
SSID4=
|
||||
@ -295,11 +301,10 @@ StreamModeMac0=
|
||||
StreamModeMac1=
|
||||
StreamModeMac2=
|
||||
StreamModeMac3=
|
||||
TGnWifiTest=0
|
||||
ThermalRecal=0
|
||||
TxBurst=1
|
||||
TxPower=100
|
||||
TxPreamble=1
|
||||
UAPSDCapable=1
|
||||
VHT_BW=1
|
||||
VHT_BW_SIGNAL=0
|
||||
VHT_LDPC=1
|
||||
@ -307,7 +312,6 @@ VHT_Sec80_Channel=0
|
||||
VHT_SGI=1
|
||||
VHT_STBC=1
|
||||
VLANID=0
|
||||
VLANPriority=0
|
||||
VLANTag=0
|
||||
VOW_Airtime_Ctrl_En=
|
||||
VOW_Airtime_Fairness_En=1
|
||||
@ -353,11 +357,10 @@ WdsEncrypType=NONE
|
||||
WdsList=
|
||||
WdsPhyMode=0
|
||||
WHNAT=0
|
||||
WiFiTest=0
|
||||
WirelessMode=14
|
||||
WmmCapable=1
|
||||
WNMEnable=0
|
||||
WPAPSK=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK10=
|
||||
WPAPSK11=
|
||||
WPAPSK12=
|
||||
@ -365,6 +368,7 @@ WPAPSK13=
|
||||
WPAPSK14=
|
||||
WPAPSK15=
|
||||
WPAPSK16=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK2=
|
||||
WPAPSK3=
|
||||
WPAPSK4=
|
||||
@ -373,5 +377,8 @@ WPAPSK6=
|
||||
WPAPSK7=
|
||||
WPAPSK8=
|
||||
WPAPSK9=
|
||||
WscConfMethods=
|
||||
WscConfMode=0
|
||||
WscConfStatus=2
|
||||
WscV2Support=
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ AccessPolicy7=0
|
||||
AccessPolicy8=0
|
||||
AccessPolicy9=0
|
||||
AckPolicy=0;0;0;0
|
||||
AntCtrl=
|
||||
APACM=0;0;0;0
|
||||
APAifsn=3;7;1;1
|
||||
ApCliAuthMode=
|
||||
@ -51,18 +52,24 @@ ApCliKey3Type=
|
||||
ApCliKey4Str=
|
||||
ApCliKey4Str1=
|
||||
ApCliKey4Type=
|
||||
ApCliPMFMFPC=
|
||||
ApCliPMFMFPR=
|
||||
ApCliPMFSHA256=
|
||||
ApCliSsid=
|
||||
ApCliTxMcs=
|
||||
ApCliTxMode=
|
||||
ApCliUAPSDCapable=
|
||||
ApCliWirelessMode=
|
||||
ApCliWPAPSK=
|
||||
ApCliWPAPSK1=
|
||||
ApCli_Wsc4digitPinCode=
|
||||
ApCliWscScanMode=
|
||||
APCwmax=6;10;4;3
|
||||
APCwmin=4;4;3;2
|
||||
APSDCapable=1
|
||||
APTxop=0;0;94;47
|
||||
AuthMode=OPEN
|
||||
AutoChannelSelect=0
|
||||
AutoChannelSkipList=
|
||||
AutoProvisionEn=0
|
||||
BandSteering=0
|
||||
BasicRate=15
|
||||
BeaconPeriod=100
|
||||
@ -76,11 +83,6 @@ BSSCwmax=10;10;4;3
|
||||
BSSCwmin=4;4;3;2
|
||||
BssidNum=1
|
||||
BSSTxop=0;0;94;47
|
||||
BW_Enable=0
|
||||
BW_Guarantee_Rate=
|
||||
BW_Maximum_Rate=
|
||||
BW_Priority=
|
||||
BW_Root=0
|
||||
CalCacheApply=0
|
||||
CarrierDetect=0
|
||||
Channel=6
|
||||
@ -89,34 +91,35 @@ CountryCode=US
|
||||
CountryRegion=5
|
||||
CountryRegionABand=7
|
||||
CP_SUPPORT=2
|
||||
CSPeriod=6
|
||||
DBDC_MODE=0
|
||||
DebugFlags=0
|
||||
DefaultKeyID=1
|
||||
DfsCalibration=0
|
||||
DfsEnable=0
|
||||
DfsFalseAlarmPrevent=1
|
||||
DfsZeroWait=0
|
||||
DfsZeroWaitCacTime=255
|
||||
DisableOLBC=0
|
||||
DscpPriMapBss=
|
||||
DscpQosMap=
|
||||
DscpQosMapEnable=
|
||||
DtimPeriod=1
|
||||
E2pAccessMode=2
|
||||
EAPifname=br0
|
||||
EAPifname=br-lan
|
||||
EDCCAEnable=1
|
||||
EfuseBufferMode=
|
||||
EncrypType=NONE
|
||||
EthConvertMode=dongle
|
||||
EtherTrafficBand=0
|
||||
Ethifname=
|
||||
ETxBfEnCond=1
|
||||
ITxBfEnCond=1
|
||||
FineAGC=0
|
||||
FixedTxMode=
|
||||
ForceRoamSupport=
|
||||
FQ_Enable=1
|
||||
FragThreshold=2346
|
||||
FreqDelta=0
|
||||
FtMdId=
|
||||
FtOtd=0
|
||||
FtRic=0
|
||||
FtSupport=0
|
||||
GreenAP=1
|
||||
G_BAND_256QAM=1
|
||||
GreenAP=1
|
||||
HideSSID=0
|
||||
HT_AMSDU=1
|
||||
HT_AutoBA=1
|
||||
@ -127,9 +130,7 @@ HT_BW=1
|
||||
HT_DisallowTKIP=1
|
||||
HT_EXTCHA=1
|
||||
HT_GI=1
|
||||
HT_HTC=1
|
||||
HT_LDPC=1
|
||||
HT_LinkAdapt=0
|
||||
HT_MCS=33
|
||||
HT_MpduDensity=5
|
||||
HT_OpMode=0
|
||||
@ -139,8 +140,7 @@ HT_RxStream=4
|
||||
HT_STBC=1
|
||||
HT_TxStream=4
|
||||
IcapMode=0
|
||||
idle_timeout_interval=0
|
||||
IEEE80211H=1
|
||||
IEEE80211H=0
|
||||
IEEE8021X=0
|
||||
IgmpSnEnable=0
|
||||
ITxBfEn=1
|
||||
@ -216,16 +216,19 @@ Key4Str7=
|
||||
Key4Str8=
|
||||
Key4Str9=
|
||||
Key4Type=0
|
||||
LinkTestSupport=0
|
||||
MacAddress=
|
||||
MACRepeaterEn=
|
||||
MACRepeaterOuiMode=2
|
||||
MboSupport=0
|
||||
MbssMaxStaNum=
|
||||
MgmtTxPwr=
|
||||
MUTxRxEnable=1
|
||||
NoForwarding=0
|
||||
NoForwardingBTNBSSID=0
|
||||
own_ip_addr=192.168.1.1
|
||||
PcieAspm=0
|
||||
PcieAspm=1
|
||||
PERCENTAGEenable=0
|
||||
PhyRateLimit=0
|
||||
PktAggregate=
|
||||
PMFMFPC=1
|
||||
PMFMFPR=0
|
||||
PMFSHA256=0
|
||||
@ -237,10 +240,12 @@ PowerUpVHT160=0:0:0:0:0:0:0
|
||||
PowerUpVHT20=0:0:0:0:0:0:0
|
||||
PowerUpVHT40=0:0:0:0:0:0:0
|
||||
PowerUpVHT80=0:0:0:0:0:0:0
|
||||
PreAntSwitch=
|
||||
PreAuth=0
|
||||
PreAuthifname=br0
|
||||
RadioLinkSelection=0
|
||||
PreAuthifname=br-lan
|
||||
PWDID=
|
||||
PWDIDR=
|
||||
PweMethod=0
|
||||
QuickChannelSwitch=
|
||||
RadioOn=1
|
||||
RADIUS_Acct_Key=
|
||||
RADIUS_Acct_Port=1813
|
||||
@ -262,18 +267,18 @@ RADIUS_Key7=
|
||||
RADIUS_Key8=
|
||||
RADIUS_Key9=
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Server=0
|
||||
RADIUS_Server=
|
||||
RDRegion=
|
||||
RED_Enable=1
|
||||
RekeyInterval=3600
|
||||
RekeyMethod=DISABLE
|
||||
RRMEnable=0
|
||||
RTSPktThreshold=
|
||||
RTSThreshold=2347
|
||||
session_timeout_interval=0
|
||||
ShortSlot=1
|
||||
SKUenable=0
|
||||
SSID=
|
||||
SSID1=OpenWrt
|
||||
SSID10=
|
||||
SSID11=
|
||||
SSID12=
|
||||
@ -281,6 +286,7 @@ SSID13=
|
||||
SSID14=
|
||||
SSID15=
|
||||
SSID16=
|
||||
SSID1=OpenWrt
|
||||
SSID2=
|
||||
SSID3=
|
||||
SSID4=
|
||||
@ -295,11 +301,10 @@ StreamModeMac0=
|
||||
StreamModeMac1=
|
||||
StreamModeMac2=
|
||||
StreamModeMac3=
|
||||
TGnWifiTest=0
|
||||
ThermalRecal=0
|
||||
TxBurst=1
|
||||
TxPower=100
|
||||
TxPreamble=1
|
||||
UAPSDCapable=1
|
||||
VHT_BW=1
|
||||
VHT_BW_SIGNAL=0
|
||||
VHT_LDPC=1
|
||||
@ -307,7 +312,6 @@ VHT_Sec80_Channel=0
|
||||
VHT_SGI=1
|
||||
VHT_STBC=1
|
||||
VLANID=0
|
||||
VLANPriority=0
|
||||
VLANTag=0
|
||||
VOW_Airtime_Ctrl_En=
|
||||
VOW_Airtime_Fairness_En=1
|
||||
@ -353,11 +357,10 @@ WdsEncrypType=NONE
|
||||
WdsList=
|
||||
WdsPhyMode=0
|
||||
WHNAT=0
|
||||
WiFiTest=0
|
||||
WirelessMode=9
|
||||
WmmCapable=1
|
||||
WNMEnable=0
|
||||
WPAPSK=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK10=
|
||||
WPAPSK11=
|
||||
WPAPSK12=
|
||||
@ -365,6 +368,7 @@ WPAPSK13=
|
||||
WPAPSK14=
|
||||
WPAPSK15=
|
||||
WPAPSK16=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK2=
|
||||
WPAPSK3=
|
||||
WPAPSK4=
|
||||
@ -373,5 +377,8 @@ WPAPSK6=
|
||||
WPAPSK7=
|
||||
WPAPSK8=
|
||||
WPAPSK9=
|
||||
WscConfMethods=
|
||||
WscConfMode=0
|
||||
WscConfStatus=2
|
||||
WscV2Support=
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ AccessPolicy7=0
|
||||
AccessPolicy8=0
|
||||
AccessPolicy9=0
|
||||
AckPolicy=0;0;0;0
|
||||
AntCtrl=
|
||||
APACM=0;0;0;0
|
||||
APAifsn=3;7;1;1
|
||||
ApCliAuthMode=
|
||||
@ -51,18 +52,24 @@ ApCliKey3Type=
|
||||
ApCliKey4Str=
|
||||
ApCliKey4Str1=
|
||||
ApCliKey4Type=
|
||||
ApCliPMFMFPC=
|
||||
ApCliPMFMFPR=
|
||||
ApCliPMFSHA256=
|
||||
ApCliSsid=
|
||||
ApCliTxMcs=
|
||||
ApCliTxMode=
|
||||
ApCliUAPSDCapable=
|
||||
ApCliWirelessMode=
|
||||
ApCliWPAPSK=
|
||||
ApCliWPAPSK1=
|
||||
ApCli_Wsc4digitPinCode=
|
||||
ApCliWscScanMode=
|
||||
APCwmax=6;10;4;3
|
||||
APCwmin=4;4;3;2
|
||||
APSDCapable=1
|
||||
APTxop=0;0;94;47
|
||||
AuthMode=OPEN
|
||||
AutoChannelSelect=0
|
||||
AutoChannelSkipList=
|
||||
AutoProvisionEn=0
|
||||
BandSteering=0
|
||||
BasicRate=15
|
||||
BeaconPeriod=100
|
||||
@ -76,11 +83,6 @@ BSSCwmax=10;10;4;3
|
||||
BSSCwmin=4;4;3;2
|
||||
BssidNum=1
|
||||
BSSTxop=0;0;94;47
|
||||
BW_Enable=0
|
||||
BW_Guarantee_Rate=
|
||||
BW_Maximum_Rate=
|
||||
BW_Priority=
|
||||
BW_Root=0
|
||||
CalCacheApply=0
|
||||
CarrierDetect=0
|
||||
Channel=36
|
||||
@ -89,34 +91,35 @@ CountryCode=US
|
||||
CountryRegion=5
|
||||
CountryRegionABand=7
|
||||
CP_SUPPORT=2
|
||||
CSPeriod=6
|
||||
DBDC_MODE=0
|
||||
DebugFlags=0
|
||||
DefaultKeyID=1
|
||||
DfsCalibration=0
|
||||
DfsEnable=0
|
||||
DfsFalseAlarmPrevent=1
|
||||
DfsZeroWait=0
|
||||
DfsZeroWaitCacTime=255
|
||||
DisableOLBC=0
|
||||
DscpPriMapBss=
|
||||
DscpQosMap=
|
||||
DscpQosMapEnable=
|
||||
DtimPeriod=1
|
||||
E2pAccessMode=2
|
||||
EAPifname=br0
|
||||
EAPifname=br-lan
|
||||
EDCCAEnable=1
|
||||
EfuseBufferMode=
|
||||
EncrypType=NONE
|
||||
EthConvertMode=dongle
|
||||
EtherTrafficBand=0
|
||||
Ethifname=
|
||||
ETxBfEnCond=1
|
||||
ITxBfEnCond=1
|
||||
FineAGC=0
|
||||
FixedTxMode=
|
||||
ForceRoamSupport=
|
||||
FQ_Enable=1
|
||||
FragThreshold=2346
|
||||
FreqDelta=0
|
||||
FtMdId=
|
||||
FtOtd=0
|
||||
FtRic=0
|
||||
FtSupport=0
|
||||
GreenAP=1
|
||||
G_BAND_256QAM=1
|
||||
GreenAP=1
|
||||
HideSSID=0
|
||||
HT_AMSDU=1
|
||||
HT_AutoBA=1
|
||||
@ -127,9 +130,7 @@ HT_BW=1
|
||||
HT_DisallowTKIP=1
|
||||
HT_EXTCHA=1
|
||||
HT_GI=1
|
||||
HT_HTC=1
|
||||
HT_LDPC=1
|
||||
HT_LinkAdapt=0
|
||||
HT_MCS=33
|
||||
HT_MpduDensity=5
|
||||
HT_OpMode=0
|
||||
@ -139,8 +140,7 @@ HT_RxStream=4
|
||||
HT_STBC=1
|
||||
HT_TxStream=4
|
||||
IcapMode=0
|
||||
idle_timeout_interval=0
|
||||
IEEE80211H=1
|
||||
IEEE80211H=0
|
||||
IEEE8021X=0
|
||||
IgmpSnEnable=0
|
||||
ITxBfEn=1
|
||||
@ -216,16 +216,19 @@ Key4Str7=
|
||||
Key4Str8=
|
||||
Key4Str9=
|
||||
Key4Type=0
|
||||
LinkTestSupport=0
|
||||
MacAddress=
|
||||
MACRepeaterEn=
|
||||
MACRepeaterOuiMode=2
|
||||
MboSupport=0
|
||||
MbssMaxStaNum=
|
||||
MgmtTxPwr=
|
||||
MUTxRxEnable=1
|
||||
NoForwarding=0
|
||||
NoForwardingBTNBSSID=0
|
||||
own_ip_addr=192.168.1.1
|
||||
PcieAspm=0
|
||||
PcieAspm=1
|
||||
PERCENTAGEenable=0
|
||||
PhyRateLimit=0
|
||||
PktAggregate=
|
||||
PMFMFPC=1
|
||||
PMFMFPR=0
|
||||
PMFSHA256=0
|
||||
@ -237,10 +240,12 @@ PowerUpVHT160=0:0:0:0:0:0:0
|
||||
PowerUpVHT20=0:0:0:0:0:0:0
|
||||
PowerUpVHT40=0:0:0:0:0:0:0
|
||||
PowerUpVHT80=0:0:0:0:0:0:0
|
||||
PreAntSwitch=
|
||||
PreAuth=0
|
||||
PreAuthifname=br0
|
||||
RadioLinkSelection=0
|
||||
PreAuthifname=br-lan
|
||||
PWDID=
|
||||
PWDIDR=
|
||||
PweMethod=0
|
||||
QuickChannelSwitch=
|
||||
RadioOn=1
|
||||
RADIUS_Acct_Key=
|
||||
RADIUS_Acct_Port=1813
|
||||
@ -262,18 +267,18 @@ RADIUS_Key7=
|
||||
RADIUS_Key8=
|
||||
RADIUS_Key9=
|
||||
RADIUS_Port=1812
|
||||
RADIUS_Server=0
|
||||
RADIUS_Server=
|
||||
RDRegion=
|
||||
RED_Enable=1
|
||||
RekeyInterval=3600
|
||||
RekeyMethod=DISABLE
|
||||
RRMEnable=0
|
||||
RTSPktThreshold=
|
||||
RTSThreshold=2347
|
||||
session_timeout_interval=0
|
||||
ShortSlot=1
|
||||
SKUenable=0
|
||||
SSID=
|
||||
SSID1=OpenWrt_5G
|
||||
SSID10=
|
||||
SSID11=
|
||||
SSID12=
|
||||
@ -281,6 +286,7 @@ SSID13=
|
||||
SSID14=
|
||||
SSID15=
|
||||
SSID16=
|
||||
SSID1=OpenWrt_5G
|
||||
SSID2=
|
||||
SSID3=
|
||||
SSID4=
|
||||
@ -295,11 +301,10 @@ StreamModeMac0=
|
||||
StreamModeMac1=
|
||||
StreamModeMac2=
|
||||
StreamModeMac3=
|
||||
TGnWifiTest=0
|
||||
ThermalRecal=0
|
||||
TxBurst=1
|
||||
TxPower=100
|
||||
TxPreamble=1
|
||||
UAPSDCapable=1
|
||||
VHT_BW=1
|
||||
VHT_BW_SIGNAL=0
|
||||
VHT_LDPC=1
|
||||
@ -307,7 +312,6 @@ VHT_Sec80_Channel=0
|
||||
VHT_SGI=1
|
||||
VHT_STBC=1
|
||||
VLANID=0
|
||||
VLANPriority=0
|
||||
VLANTag=0
|
||||
VOW_Airtime_Ctrl_En=
|
||||
VOW_Airtime_Fairness_En=1
|
||||
@ -353,11 +357,10 @@ WdsEncrypType=NONE
|
||||
WdsList=
|
||||
WdsPhyMode=0
|
||||
WHNAT=0
|
||||
WiFiTest=0
|
||||
WirelessMode=14
|
||||
WmmCapable=1
|
||||
WNMEnable=0
|
||||
WPAPSK=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK10=
|
||||
WPAPSK11=
|
||||
WPAPSK12=
|
||||
@ -365,6 +368,7 @@ WPAPSK13=
|
||||
WPAPSK14=
|
||||
WPAPSK15=
|
||||
WPAPSK16=
|
||||
WPAPSK1=12345678
|
||||
WPAPSK2=
|
||||
WPAPSK3=
|
||||
WPAPSK4=
|
||||
@ -373,5 +377,8 @@ WPAPSK6=
|
||||
WPAPSK7=
|
||||
WPAPSK8=
|
||||
WPAPSK9=
|
||||
WscConfMethods=
|
||||
WscConfMode=0
|
||||
WscConfStatus=2
|
||||
WscV2Support=
|
||||
|
||||
|
||||
55
package/kernel/mt-drivers/mtkiappd/Makefile
Normal file
55
package/kernel/mt-drivers/mtkiappd/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mtkiappd
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_CONFIG_DEPENDS := \
|
||||
CONFIG_MTK_CHIP_MT7615E_DBDC \
|
||||
CONFIG_PACKAGE_mtkiappd_DUAL_BAND
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/mtkiappd
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=MTK 802.11f supporting daemon
|
||||
DEPENDS:=@TARGET_ramips
|
||||
SUBMENU:=Wireless
|
||||
endef
|
||||
|
||||
define Package/mtkiappd/description
|
||||
Mtkiappd is an optional user space component for MT76xx SoftAP driver.
|
||||
endef
|
||||
|
||||
define Package/mtkiappd/config
|
||||
config PACKAGE_mtkiappd_DUAL_BAND
|
||||
bool "dual band"
|
||||
depends on MTK_CHIP_MT7615E
|
||||
default y if TARGET_ramips_mt7621_DEVICE_phicomm_k2p
|
||||
default n
|
||||
endef
|
||||
|
||||
ifeq ($(CONFIG_PACKAGE_mtkiappd_DUAL_BAND),y)
|
||||
WIRELESS_IOCTL_PARAM:=-wi ra0 -wi rax0
|
||||
else
|
||||
WIRELESS_IOCTL_PARAM:=-wi ra0
|
||||
endif
|
||||
|
||||
define Package/mtkiappd/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DIR) $(1)/usr/share/mtkiappd
|
||||
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mtkiappd $(1)/usr/sbin/
|
||||
$(INSTALL_BIN) ./files/mtkiappd.sh $(1)/etc/init.d/mtkiappd
|
||||
sed -i 's/WIRELESS_IOCTL_PARAM/$(WIRELESS_IOCTL_PARAM)/' $(1)/etc/init.d/mtkiappd
|
||||
$(INSTALL_DATA) ./files/firewall.include $(1)/usr/share/mtkiappd/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,mtkiappd))
|
||||
49
package/kernel/mt-drivers/mtkiappd/files/README
Executable file
49
package/kernel/mt-drivers/mtkiappd/files/README
Executable file
@ -0,0 +1,49 @@
|
||||
mtkiappd - user space daemon supported 802.11f protocol
|
||||
for RTxxxx a/b/g/n SoftAP driver, Ralink Technology, Corp.
|
||||
=================================================================
|
||||
|
||||
This is the README file for the 802.11f/802.11r/802.11k daemon - mtkiappd,
|
||||
which comes with RTxxxx SoftAP driver.
|
||||
|
||||
|
||||
I. Introduction
|
||||
=================================================================
|
||||
mtkiappd is an optional user space component for RTxxxx SoftAP driver.
|
||||
|
||||
|
||||
II. 802.11f features in mtkiappd
|
||||
=================================================================
|
||||
IEEE Std 802.11F-2003 is a standard for inter-access point protocol(IAPP).
|
||||
It can handle issues on multi-verder access point interoperability.
|
||||
|
||||
There are three major topics which 802.11f supported,
|
||||
1. ADD-notify
|
||||
2. MOVE-notify
|
||||
3. CACHE-notify
|
||||
|
||||
mtkiappd only supports ADD-notify in current phase due to lack of support from radius server
|
||||
|
||||
There are three major topics which 802.11r supported,
|
||||
1. Key Distribution Protocol
|
||||
|
||||
There are three major topics which 802.11k supported,
|
||||
1. Neighbor Report
|
||||
|
||||
Some ethernet card needs special configuration to support multicasting.
|
||||
Make sure your ethernet card support multicasting
|
||||
|
||||
|
||||
III. How to start mtkiappd
|
||||
=================================================================
|
||||
Note: the broadcast/netmask address of all AP must be the same.
|
||||
1. If you want to debug mtkiappd, add CFLAGS with DBG.
|
||||
2. If you want to extend wifi control interface,
|
||||
modify "MAX_WIFI_COUNT" in rtmpiapp.h. (default setting is 2)
|
||||
3. First we need to compile the source code using 'make' command
|
||||
4. Load RTxxxx SoftAP driver - ex: rt2860ap.ko
|
||||
5. Manually start mtkiappd, type $mtkiappd
|
||||
6. For wifi multi-interface, type $mtkiappd -wi ra0 -wi rai0
|
||||
|
||||
|
||||
IV. Reference
|
||||
IEEE Std 802.11F-2003, IEEE802.11r, IEEE802.11k
|
||||
@ -0,0 +1,2 @@
|
||||
-A INPUT -i br-lan -p tcp --dport 3517 -j ACCEPT
|
||||
-A INPUT -i br-lan -p udp --dport 3517 -j ACCEPT
|
||||
12
package/kernel/mt-drivers/mtkiappd/files/mtkiappd.defaults
Normal file
12
package/kernel/mt-drivers/mtkiappd/files/mtkiappd.defaults
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOT
|
||||
delete firewall.mtkiappd
|
||||
set firewall.mtkiappd=include
|
||||
set firewall.mtkiappd.type=restore
|
||||
set firewall.mtkiappd.path=/usr/share/mtkiappd/firewall.include
|
||||
set firewall.mtkiappd.reload=1
|
||||
commit firewall
|
||||
EOT
|
||||
|
||||
exit 0
|
||||
20
package/kernel/mt-drivers/mtkiappd/files/mtkiappd.sh
Executable file
20
package/kernel/mt-drivers/mtkiappd/files/mtkiappd.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=01
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
start_service() {
|
||||
procd_open_instance mtkiappd
|
||||
procd_set_param command /usr/sbin/mtkiappd -e br-lan WIRELESS_IOCTL_PARAM
|
||||
procd_set_param respawn
|
||||
procd_set_param netdev br-lan
|
||||
procd_set_param netdev ra0
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
10
package/kernel/mt-drivers/mtkiappd/src/Makefile
Normal file
10
package/kernel/mt-drivers/mtkiappd/src/Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
OBJS = rtmpiapp.o mt_iapp_util.o
|
||||
|
||||
# If you want to debug daemon, uncomment following line
|
||||
# CFLAGS += -ggdb3 -DDBG
|
||||
|
||||
mtkiappd: $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
||||
|
||||
clean:
|
||||
rm -f core *.o mtkiappd
|
||||
128
package/kernel/mt-drivers/mtkiappd/src/iappdefs.h
Normal file
128
package/kernel/mt-drivers/mtkiappd/src/iappdefs.h
Normal file
@ -0,0 +1,128 @@
|
||||
/****************************************************************************
|
||||
* Ralink Tech Inc.
|
||||
* Taiwan, R.O.C.
|
||||
*
|
||||
* (c) Copyright 2002, Ralink Technology, Inc.
|
||||
*
|
||||
* All rights reserved. Ralink's source code is an unpublished work and the
|
||||
* use of a copyright notice does not imply otherwise. This source code
|
||||
* contains confidential trade secret material of Ralink Tech. Any attemp
|
||||
* or participation in deciphering, decoding, reverse engineering or in any
|
||||
* way altering the source code is stricitly prohibited, unless the prior
|
||||
* written consent of Ralink Technology, Inc. is obtained.
|
||||
***************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Abstract:
|
||||
|
||||
All related IEEE802.11f IAPP + IEEE802.11r IAPP extension.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __IAPP_DEF_H__
|
||||
#define __IAPP_DEF_H__
|
||||
|
||||
/* Some Notes */
|
||||
|
||||
#define IAPP_DS_LINK_LOST
|
||||
/*
|
||||
When an AP continues to accept associations without a link to the DS,
|
||||
it is a black hole in the WLAN, where STAs associate and cannot
|
||||
communicate with anything beyond the AP’s BSS. When an AP loses its link
|
||||
to the DS, it should cease transmitting Beacons, disassociate all
|
||||
associated stations, and cease responding to Probe Request,
|
||||
Authentication, and Association Request frames.
|
||||
*/
|
||||
|
||||
/* Local use file */
|
||||
#define PROC_NET_ARP_PATH "/proc/net/arp"
|
||||
#define IAPP_PID_BACKUP_FILE "/var/run/mtkiappd.pid"
|
||||
|
||||
/* Definition of IAPP */
|
||||
#define IAPP_DAEMON_VERSION "v1.1.0"
|
||||
#define IAPP_VERSION 0
|
||||
//#define IAPP_MULTICAST_ADDR "224.0.1.178" /* used in
|
||||
// ADD-req frame*/ #define IAPP_MULTICAST_ADDR
|
||||
//"192.168.15.255" /* used in ADD-req frame*/
|
||||
|
||||
/*
|
||||
The UDP Port parameter is the UDP port number to be opened for the IAPP
|
||||
for transmission and reception of IAPP packets.
|
||||
*/
|
||||
#define IAPP_UDP_PORT 3517 /* used in UDP connection */
|
||||
|
||||
/*
|
||||
The TCP Port parameter is the TCP port number that the IAPP entity opens
|
||||
to listen for new IAPP TCP connections from the IAPP entities of other
|
||||
APs.
|
||||
*/
|
||||
#define IAPP_TCP_PORT 3517 /* used in TCP connection */
|
||||
|
||||
/* Message type */
|
||||
#define IAPP_ETH_PRO 0xEEEE
|
||||
#define IAPPMSGQUEID 1
|
||||
#define RADIUSMSGQUEID 2
|
||||
#define RRB_ETH_PRO 0x890D
|
||||
|
||||
/* Message subtype */
|
||||
#define IAPP_OPEN_SERVICE_REQ 0
|
||||
#define IAPP_OPEN_SERVICE_RSP 1
|
||||
#define IAPP_CLOSE_SERVICE_REQ 2
|
||||
#define IAPP_SIGNAL_REQ 3
|
||||
#define IAPP_SET_OID_REQ 4
|
||||
#define IAPP_QUERY_OID_REQ 5
|
||||
#define IAPP_QUERY_OID_RSP 6
|
||||
|
||||
/* Definition of signal */
|
||||
#define IAPP_SIG_NONE 0
|
||||
#define IAPP_SIG_ASSOCIATION 1
|
||||
#define IAPP_SIG_REASSOCIATION 2
|
||||
#define IAPP_SIG_TERMINATE 3
|
||||
|
||||
/* Definition of IAPP command */ /* reference to IEEE802.11f page 50 */
|
||||
#define IAPP_CMD_ADD_NOTIFY 0 /* ADD-notify */
|
||||
#define IAPP_CMD_MOVE_NOTIFY 1 /* MOVE-notify */
|
||||
#define IAPP_CMD_MOVE_RESPONSE 2 /* MOVE-response */
|
||||
#define IAPP_CMD_SEND_SECURITY_BLOCK 3 /* Send-Security-Block */
|
||||
#define IAPP_CMD_ACK_SECURITY_BLOCK 4 /* ACK-Security-Block */
|
||||
#define IAPP_CMD_CACHE_NOTIFY 5 /* CACHE-notify */
|
||||
#define IAPP_CMD_CACHE_RESPONSE 6 /* CACHE-response */
|
||||
|
||||
#define IAPP_CMD_FT_SEND_SECURITY_BLOCK \
|
||||
50 /* proprietary FT Send-Security-Block */
|
||||
#define IAPP_CMD_FT_ACK_SECURITY_BLOCK \
|
||||
51 /* proprietary FT ACK-Security-Block */
|
||||
|
||||
#define IAPP_CMD_INFO_BROADCAST 60 /* proprietary INFO broadcast */
|
||||
#define IAPP_CMD_INFO_REQUEST 61 /* proprietary INFO request */
|
||||
#define IAPP_CMD_INFO_RESPONSE 62 /* proprietary INFO response */
|
||||
|
||||
#define IAPP_CMD_SECURITY_MONITOR 128 /* proprietary, for SM broadcast */
|
||||
|
||||
/* Definition of event log */
|
||||
#define IAPP_MAX_SIZE_OF_EVENT_LOG 1024
|
||||
|
||||
/* Definition of general */
|
||||
#define IAPP_SELECT_TIMEOUT 5 /* unit: second */
|
||||
|
||||
#define IAPP_MAX_RCV_PKT_SIZE 1600
|
||||
#define IAPP_MAX_RCV_PKT_SIZE_SAFE 100
|
||||
|
||||
#define IAPP_IP_HEADER_OFFSET 14 /* skip MAC header */
|
||||
#define IAPP_IP_PROTO_OFFSET 9
|
||||
#define IAPP_IP_PROTO_UDP 17
|
||||
#define IAPP_UDP_DST_PORT_OFFSET (20 + 2)
|
||||
|
||||
#define IAPP_MAC_IP_UDP_LEN (14 + 20 + 8)
|
||||
|
||||
/* 16 for extra 8B encryption & 8B-align, other 16B for safe */
|
||||
#define IAPP_SECURITY_EXTEND_LEN 32
|
||||
|
||||
#define IAPP_IN
|
||||
#define IAPP_OUT
|
||||
#define IAPP_INOUT
|
||||
|
||||
#endif /* __IAPP_DEF_H__ */
|
||||
|
||||
/* End of iapp_def.h */
|
||||
234
package/kernel/mt-drivers/mtkiappd/src/mt_iapp_util.c
Normal file
234
package/kernel/mt-drivers/mtkiappd/src/mt_iapp_util.c
Normal file
@ -0,0 +1,234 @@
|
||||
/****************************************************************************
|
||||
* Ralink Tech Inc.
|
||||
* Taiwan, R.O.C.
|
||||
*
|
||||
* (c) Copyright 2002, Ralink Technology, Inc.
|
||||
*
|
||||
* All rights reserved. Ralink's source code is an unpublished work and the
|
||||
* use of a copyright notice does not imply otherwise. This source code
|
||||
* contains confidential trade secret material of Ralink Tech. Any attemp
|
||||
* or participation in deciphering, decoding, reverse engineering or in any
|
||||
* way altering the source code is stricitly prohibited, unless the prior
|
||||
* written consent of Ralink Technology, Inc. is obtained.
|
||||
***************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Abstract:
|
||||
|
||||
All related IEEE802.11f IAPP + IEEE802.11r/11k IAPP extension.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
/* Include */
|
||||
|
||||
#include "iappdefs.h"
|
||||
#include "rt_config.h"
|
||||
#include "rt_typedef.h"
|
||||
#include "rtmpiapp.h"
|
||||
|
||||
VOID os_alloc_mem(UCHAR *pAd, UCHAR **ppMem, UINT32 Size) {
|
||||
*ppMem = (UCHAR *)malloc(Size);
|
||||
}
|
||||
|
||||
VOID os_free_mem(UCHAR *pAd, VOID *pMem) { free(pMem); }
|
||||
|
||||
BOOLEAN mt_iapp_get_wifi_iface_mac(RTMP_IAPP *pCtrlBK) {
|
||||
#ifdef IAPP_OS_LINUX
|
||||
INT idx;
|
||||
for (idx = 0; idx < pCtrlBK->IfNameWlanCount; idx++) {
|
||||
struct ifreq ReqIf;
|
||||
|
||||
NdisZeroMemory(pCtrlBK->IfNameWlanMAC[idx], ETH_ALEN);
|
||||
NdisCopyMemory(ReqIf.ifr_name, pCtrlBK->IfNameWlanIoctl[idx], IFNAMSIZ);
|
||||
/* get mac address of the interface */
|
||||
if (ioctl(pCtrlBK->SocketIoctl, SIOCGIFHWADDR, &ReqIf) < 0) {
|
||||
DBGPRINT(RT_DEBUG_ERROR,
|
||||
("iapp> %s - Fail to get MAC of IfName[%d]: %s\n", __FUNCTION__,
|
||||
idx, pCtrlBK->IfNameWlanIoctl[idx]));
|
||||
return FALSE;
|
||||
} else {
|
||||
NdisCopyMemory(pCtrlBK->IfNameWlanMAC[idx],
|
||||
&ReqIf.ifr_ifru.ifru_hwaddr.sa_data[0], ETH_ALEN);
|
||||
DBGPRINT(RT_DEBUG_OFF, ("iapp> %s - IfName[%d]: %s\n", __FUNCTION__, idx,
|
||||
pCtrlBK->IfNameWlanIoctl[idx]));
|
||||
IAPP_HEX_DUMP("MAC", pCtrlBK->IfNameWlanMAC[idx], ETH_ALEN);
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
#else
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
INT32 mt_iapp_find_ifidx_by_mac(RTMP_IAPP *pCtrlBK, UCHAR *WifiMAC) {
|
||||
INT32 idx = 0;
|
||||
|
||||
if (WifiMAC == NULL) {
|
||||
DBGPRINT(RT_DEBUG_OFF, ("iapp> %s - WifiMAC is null.\n", __FUNCTION__));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (pCtrlBK->IfNameWlanCount < MAX_WIFI_COUNT) {
|
||||
DBGPRINT(RT_DEBUG_OFF,
|
||||
("iapp> %s - pCtrlBK->IfNameWlanCount (%d) is less than %d.\n",
|
||||
__FUNCTION__, pCtrlBK->IfNameWlanCount, MAX_WIFI_COUNT));
|
||||
}
|
||||
|
||||
for (idx = 0; idx < MAX_WIFI_COUNT; idx++) {
|
||||
if (NdisCompareMemory(WifiMAC, pCtrlBK->IfNameWlanMAC[idx], ETH_ALEN) ==
|
||||
0) {
|
||||
return idx;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
VOID mt_iapp_set_daemon_information(RTMP_IAPP *pCtrlBK, pid_t *pPidAuth) {
|
||||
INT32 ComLen = 0;
|
||||
INT32 idx = 0;
|
||||
|
||||
for (idx = 0; idx < pCtrlBK->IfNameWlanCount; idx++) {
|
||||
ComLen = sizeof(INT32);
|
||||
IAPP_IOCTL_TO_WLAN(pCtrlBK, RT_IOCTL_IAPP, pPidAuth, &ComLen, idx,
|
||||
RT_SET_IAPP_PID | OID_GET_SET_TOGGLE);
|
||||
#ifdef FT_KDP_KEY_FROM_DAEMON
|
||||
ComLen = strlen(pCtrlBK->CommonKey);
|
||||
IAPP_IOCTL_TO_WLAN(pCtrlBK, RT_IOCTL_IAPP, pCtrlBK->CommonKey, &ComLen, idx,
|
||||
RT_FT_KEY_SET | OID_GET_SET_TOGGLE);
|
||||
#endif /* FT_KDP_KEY_FROM_DAEMON */
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
VOID mt_iapp_ft_client_table_init(RTMP_IAPP *pCtrlBK) {
|
||||
INT i;
|
||||
NdisZeroMemory(&pCtrlBK->SelfFtStaTable, sizeof(pCtrlBK->SelfFtStaTable));
|
||||
for (i = 0; i < HASH_TABLE_SIZE; i++)
|
||||
pCtrlBK->SelfFtStaTable.hash[i] = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
FT_CLIENT_INFO *mt_iapp_ft_client_look_up(FT_CLIENT_TABLE *pFtTable,
|
||||
UCHAR *pAddr) {
|
||||
ULONG HashIdx;
|
||||
FT_CLIENT_INFO *ft_entry = NULL;
|
||||
|
||||
HashIdx = MAC_ADDR_HASH_INDEX(pAddr);
|
||||
ft_entry = pFtTable->hash[HashIdx];
|
||||
|
||||
while (ft_entry) {
|
||||
if (NdisCompareMemory(ft_entry->sta_mac, pAddr, ETH_ALEN) == 0)
|
||||
break;
|
||||
else
|
||||
ft_entry = ft_entry->next;
|
||||
}
|
||||
|
||||
return ft_entry;
|
||||
}
|
||||
|
||||
FT_CLIENT_INFO *mt_iapp_ft_client_insert(FT_CLIENT_TABLE *pFtTable,
|
||||
UCHAR *pStaAddr, UCHAR *pApAddr,
|
||||
INT32 ApIfIdx) {
|
||||
UCHAR HashIdx;
|
||||
INT idx = 0;
|
||||
FT_CLIENT_INFO *ft_entry = NULL;
|
||||
FT_CLIENT_INFO *current_ft_entry = NULL;
|
||||
|
||||
ft_entry = mt_iapp_ft_client_look_up(pFtTable, pStaAddr);
|
||||
if (ft_entry) {
|
||||
/* Update information */
|
||||
if (pApAddr)
|
||||
NdisCopyMemory(ft_entry->ap_mac, pApAddr, ETH_ALEN);
|
||||
ft_entry->if_idx = ApIfIdx;
|
||||
ft_entry->used = 1;
|
||||
return ft_entry;
|
||||
}
|
||||
|
||||
if (pFtTable->ft_sta_table_size >= MAX_NUM_OF_CLIENT) {
|
||||
DBGPRINT(RT_DEBUG_ERROR,
|
||||
("iapp> %s - FT client table is full. (FtStaTableSize=%d)\n",
|
||||
__FUNCTION__, pFtTable->ft_sta_table_size));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (idx = 0; idx < MAX_NUM_OF_CLIENT; idx++) {
|
||||
ft_entry = &pFtTable->ft_sta_info[idx];
|
||||
if (ft_entry->used)
|
||||
continue;
|
||||
if (pStaAddr)
|
||||
NdisCopyMemory(ft_entry->sta_mac, pStaAddr, ETH_ALEN);
|
||||
if (pApAddr)
|
||||
NdisCopyMemory(ft_entry->ap_mac, pApAddr, ETH_ALEN);
|
||||
ft_entry->if_idx = ApIfIdx;
|
||||
ft_entry->used = 1;
|
||||
break;
|
||||
}
|
||||
pFtTable->ft_sta_table_size++;
|
||||
|
||||
HashIdx = MAC_ADDR_HASH_INDEX(pStaAddr);
|
||||
ft_entry->hash_idx = HashIdx;
|
||||
if (pFtTable->hash[HashIdx] == NULL)
|
||||
pFtTable->hash[HashIdx] = ft_entry;
|
||||
else {
|
||||
current_ft_entry = pFtTable->hash[HashIdx];
|
||||
while (current_ft_entry->next != NULL)
|
||||
current_ft_entry = current_ft_entry->next;
|
||||
current_ft_entry->next = ft_entry;
|
||||
}
|
||||
return ft_entry;
|
||||
}
|
||||
|
||||
VOID mt_iapp_ft_client_delete(FT_CLIENT_TABLE *pFtTable, UCHAR *pStaAddr) {
|
||||
UCHAR HashIdx = 0xFF;
|
||||
FT_CLIENT_INFO *ft_entry = NULL;
|
||||
FT_CLIENT_INFO *hash_ft_entry = NULL;
|
||||
FT_CLIENT_INFO *pre_hash_ft_entry = NULL;
|
||||
|
||||
ft_entry = mt_iapp_ft_client_look_up(pFtTable, pStaAddr);
|
||||
|
||||
if (ft_entry == NULL) {
|
||||
DBGPRINT(
|
||||
RT_DEBUG_TRACE,
|
||||
("iapp> %s - cannot find this entry (%02x:%02x:%02x:%02x:%02x:%02x)\n",
|
||||
__FUNCTION__, pStaAddr[0], pStaAddr[1], pStaAddr[2], pStaAddr[3],
|
||||
pStaAddr[4], pStaAddr[5]));
|
||||
return;
|
||||
}
|
||||
|
||||
ft_entry->used = 0;
|
||||
NdisZeroMemory(ft_entry->ap_mac, ETH_ALEN);
|
||||
NdisZeroMemory(ft_entry->sta_mac, ETH_ALEN);
|
||||
ft_entry->if_idx = -1;
|
||||
|
||||
HashIdx = ft_entry->hash_idx;
|
||||
hash_ft_entry = pFtTable->hash[HashIdx];
|
||||
pre_hash_ft_entry = NULL;
|
||||
if (hash_ft_entry != NULL) {
|
||||
/* update Hash list*/
|
||||
do {
|
||||
if (hash_ft_entry == ft_entry) {
|
||||
if (pre_hash_ft_entry == NULL)
|
||||
pFtTable->hash[HashIdx] = ft_entry->next;
|
||||
else
|
||||
pre_hash_ft_entry->next = ft_entry->next;
|
||||
break;
|
||||
}
|
||||
|
||||
pre_hash_ft_entry = hash_ft_entry;
|
||||
hash_ft_entry = hash_ft_entry->next;
|
||||
} while (hash_ft_entry);
|
||||
}
|
||||
pFtTable->ft_sta_table_size--;
|
||||
}
|
||||
|
||||
INT32 mt_iapp_find_ifidx_by_sta_mac(FT_CLIENT_TABLE *pFtTable, UCHAR *pStaMAC) {
|
||||
FT_CLIENT_INFO *ft_entry = NULL;
|
||||
ft_entry = mt_iapp_ft_client_look_up(pFtTable, pStaMAC);
|
||||
if (ft_entry)
|
||||
return ft_entry->if_idx;
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
/* End of mt_iapp_util.c */
|
||||
187
package/kernel/mt-drivers/mtkiappd/src/rt_config.h
Normal file
187
package/kernel/mt-drivers/mtkiappd/src/rt_config.h
Normal file
@ -0,0 +1,187 @@
|
||||
/****************************************************************************
|
||||
* Ralink Tech Inc.
|
||||
* Taiwan, R.O.C.
|
||||
*
|
||||
* (c) Copyright 2002, Ralink Technology, Inc.
|
||||
*
|
||||
* All rights reserved. Ralink's source code is an unpublished work and the
|
||||
* use of a copyright notice does not imply otherwise. This source code
|
||||
* contains confidential trade secret material of Ralink Tech. Any attemp
|
||||
* or participation in deciphering, decoding, reverse engineering or in any
|
||||
* way altering the source code is stricitly prohibited, unless the prior
|
||||
* written consent of Ralink Technology, Inc. is obtained.
|
||||
***************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Abstract:
|
||||
|
||||
All related IEEE802.11f IAPP + IEEE802.11r IAPP extension.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __RT_CONFIG_H__
|
||||
#define __RT_CONFIG_H__
|
||||
|
||||
/* Include Kernel file */
|
||||
#include <arpa/inet.h>
|
||||
#include <fcntl.h>
|
||||
#include <linux/if.h>
|
||||
#include <linux/if_packet.h>
|
||||
#include <linux/wireless.h>
|
||||
#include <net/if_arp.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/if_ether.h>
|
||||
#include <netinet/in.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/msg.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "rt_typedef.h"
|
||||
|
||||
/* Definition of OID to RALINK AP driver */
|
||||
#define OID_GET_SET_TOGGLE 0x8000
|
||||
#define RT_QUERY_SIGNAL_CONTEXT 0x0402
|
||||
#define RT_SET_IAPP_PID 0x0404
|
||||
#define RT_SET_APD_PID 0x0405
|
||||
#define RT_SET_DEL_MAC_ENTRY 0x0406
|
||||
#define RT_QUERY_EVENT_TABLE 0x0407
|
||||
|
||||
#define RT_SET_FT_STATION_NOTIFY 0x0408
|
||||
#define RT_SET_FT_KEY_REQ 0x0409
|
||||
#define RT_SET_FT_KEY_RSP 0x040a
|
||||
|
||||
#define RT_FT_KEY_SET 0x040b
|
||||
#define RT_FT_DATA_ENCRYPT 0x040c
|
||||
#define RT_FT_DATA_DECRYPT 0x040d
|
||||
#define RT_FT_NEIGHBOR_REPORT 0x040e
|
||||
#define RT_FT_NEIGHBOR_REQUEST 0x040f
|
||||
#define RT_FT_NEIGHBOR_RESPONSE 0x0410
|
||||
#define RT_FT_ACTION_FORWARD 0x0411
|
||||
|
||||
/* File path */
|
||||
// #define MSG_FILE "/etc/wireless/mt7615/mtkiappd.dat"
|
||||
#define EVENT_LOG_FILE "/var/log/mtkiappd.log"
|
||||
|
||||
/* ReDefinition */
|
||||
#define NdisZeroMemory(__Dst, __Len) memset(__Dst, 0, __Len)
|
||||
#define NdisFillMemory(__Dst, __Len, __Val) memset(__Dst, __Val, __Len)
|
||||
#define NdisMoveMemory(__Dst, __Src, __Len) memmove(__Dst, __Src, __Len)
|
||||
#define NdisCopyMemory(__Dst, __Src, __Len) memcpy(__Dst, __Src, __Len)
|
||||
#define NdisCompareMemory(__Dst, __Src, __Len) memcmp(__Dst, __Src, __Len)
|
||||
|
||||
VOID os_alloc_mem(UCHAR *pAd, UCHAR **ppMem, UINT32 Size);
|
||||
VOID os_free_mem(UCHAR *pAd, VOID *pMem);
|
||||
|
||||
/* Debug flag */
|
||||
#define RT_DEBUG_OFF 0
|
||||
#define RT_DEBUG_ERROR 1
|
||||
#define RT_DEBUG_WARN 2
|
||||
#define RT_DEBUG_TRACE 3
|
||||
#define RT_DEBUG_INFO 4
|
||||
|
||||
#define NIC_DBG_STRING (" ")
|
||||
|
||||
#ifdef DBG
|
||||
#define DBGPRINT(Level, Fmt) \
|
||||
{ \
|
||||
if (Level <= RTDebugLevel) { \
|
||||
printf Fmt; \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
|
||||
/* no debug information */
|
||||
#define DBGPRINT(Level, Fmt)
|
||||
#endif
|
||||
|
||||
#define MAX_NUM_OF_EVENT 30 /* entry # in EVENT table */
|
||||
|
||||
typedef struct _RT_802_11_EVENT_LOG {
|
||||
|
||||
ULONG SystemTime; /* timestammp (jiffies) */
|
||||
UCHAR TriggerAddr[ETH_ALEN];
|
||||
UCHAR DetectorAddr[ETH_ALEN];
|
||||
UINT16 Event; /* EVENT_xxx */
|
||||
} RT_802_11_EVENT_LOG, *PRT_802_11_EVENT_LOG;
|
||||
|
||||
typedef struct _RT_802_11_EVENT_TABLE {
|
||||
|
||||
ULONG Num;
|
||||
RT_802_11_EVENT_LOG Log[MAX_NUM_OF_EVENT];
|
||||
} RT_802_11_EVENT_TABLE, *PRT_802_11_EVENT_TABLE;
|
||||
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
typedef struct PACKED _FT_KDP_EVT_HEADER {
|
||||
|
||||
UINT32 EventLen;
|
||||
UINT32 PeerIpAddr;
|
||||
|
||||
} FT_KDP_EVT_HEADER;
|
||||
|
||||
typedef struct PACKED _RT_SIGNAL_STRUC {
|
||||
|
||||
VOID *pNext; /* point to next signal */
|
||||
|
||||
UINT16 Sequence;
|
||||
UCHAR MacAddr[ETH_ALEN];
|
||||
UCHAR CurrAPAddr[ETH_ALEN];
|
||||
|
||||
#define FT_KDP_SIG_NOTHING 0x00 /* no signal */
|
||||
#define FT_KDP_SIG_IAPP_ASSOCIATION 0x01 /* A station has associated */
|
||||
#define FT_KDP_SIG_IAPP_REASSOCIATION 0x02 /* A station has re-associated */
|
||||
#define FT_KDP_SIG_TERMINATE 0x03 /* terminate the daemon */
|
||||
|
||||
#define FT_KDP_SIG_FT_ASSOCIATION 0x50 /* A FT station has associated */
|
||||
#define FT_KDP_SIG_FT_REASSOCIATION 0x51 /* A FT station has re-associated */
|
||||
#define FT_KDP_SIG_KEY_TIMEOUT 0x52 /* PMK-R1 KEY Timeout */
|
||||
#define FT_KDP_SIG_KEY_REQ 0x53 /* Request PMK-R1 KEY from R0KH */
|
||||
#define FT_KDP_SIG_ACTION 0x54 /* Forward FT Action frame to DS */
|
||||
|
||||
#define FT_KDP_SIG_AP_INFO_REQ 0x70 /* request neighbor AP info. */
|
||||
#define FT_KDP_SIG_AP_INFO_RSP 0x71 /* response my AP info. */
|
||||
|
||||
/* FT KDP internal use */
|
||||
#define FT_KDP_SIG_KEY_REQ_AUTO 0xA0 /* Request PMK-R1 KEY from R0KH */
|
||||
#define FT_KDP_SIG_KEY_RSP_AUTO 0xA1 /* Response PMK-R1 KEY to R1KH */
|
||||
#define FT_KDP_SIG_INFO_BROADCAST 0xB0 /* broadcast our AP information */
|
||||
|
||||
#define FT_KSP_SIG_DEBUG_TRACE 0xC0 /* enable debug flag to TRACE */
|
||||
UCHAR Sig;
|
||||
|
||||
UCHAR MacAddrSa[ETH_ALEN];
|
||||
|
||||
/* IEEE80211R_SUPPORT */
|
||||
/* the first 6B are FT_KDP_EVT_HEADER */
|
||||
/*
|
||||
For FT_KDP_SIG_NOTHING: nothing
|
||||
For FT_KDP_SIG_IAPP_ASSOCIATION:nothing
|
||||
For FT_KDP_SIG_REASSOCIATION: nothing
|
||||
For FT_KDP_SIG_TERMINATE: nothing
|
||||
For FT_KDP_SIG_FT_ASSOCIATION: nothing
|
||||
FT_KDP_SIG_FT_REASSOCIATION: nothing
|
||||
For FT_KDP_SIG_KEY_TIMEOUT: it is
|
||||
For FT_KDP_SIG_KEY_REQ_AUTO: it is FT_KDP_EVT_KEY_REQ
|
||||
For FT_KDP_SIG_KEY_RSP_AUTO: it is FT_KDP_SIG_KEY_RSP
|
||||
*/
|
||||
UCHAR Reserved[3]; /* let Content address four-byte align */
|
||||
UCHAR Content[1024]; /* signal content */
|
||||
|
||||
#define RT_SIGNAL_STRUC_HDR_SIZE (sizeof(RT_SIGNAL_STRUC) - 1024)
|
||||
} RT_SIGNAL_STRUC, *PRT_SIGNAL_STRUC;
|
||||
|
||||
static INT32 RTDebugLevel = RT_DEBUG_ERROR;
|
||||
|
||||
#endif /* __RT_CONFIG_H__ */
|
||||
|
||||
/* End of rt_config.h */
|
||||
22
package/kernel/mt-drivers/mtkiappd/src/rt_typedef.h
Normal file
22
package/kernel/mt-drivers/mtkiappd/src/rt_typedef.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef __RT_TYPEDEF_H__
|
||||
#define __RT_TYPEDEF_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum _BOOLEAN { FALSE = 0, TRUE = 1 } BOOLEAN;
|
||||
|
||||
typedef char CHAR;
|
||||
typedef int INT;
|
||||
|
||||
typedef int INT32;
|
||||
typedef int16_t INT16;
|
||||
typedef uint8_t UCHAR;
|
||||
typedef uint16_t UINT16;
|
||||
typedef uint32_t UINT;
|
||||
typedef uint32_t ULONG;
|
||||
typedef uint32_t UINT32;
|
||||
|
||||
typedef void VOID;
|
||||
typedef void *PVOID;
|
||||
|
||||
#endif
|
||||
3946
package/kernel/mt-drivers/mtkiappd/src/rtmpiapp.c
Normal file
3946
package/kernel/mt-drivers/mtkiappd/src/rtmpiapp.c
Normal file
File diff suppressed because it is too large
Load Diff
580
package/kernel/mt-drivers/mtkiappd/src/rtmpiapp.h
Normal file
580
package/kernel/mt-drivers/mtkiappd/src/rtmpiapp.h
Normal file
@ -0,0 +1,580 @@
|
||||
/****************************************************************************
|
||||
* Ralink Tech Inc.
|
||||
* Taiwan, R.O.C.
|
||||
*
|
||||
* (c) Copyright 2002, Ralink Technology, Inc.
|
||||
*
|
||||
* All rights reserved. Ralink's source code is an unpublished work and the
|
||||
* use of a copyright notice does not imply otherwise. This source code
|
||||
* contains confidential trade secret material of Ralink Tech. Any attemp
|
||||
* or participation in deciphering, decoding, reverse engineering or in any
|
||||
* way altering the source code is stricitly prohibited, unless the prior
|
||||
* written consent of Ralink Technology, Inc. is obtained.
|
||||
***************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Abstract:
|
||||
|
||||
All related IEEE802.11f IAPP + IEEE802.11r IAPP extension.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef __RTMP_IAPP_H__
|
||||
#define __RTMP_IAPP_H__
|
||||
|
||||
#include "rt_config.h"
|
||||
#include "rt_typedef.h"
|
||||
|
||||
#define IAPP_OS_LINUX
|
||||
//#define IAPP_OS_VXWORKS
|
||||
|
||||
/*
|
||||
IAPP issues:
|
||||
|
||||
1. Lack of fast roaming support, particularly required for voice;
|
||||
2. Only supports use of RADIUS (in a non-standard way);
|
||||
*/
|
||||
|
||||
/*
|
||||
Three levels of support for ESS formation are possible with the IAPP
|
||||
capabilities described here:
|
||||
|
||||
Level 1: no administrative or security support;
|
||||
Level 2: support for dynamic mapping of BSSID to IP addresses; and
|
||||
Level 3: support for encryption and authentication of IAPP messages.
|
||||
|
||||
Level 1 support can be achieved by configuring each AP in the ESS with
|
||||
the BSSID to IP address mapping for all other APs in the ESS. This may
|
||||
be acceptable for a small ESS.
|
||||
|
||||
Many ESS providers will need levels 2 or 3, which require RADIUS
|
||||
support.
|
||||
*/
|
||||
|
||||
/*
|
||||
Note with RALINK driver:
|
||||
|
||||
1. OID to RALINK AP driver;
|
||||
2. RT_SIGNAL_STRUC
|
||||
3. IAPP daemon must be run after br-lan & ra0 built up.
|
||||
*/
|
||||
|
||||
/* ---------------------------- User Definition ------------------------ */
|
||||
|
||||
#define FT_KDP_FUNC_SOCK_COMM /* use socket to communicate with driver */
|
||||
#define FT_KDP_FUNC_PKT_ENCRYPT /* do encryption for each IAPP packet */
|
||||
#define FT_KDP_SELECT_TIMEOUT /* use timeout to wait for any packet */
|
||||
#define FT_KDP_KEY_FROM_DAEMON /* key is set in daemon */
|
||||
#define FT_KDP_DEFAULT_IF_ETH "br-lan"
|
||||
#define FT_KDP_DEFAULT_IF_WLAN \
|
||||
"br-lan" /* used to receive command from WLAN \
|
||||
*/
|
||||
#define FT_KDP_DEFAULT_IF_WLAN_IOCTL "ra0" /* ioctl command to WLAN */
|
||||
|
||||
/*
|
||||
Inter-AP communications present opportunities to an attacker.
|
||||
The attacker can use IAPP or forged 802.11 MAC management frames as a
|
||||
Denial-of-Service (DoS) attack against a STA state in its AP.
|
||||
It can capture MOVE packets to gather information on the STA that is
|
||||
roaming. It can act as a rogue AP in the ESS.
|
||||
|
||||
If use RADIUS server, the IAPP entity sends the RADIUS Initiate-Request
|
||||
and receives the RADIUS Initiate-Accept or Initiate-Reject.
|
||||
If the Initiate-Accept is received, then the IAPP entity initializes
|
||||
its data structures, functions, and protocols. If an Initiate-Reject
|
||||
is received, the IAPP does not start.
|
||||
|
||||
The RADIUS servers provide two functions, mapping the BSSID of an AP to
|
||||
its IP address on the DSM and distribution of keys to the APs to allow
|
||||
the encryption of the communications between the APs.
|
||||
|
||||
The function of mapping the BSSID of an AP to its IP address on the DSM
|
||||
can also be accomplished by local configuration information or the IETF
|
||||
Inverse Address Resolution Protocol (RFC 2390:1998).
|
||||
|
||||
We don't support RADIUS server so we use a fixed PSK key to encrypt.
|
||||
*/
|
||||
#define FT_KDP_DEFAULT_PTK "zpxrjs9uo2kvbuqo"
|
||||
|
||||
#ifdef IAPP_OS_LINUX
|
||||
#define RT_IOCTL_IAPP (SIOCIWFIRSTPRIV + 0x01)
|
||||
#endif // IAPP_OS_LINUX //
|
||||
|
||||
#ifdef IAPP_OS_VXWORKS
|
||||
#define PF_PACKET AF_INET
|
||||
#define RT_IOCTL_IAPP VX_RT_PRIV_IOCTL
|
||||
#define FT_KDP_WLAN_NAME "ra"
|
||||
#define FT_KDP_WLAN_UNIT 0
|
||||
#define FT_KDP_ETH_NAME "eth" /* must not use mirror */
|
||||
#define FT_KDP_BR_ETH_IF_NUM 2 /* eth0 and eth1 */
|
||||
#define FT_KDP_BR_NAME "mirror"
|
||||
#define FT_KDP_BR_UNIT 0
|
||||
#endif // IAPP_OS_VXWORKS //
|
||||
|
||||
#define HASH_TABLE_SIZE 128
|
||||
#define MAX_NUM_OF_CLIENT 64
|
||||
|
||||
#define MAC_ADDR_HASH(Addr) \
|
||||
(Addr[0] ^ Addr[1] ^ Addr[2] ^ Addr[3] ^ Addr[4] ^ Addr[5])
|
||||
#define MAC_ADDR_HASH_INDEX(Addr) (MAC_ADDR_HASH(Addr) & (HASH_TABLE_SIZE - 1))
|
||||
|
||||
/* ---------------------------- MACRO Definition ---------------------------- */
|
||||
#define IAPP_LITTLE_ENDIAN /* __BIG_ENDIAN */
|
||||
|
||||
#ifdef IAPP_LITTLE_ENDIAN
|
||||
#define SWAP_16(x) \
|
||||
((UINT16)((((UINT16)(x) & (UINT16)0x00ffU) << 8) | \
|
||||
(((UINT16)(x) & (UINT16)0xff00U) >> 8)))
|
||||
#else
|
||||
|
||||
#define SWAP_16(x) x
|
||||
#endif
|
||||
|
||||
/* 16 for extra 8B encryption & 8B-align */
|
||||
#define IAPP_PKT_ALLOCATE(__pPkt, __Len) \
|
||||
IAPP_MEM_ALLOC(__pPkt, __Len + IAPP_SECURITY_EXTEND_LEN)
|
||||
#define IAPP_PKT_ZERO(__pPkt, __Len) \
|
||||
IAPP_MEM_ZERO(__pPkt, __Len + IAPP_SECURITY_EXTEND_LEN)
|
||||
|
||||
#define IAPP_MEM_ALLOC(__pMem, __Size) \
|
||||
{ \
|
||||
os_alloc_mem(NULL, (UCHAR **)(&__pMem), __Size); \
|
||||
IAPP_MemAllocNum++; \
|
||||
}
|
||||
#define IAPP_MEM_FREE(__Mem) \
|
||||
{ \
|
||||
os_free_mem(NULL, __Mem); \
|
||||
IAPP_MemFreeNum++; \
|
||||
}
|
||||
|
||||
/* calculate the size to the multiple of 8 */
|
||||
#define IAPP_ENCRYPTED_DATA_SIZE_CAL(__LenOfAction) \
|
||||
if ((__LenOfAction)&0x07) \
|
||||
(__LenOfAction) += 8 - ((__LenOfAction)&0x07); \
|
||||
__LenOfAction += 8;
|
||||
|
||||
#define IAPP_MEM_ZERO(__Dst, __Len) NdisZeroMemory(__Dst, __Len)
|
||||
#define IAPP_MEM_FILL(__Dst, __Val, __Len) NdisFillMemory(__Dst, __Len, __Val)
|
||||
#define IAPP_MEM_MOVE(__Dst, __Src, __Len) NdisMoveMemory(__Dst, __Src, __Len)
|
||||
|
||||
#define IAPP_HEX_DUMP(__pPrompt, __pBuf, __Len) \
|
||||
IAPP_HexDump((CHAR *)__pPrompt, (CHAR *)__pBuf, __Len)
|
||||
|
||||
#define IAPP_IOCTL_TO_WLAN(__pCtrlBK, __Param, __pData, __pLen, __ApIdx, \
|
||||
__Flags) \
|
||||
{ \
|
||||
IAPP_IoctlToWLAN(__pCtrlBK, __Param, (CHAR *)(__pData), (INT32 *)(__pLen), \
|
||||
__ApIdx, __Flags); \
|
||||
}
|
||||
|
||||
/* ---------------------------- Structure Definition ------------------------ */
|
||||
|
||||
/*
|
||||
IAPP supports three protocol sequences.
|
||||
|
||||
One is initiated by invoking the IAPP-ADD.request after the APME
|
||||
receives an MLME-ASSOCIATE.indication.
|
||||
|
||||
The second is initiated by invoking the IAPPMOVE.request after the APME
|
||||
receives an MLME-REASSOCIATE.indication.
|
||||
|
||||
The third is initiated by invoking the IAPP-CACHE.request to cache
|
||||
context in neighboring APs to facilitate fast roaming.
|
||||
*/
|
||||
|
||||
/* event log */
|
||||
#define FT_IP_ADDRESS_SIZE 4
|
||||
|
||||
/* IAPP header in the frame body, 6B */
|
||||
typedef struct PACKED _RT_IAPP_HEADER {
|
||||
|
||||
UCHAR Version; /* indicates the protocol version of the IAPP */
|
||||
UCHAR Command; /* ADD-notify, MOVE-notify, etc. */
|
||||
UINT16 Identifier; /* aids in matching requests and responses */
|
||||
UINT16 Length; /* indicates the length of the entire packet */
|
||||
} RT_IAPP_HEADER;
|
||||
|
||||
/* IAPP Action Frame */
|
||||
/* ADD notify frame */
|
||||
typedef struct PACKED _RT_IAPP_ADD_NOTIFY {
|
||||
|
||||
RT_IAPP_HEADER IappHeader;
|
||||
|
||||
/* the number of octets in the MAC Address */
|
||||
UCHAR AddressLen;
|
||||
|
||||
/* should be sent with a value of zero */
|
||||
#define FT_KDP_ADD_NOTIFY_RSVD_11R_SUPPORT 0x01
|
||||
UCHAR Rsvd;
|
||||
|
||||
/* the MAC address of the STA that has associated */
|
||||
UCHAR MacAddr[ETH_ALEN];
|
||||
|
||||
/* the integer value of the sequence number of the association request frame
|
||||
*/
|
||||
/*
|
||||
The 802.11 sequence number may be an ambiguous indication of the most
|
||||
recent association. But, this information may be useful to an
|
||||
algorithm making a determination of the location of the most recent
|
||||
association of a STA.
|
||||
*/
|
||||
UINT16 Sequence;
|
||||
|
||||
} RT_IAPP_ADD_NOTIFY;
|
||||
|
||||
/* MOVE requset frame */
|
||||
typedef struct PACKED _RT_IAPP_MOVE_NOTIFY {
|
||||
|
||||
RT_IAPP_HEADER IappHeader;
|
||||
|
||||
/* the number of octets in the MAC Address */
|
||||
UCHAR AddressLen;
|
||||
|
||||
/* should be sent with a value of zero */
|
||||
UCHAR Rsvd;
|
||||
|
||||
/* the MAC address of the STA that has associated */
|
||||
UCHAR MacAddr[ETH_ALEN];
|
||||
|
||||
/* the integer value of the sequence number of the association request frame
|
||||
*/
|
||||
UINT16 Sequence;
|
||||
|
||||
/* indicates the number of octets in the Context Block field, always 0 */
|
||||
UINT16 LenOfContextBlock;
|
||||
|
||||
} RT_IAPP_MOVE_NOTIFY;
|
||||
|
||||
/* MOVE response frame */
|
||||
typedef struct PACKED _RT_IAPP_MOVE_RSP {
|
||||
|
||||
RT_IAPP_HEADER IappHeader;
|
||||
|
||||
/* the number of octets in the MAC Address */
|
||||
UCHAR AddressLen;
|
||||
|
||||
#define IAPP_MOVE_RSP_STATUS_SUCCESS 0
|
||||
#define IAPP_MOVE_RSP_STATUS_DENY 1
|
||||
#define IAPP_MOVE_RSP_STATUS_STALE 2
|
||||
/* 0 Successful, 1 Move denied, 2 Stale move */
|
||||
/*
|
||||
FAIL indicates that a RADIUS Access-Reject was received in response
|
||||
to the RADIUS Access-Request sent to the RADUS server to look up the
|
||||
IP address of the Old AP. (not use the IP in the MOVE-notify frame)
|
||||
*/
|
||||
UCHAR Status;
|
||||
|
||||
/* the MAC address of the STA that has associated */
|
||||
UCHAR MacAddr[ETH_ALEN];
|
||||
|
||||
/* the integer value of the sequence number of the association request frame
|
||||
*/
|
||||
UINT16 Sequence;
|
||||
|
||||
/* indicates the number of octets in the Context Block field, always 0 */
|
||||
UINT16 LenOfContextBlock;
|
||||
|
||||
} RT_IAPP_MOVE_RSP;
|
||||
|
||||
/* SEND-SECURITY-BLOCK frame */
|
||||
typedef struct PACKED _RT_IAPP_SEND_SECURITY_BLOCK {
|
||||
|
||||
RT_IAPP_HEADER IappHeader;
|
||||
|
||||
/* first 8 bytes of the ACK nonce */
|
||||
#define IAPP_SB_INIT_VEC_SIZE 8
|
||||
UCHAR InitVec[8];
|
||||
|
||||
/* indicates the number of octets in the Security Block field */
|
||||
UINT16 Length;
|
||||
|
||||
/*
|
||||
Contains the security information being forwarded from the
|
||||
RADIUS Server through the new AP to the old AP.
|
||||
*/
|
||||
UCHAR SB[0];
|
||||
|
||||
} RT_IAPP_SEND_SECURITY_BLOCK;
|
||||
|
||||
/* no use */
|
||||
typedef struct PACKED _RT_IAPP_ACK_SECURITY_BLOCK {
|
||||
|
||||
RT_IAPP_HEADER IappHeader;
|
||||
|
||||
/* copied from the Date/Time stamp */
|
||||
UCHAR InitVec[8];
|
||||
|
||||
/*
|
||||
Content of the New-AP-ACK-Authenticator information element that
|
||||
the old AP received in the Security Block.
|
||||
*/
|
||||
UCHAR NewApAckAuth[48];
|
||||
|
||||
} RT_IAPP_ACK_SECURITY_BLOCK;
|
||||
|
||||
/* private frame */
|
||||
typedef struct PACKED _RT_IAPP_INFORMATION {
|
||||
|
||||
#define IAPP_INFO_TYPE_BC 0
|
||||
#define IAPP_INFO_TYPE_REQ 1
|
||||
#define IAPP_INFO_TYPE_RSP 2
|
||||
#define IAPP_INFO_TYPE_MAX_NUM 3
|
||||
|
||||
RT_IAPP_HEADER IappHeader;
|
||||
|
||||
/* indicates the number of octets in the Information Block field */
|
||||
UINT16 Length;
|
||||
|
||||
/* contains the AP information being forwarded */
|
||||
UCHAR IB[0];
|
||||
|
||||
} RT_IAPP_INFORMATION;
|
||||
|
||||
typedef struct PACKED _RT_IAPP_SECURITY_MONITOR {
|
||||
|
||||
RT_IAPP_HEADER IappHeader;
|
||||
RT_802_11_EVENT_TABLE EvtTab;
|
||||
} RT_IAPP_SECURITY_MONITOR, *PRT_IAPP_SECURITY_MONITOR;
|
||||
|
||||
/* Event structure between daemon and driver */
|
||||
#define FT_KDP_EVT_HEADER_SIZE sizeof(FT_KDP_EVT_HEADER)
|
||||
|
||||
typedef struct _OID_REQ {
|
||||
|
||||
INT32 OID;
|
||||
INT32 Len;
|
||||
CHAR Buf[0];
|
||||
} OID_REQ, *POID_REQ;
|
||||
|
||||
typedef struct _MSG_BUF {
|
||||
|
||||
INT32 MsgType;
|
||||
INT32 MsgSubType;
|
||||
CHAR Buf[1024];
|
||||
} MSG_BUF, *PMSG_BUF;
|
||||
|
||||
/* Layer 2 Update frame to switch/bridge */
|
||||
typedef struct PACKED _FT_ETH_HEADER {
|
||||
|
||||
UCHAR DA[ETH_ALEN];
|
||||
UCHAR SA[ETH_ALEN];
|
||||
UINT16 Len;
|
||||
|
||||
} FT_ETH_HEADER;
|
||||
|
||||
/* For any Layer2 devices, e.g., bridges, switches and other APs, the frame
|
||||
can update their forwarding tables with the correct port to reach the new
|
||||
location of the STA */
|
||||
typedef struct PACKED _RT_IAPP_L2_UPDATE_FRAME {
|
||||
|
||||
FT_ETH_HEADER ETH;
|
||||
UCHAR DSAP; /* must be NULL */
|
||||
UCHAR SSAP; /* must be NULL */
|
||||
UCHAR Control; /* reference to IEEE Std 802.2 */
|
||||
UCHAR XIDInfo[3]; /* reference to IEEE Std 802.2 */
|
||||
} RT_IAPP_L2_UPDATE_FRAME, *PRT_IAPP_L2_UPDATE_FRAME;
|
||||
|
||||
/* RRB protocol */
|
||||
typedef struct PACKED _FT_RRB_FRAME {
|
||||
/* ethernet header */
|
||||
FT_ETH_HEADER ETH;
|
||||
|
||||
/* shall be set to 1 */
|
||||
#define FT_RRB_FRAME_TYPE 1
|
||||
UCHAR RemoteFrameType;
|
||||
|
||||
/* 0 for Remote Request, and to 1 for Remote Response */
|
||||
UCHAR FTPacketType;
|
||||
|
||||
/* the length in octets of the FT Action Frame field */
|
||||
UINT16 FTActionLength;
|
||||
|
||||
/* the BSSID of the current AP */
|
||||
UCHAR ApAddress[ETH_ALEN];
|
||||
|
||||
/*
|
||||
The contents of the FT Action frame, from the Category field to the
|
||||
end of the Action Frame body.
|
||||
*/
|
||||
#define FT_RRB_HEADER_SIZE (sizeof(FT_RRB_FRAME))
|
||||
UCHAR FTActionFrame[0];
|
||||
} FT_RRB_FRAME;
|
||||
|
||||
typedef struct _FT_CLIENT_INFO {
|
||||
struct _FT_CLIENT_INFO *next;
|
||||
INT if_idx;
|
||||
UCHAR sta_mac[ETH_ALEN];
|
||||
UCHAR ap_mac[ETH_ALEN];
|
||||
UCHAR used;
|
||||
UCHAR hash_idx;
|
||||
} FT_CLIENT_INFO;
|
||||
|
||||
typedef struct _FT_CLIENT_TABLE {
|
||||
FT_CLIENT_INFO *hash[HASH_TABLE_SIZE];
|
||||
FT_CLIENT_INFO ft_sta_info[MAX_NUM_OF_CLIENT];
|
||||
INT32 ft_sta_table_size;
|
||||
} FT_CLIENT_TABLE;
|
||||
|
||||
/* IAPP control block */
|
||||
#define IAPP_ENCRYPT_KEY_MAX_SIZE 64
|
||||
#define MAX_WIFI_COUNT 2
|
||||
typedef struct _RTMP_IAPP {
|
||||
|
||||
CHAR IfNameEth[IFNAMSIZ]; /* ethernet interface name */
|
||||
CHAR IfNameWlan[IFNAMSIZ]; /* wireless interface name */
|
||||
CHAR IfNameWlanIoctl[MAX_WIFI_COUNT][IFNAMSIZ]; /* wireless interface name */
|
||||
UCHAR IfNameWlanMAC[MAX_WIFI_COUNT][ETH_ALEN]; /* wireless interface name */
|
||||
INT32 IfNameWlanCount;
|
||||
|
||||
BOOLEAN FlgIsTerminated; /* if terminate IAPP daemon */
|
||||
|
||||
struct in_addr AddrOwn; /* IP address of ethernet interface */
|
||||
struct in_addr AddrNetmask; /* netmask of ethernet interface */
|
||||
struct in_addr AddrBroadcast; /* broadcast address of ethernet interface */
|
||||
|
||||
BOOLEAN FlgIsRcvRunning; /* if rcv handler is running */
|
||||
|
||||
INT32 SocketUdpSend; /* used to send/rcv IAPP multicast frame */
|
||||
INT32 SocketTcpRcv; /* used to rcv unicast frame from a peer */
|
||||
INT32 SocketRawBr; /* used to send bridge L2 frame */
|
||||
INT32 SocketIoctl; /* used to ioctl() to WLAN driver */
|
||||
INT32 SocketRawRRB; /* used in RRB RAW protocol */
|
||||
|
||||
#ifdef FT_KDP_FUNC_SOCK_COMM
|
||||
INT32 SocketRawDrv; /* used to receive message from driver */
|
||||
#endif // FT_KDP_FUNC_SOCK_COMM //
|
||||
|
||||
#ifndef FT_KDP_FUNC_SOCK_COMM
|
||||
#ifdef IAPP_OS_LINUX
|
||||
#define FT_KDP_PIPE_ID_READ 0
|
||||
#define FT_KDP_PIPE_ID_WRITE 1
|
||||
INT32 PipeRawDrv[2]; /* used to receive message from driver */
|
||||
#endif // IAPP_OS_LINUX //
|
||||
#endif // FT_KDP_FUNC_SOCK_COMM //
|
||||
|
||||
#ifdef IAPP_OS_VXWORKS
|
||||
VOID *pBcCookie[FT_KDP_BR_ETH_IF_NUM]; /* for bridge L2 frame */
|
||||
VOID *pDrvCookieTo; /* for ioctl to WLAN driver */
|
||||
VOID *pDrvCookieFrom; /* for ioctl from WLAN driver */
|
||||
VOID *pRrbCookieTo[FT_KDP_BR_ETH_IF_NUM]; /* used in RRB protocol */
|
||||
VOID *pRrbCookieFrom; /* for ioctl from WLAN driver */
|
||||
|
||||
#define IAPP_KDP_PIPE_DRV "/pipe/IAPP_Drv"
|
||||
#define IAPP_KDP_PIPE_ETH "/pipe/IAPP_Eth"
|
||||
#endif // IAPP_OS_VXWORKS //
|
||||
|
||||
#ifdef IAPP_EVENT_LOG
|
||||
INT32 MsgId;
|
||||
BOOLEAN FlgIsMsgReady;
|
||||
#endif // IAPP_EVENT_LOG //
|
||||
|
||||
pid_t PID; /* IAPP task PID */
|
||||
UINT16 PacketIdentifier; /* used in IAPP frame identifier */
|
||||
|
||||
#ifdef FT_KDP_FUNC_PKT_ENCRYPT
|
||||
/* common key, ASCII, the last byte must be 0x00 */
|
||||
CHAR CommonKey[IAPP_ENCRYPT_KEY_MAX_SIZE + 1];
|
||||
#endif // FT_KDP_FUNC_PKT_ENCRYPT //
|
||||
|
||||
FT_CLIENT_TABLE SelfFtStaTable;
|
||||
} RTMP_IAPP, *PRTMP_IAPP;
|
||||
|
||||
/* key information */
|
||||
#define FT_IP_ADDRESS_SIZE 4
|
||||
#define FT_NONCE_SIZE 8
|
||||
|
||||
#define FT_KDP_WPA_NAME_MAX_SIZE 16
|
||||
#define FT_KDP_R0KHID_MAX_SIZE 48
|
||||
#define FT_KDP_R1KHID_MAX_SIZE 6
|
||||
#define FT_KDP_S1KHID_MAX_SIZE 6
|
||||
#define FT_KDP_PMKR1_MAX_SIZE 32 /* 256-bit key */
|
||||
|
||||
#define FT_R1KH_ENTRY_TABLE_SIZE 64
|
||||
#define FT_R1KH_ENTRY_HASH_TABLE_SIZE FT_R1KH_ENTRY_TABLE_SIZE
|
||||
|
||||
typedef struct PACKED _FT_KDP_PMK_KEY_INFO {
|
||||
|
||||
UCHAR R0KHID[FT_KDP_R0KHID_MAX_SIZE];
|
||||
UCHAR R0KHIDLen;
|
||||
UCHAR PMKR0Name[FT_KDP_WPA_NAME_MAX_SIZE]; /* an ID that names the PMK-R0 */
|
||||
|
||||
UCHAR R1KHID[FT_KDP_R1KHID_MAX_SIZE];
|
||||
UCHAR S1KHID[FT_KDP_S1KHID_MAX_SIZE];
|
||||
|
||||
/* reserved field */
|
||||
UCHAR RSV[4];
|
||||
|
||||
} FT_KDP_PMK_KEY_INFO;
|
||||
|
||||
typedef struct PACKED _FT_KDP_EVT_KEY_ELM {
|
||||
/* must be 65535, Proprietary Information */
|
||||
#define FT_KDP_ELM_ID_PRI 65535
|
||||
UINT16 ElmId;
|
||||
|
||||
#define FT_KDP_ELM_PRI_LEN (sizeof(FT_KDP_EVT_KEY_ELM) - 4)
|
||||
UINT16 ElmLen;
|
||||
|
||||
/* must be 0x00 0x0E 0x2E, RALINK */
|
||||
#define FT_KDP_ELM_PRI_OUI_0 0x00
|
||||
#define FT_KDP_ELM_PRI_OUI_1 0x0E
|
||||
#define FT_KDP_ELM_PRI_OUI_2 0x2E
|
||||
#define FT_KDP_ELM_PRI_OUI_SIZE 3
|
||||
UCHAR OUI[3];
|
||||
|
||||
/* station MAC */
|
||||
UCHAR MacAddr[ETH_ALEN];
|
||||
UCHAR RSV[3];
|
||||
|
||||
/* used in request */
|
||||
FT_KDP_PMK_KEY_INFO KeyInfo;
|
||||
|
||||
/* used in response */
|
||||
UCHAR PMKR1Name[FT_KDP_WPA_NAME_MAX_SIZE]; /* an ID that names the PMK-R1 */
|
||||
UCHAR PMKR1[FT_KDP_PMKR1_MAX_SIZE]; /* PMK R1 Key */
|
||||
UCHAR R0KH_MAC[ETH_ALEN]; /* MAC of R0KH */
|
||||
|
||||
/*
|
||||
During a Fast BSS Transition a non-AP STA shall negotiate the same
|
||||
pairwise cipher suite with Target APs as was negotiated in the FT
|
||||
Initial Mobility Domain association. The target AP shall verify
|
||||
that the same pairwise cipher suite selector is used, using the
|
||||
pairwise cipher suite selector value in the PMK-R1 SA received from
|
||||
the R0KH.
|
||||
*/
|
||||
UCHAR PairwisChipher[4];
|
||||
UCHAR AkmSuite[4];
|
||||
|
||||
UINT32 KeyLifeTime;
|
||||
UINT32 ReassocDeadline;
|
||||
} FT_KDP_EVT_KEY_ELM;
|
||||
|
||||
/* ---------------------------- API Definition ------------------------ */
|
||||
|
||||
VOID IAPP_HexDump(CHAR *pPromptStr, CHAR *pSrcBufVA, UINT32 SrcBufLen);
|
||||
|
||||
BOOLEAN IAPP_IoctlToWLAN(RTMP_IAPP *pCtrlBK, INT32 Param, CHAR *pData,
|
||||
INT32 *pDataLen, UCHAR ApIdx, INT32 Flags);
|
||||
|
||||
BOOLEAN mt_iapp_get_wifi_iface_mac(RTMP_IAPP *pCtrlBK);
|
||||
|
||||
INT32 mt_iapp_find_ifidx_by_mac(RTMP_IAPP *pCtrlBK, UCHAR *WifiMAC);
|
||||
|
||||
VOID mt_iapp_set_daemon_information(RTMP_IAPP *pCtrlBK, pid_t *pPidAuth);
|
||||
|
||||
VOID mt_iapp_ft_client_table_init(RTMP_IAPP *pCtrlBK);
|
||||
|
||||
FT_CLIENT_INFO *mt_iapp_ft_client_look_up(FT_CLIENT_TABLE *pFtTable,
|
||||
UCHAR *pAddr);
|
||||
|
||||
FT_CLIENT_INFO *mt_iapp_ft_client_insert(FT_CLIENT_TABLE *pFtTable,
|
||||
UCHAR *pStaAddr, UCHAR *pApAddr,
|
||||
INT32 ApIfIdx);
|
||||
|
||||
VOID mt_iapp_ft_client_delete(FT_CLIENT_TABLE *pFtTable, UCHAR *pStaAddr);
|
||||
|
||||
INT32 mt_iapp_find_ifidx_by_sta_mac(FT_CLIENT_TABLE *pFtTable, UCHAR *pStaMAC);
|
||||
|
||||
#endif /* __RTMP_IAPP_H__ */
|
||||
|
||||
/* End of rtmp_iapp.h */
|
||||
Loading…
Reference in New Issue
Block a user