MT7620 PROGRAMMING GUIDE
Integrated 802.11n MAC/BBP and 2.4 GHz RF/FEM Router-on-a-Chip
3.1.2.2 WAPI_PN Format
Table 3-2 WAPI_PN Format
NOTE:
1. The key index and extension IV bit are initialized by software. The MSB octet of IV is not modified by
hardware.
2: IV/EIV packet number (PN) counter modes:
For WEP40, WEP104, CKIP40, CKIP104, CKIP128 mode, PN=IV[23:0]. EIV[31:0] is not used.
For TKIP mode, PN = {EIV[31:0], IV[7:0], IV[23:16]}, IV[15:8]=(IV[7:0] | 0x20) & 0x7F) is generated by
hardware.
For AES-CCMP, PN = {EIV[31:0], IV[15:0]}.
For non-WAPI mode, PN = PN + 1 after each encryption.
For WAPI mode, PN={WAPI_PN_MSB_1[31:0], WAPI_PN_MSB_0[31:0], EIV[31:0], IV[31:0]}.
For WAPI mode, PN=PN+2 when WAPI_MC_BC=0 in WCID attribute.
For WAPI mode, PN=PN+1 when WAPI_MC_BC=1 in WCID attribute.
3: Software may initialize the PN counter to any value.
3.1.3 WCID Attribute Entry Format (1DW)
WAPI KeyID Byte
0-1: WAPI Key ID
2-255: reserved
WAPI Reserved Byte
(set to 0)
WAPI Broadcast/Multicast Packet Number (PN)
Increment
0: Unicast, PN = PN + 2
1: Multicast/broadcast, PN = PN + 1
Use together with BSS_IDX(bit[6:4)),
(BSS_IDX_MSB *8 + BSS_IDX) = BSS Index of the
WCID
Use together with RX_PKEY_MODE(bit[3:1]),
(RX_PKEY_MODE_MSB *8 + RX_PKEY_MODE) =
0:7: As listed in RX_PKEY_MODE
8: WAPI
9:15: Reserved
RXWI User Defined Field
This field is tagged in the RXWI.UDF fields for the
WCID.
Multiple-BSS index for the WCID