Thursday, 19 January 2017

AID (Association ID) calculation from TIM (Traffic Indication Map)

AID(Association ID) calculation from TIM(Traffic Indication Map)
---------------------------------------------------------------------------------
From AP beacon we will get
1) length
2) offset
3) pvm (Partial virtual bitmap)

N1 = 2 * offset
AID = (N1 * 8) + binary reverse value of PVM (ex: PVM = 4(0100), we should take 2(0010) reverse of PVM)

Ex:
length = 7
offset  = 6
PVM   = 4

N1 = 2 * 6 = 12
AID = (12 * 8) + 2 (PVM 4 in binary 0100, once we reverse these 4 bits we will    get 0010, ie; 2) = 98

AID = 98