I am trying to implement OID_GEN_PORT_STATE for one of my wlan miniport
Driver.For this OID i have to fill NDIS_PORT_STATE structure from miniport
driver.I am unable to understand what this NDIS_PORT_CONTROLL_STATE.I have
a doubt.

Is it about control port.As of my knowledge .If the port configured as
controlled port then data transferred through this port is secured.As
Initially port will be uncontrolled.Only once after connecting to AP based
on security mode port will be changed to controlled port for
WPA/WPA2 and for open/Shared it will uncontrolled.Please correct me if my
understanding is wrong.