Answer to 1:
The card has to be in WLAN mode and connected to a network, otherwise Req_WlanMib_Get() returns MIB_STATUS_INVALIDMIB or MIB_STATUS_NOTSET. The buffer for the returned network name must be at least 33 bytes long and the length argument should be initialized with the size of the buffer. The following code fragment has been verified to return the SSID successfully (within the conditions mentioned above):
Answer to 2:
MIB_WLAN_CONN_SECURITY_MODE and MIB_WLAN_SEC_MODE can be a combination of the WEPMODE_-values defined in wlanmib.h.
Nokia D211 Support