void wlan_cfgInit(tpAniSirGlobal pMac) { // Set status to not-ready pMac->cfg.gCfgStatus = CFG_INCOMPLETE; // Send CFG_DNLD_REQ to host PELOGW(cfgLog(pMac, LOGW, FL("Sending CFG_DNLD_REQ"));)
/**--------------------------------------------------------------------- * cfgSendHostMsg() * * FUNCTION: * Send CNF/RSP to host. * * LOGIC: * Please see Configuration & Statistic Collection Micro-Architecture * specification for details. * * ASSUMPTIONS: * * NOTE: * * @param msgType: message type * @param msgLen: message length * @param paramNum: number of parameters * @param pParamList: pointer to parameter list * @param dataLen: data length * @param pData: pointer to additional data * * @return None. * */ void cfgSendHostMsg(tpAniSirGlobal pMac, tANI_U16 msgType, tANI_U32 msgLen, tANI_U32 paramNum, tANI_U32 *pParamList, tANI_U32 dataLen, tANI_U32 *pData) { tANI_U32 *pMsg, *pEnd; tSirMsgQ mmhMsg; // sanity if ((paramNum > 0) && (NULL == pParamList)) { PELOGE(cfgLog(pMac, LOGE, FL("pParamList NULL when paramNum greater than 0!"));) return;
/**--------------------------------------------------------------------- * ProcDnldRsp() * * FUNCTION: * This function processes CFG_DNLD_RSP message from host. * * LOGIC: * * ASSUMPTIONS: * * NOTE: * * @param length: message length * @param pParam: parameter list pointer * * @return None * */ static void ProcDnldRsp(tpAniSirGlobal pMac, tANI_U16 length, tANI_U32 *pParam) { tANI_S32 i; tANI_U32 expLen, retVal, bufStart, bufEnd; tANI_U32 *pSrc, *pDst, *pDstEnd; tANI_U32 strSize, j; tANI_U8 pStr[CFG_MAX_STR_LEN]; tpCfgBinHdr pHdr; tANI_U32 logLevel; tSirMsgQ mmhMsg; // First Dword must contain the AP or STA magic dword PELOGW(cfgLog(pMac, LOGW, FL("CFG size %d bytes MAGIC dword is 0x%x"), length, sirReadU32N((tANI_U8*)pParam) );) // if the string is not correct, return failure if (*pParam == CFG_STA_MAGIC_DWORD) {}
// --------------------------------------------------------------------- tANI_U32 cfgNeedRestart(tpAniSirGlobal pMac, tANI_U16 cfgId) { if (!pMac->cfg.gCfgEntry) { PELOGE(cfgLog(pMac, LOGE, FL("gCfgEntry is NULL"));) return 0;