I've got a situation where occasionally when calling MAC_MlmeScanReq() to perform a passive scan, the MAC immediately generates the MAC_MLME_SCAN_CNF event with a hdr.status enumeration of 0x19, which is defined to be MAC_BAD_STATE. Unfortunately, the documentation does not list MAC_BAD_STATE as a possible status for a MAC_MLME_SCAN_CNF. The only reference to this enumeration value is found in the section documenting Proprietary Status Values, and the description of this enumeration is "The operation could not be performed in the current state".
Has anyone else ever encountered this problem. I don't know how the MAC got into the "bad state" or how to get the MAC out of this condition. Since I'm out-of-comm and performing a scan, I can afford to be aggressive regarding recovery methods or work-arounds...I just don't know what to try.
Thanks in advance.