diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2014-11-24 08:42:55 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-11-24 08:42:55 -0800 |
| commit | 62cf920797fb045fa914315d1fb33338e2bde9e0 (patch) | |
| tree | 68c5b0f20fe08803f67cbe4a6fd5547bc8e68cc0 | |
| parent | 7a7912dd6bfe6cd5fdbbc5aa8ea7247dc4f71a7a (diff) | |
| parent | 8ce116acb2b34375383a1ad5adabc621d904b6f9 (diff) | |
Merge "Release 1.0.0.241A QCACLD WLAN Driver."
| -rw-r--r-- | CORE/MAC/inc/qwlan_version.h | 2 | ||||
| -rw-r--r-- | CORE/VOSS/src/vos_api.c | 19 |
2 files changed, 16 insertions, 5 deletions
diff --git a/CORE/MAC/inc/qwlan_version.h b/CORE/MAC/inc/qwlan_version.h index 0b543c89e705..386c54ac89f8 100644 --- a/CORE/MAC/inc/qwlan_version.h +++ b/CORE/MAC/inc/qwlan_version.h @@ -44,7 +44,7 @@ BRIEF DESCRIPTION: #define QWLAN_VERSION_EXTRA "" #define QWLAN_VERSION_BUILD 241 -#define QWLAN_VERSIONSTR "1.0.0.241" +#define QWLAN_VERSIONSTR "1.0.0.241A" #define AR6320_REV1_VERSION 0x5000000 diff --git a/CORE/VOSS/src/vos_api.c b/CORE/VOSS/src/vos_api.c index 224e2db0700c..03a80faec410 100644 --- a/CORE/VOSS/src/vos_api.c +++ b/CORE/VOSS/src/vos_api.c @@ -99,6 +99,9 @@ /* Approximate amount of time to wait for WDA to issue a DUMP req */ #define VOS_WDA_RESP_TIMEOUT WDA_STOP_TIMEOUT +/* Maximum number of vos message queue get wrapper failures to cause panic */ +#define VOS_WRAPPER_MAX_FAIL_COUNT (1000) + /*--------------------------------------------------------------------------- * Data definitions * ------------------------------------------------------------------------*/ @@ -1591,6 +1594,7 @@ VOS_STATUS vos_mq_post_message( VOS_MQ_ID msgQueueId, vos_msg_t *pMsg ) { pVosMqType pTargetMq = NULL; pVosMsgWrapper pMsgWrapper = NULL; + static uint32_t debug_count = 0; if ((gpVosContext == NULL) || (pMsg == NULL)) { @@ -1659,14 +1663,21 @@ VOS_STATUS vos_mq_post_message( VOS_MQ_ID msgQueueId, vos_msg_t *pMsg ) */ pMsgWrapper = vos_mq_get(&gpVosContext->freeVosMq); - if (NULL == pMsgWrapper) - { - VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_ERROR, - "%s: VOS Core run out of message wrapper", __func__); + if (NULL == pMsgWrapper) { + debug_count++; + VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_ERROR, + "%s: VOS Core run out of message wrapper %d", + __func__, debug_count); + + if (VOS_WRAPPER_MAX_FAIL_COUNT == debug_count) { + VOS_BUG(0); + } return VOS_STATUS_E_RESOURCES; } + debug_count = 0; + /* ** Copy the message now */ |
