diff options
| author | Praveen Kumar Sirisilla <c_pksiri@qca.qualcomm.com> | 2014-01-23 23:13:16 -0800 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@qca.qualcomm.com> | 2014-01-24 19:21:45 -0800 |
| commit | f56fe0ea310e03deb9ceed8db15497e73b60c31b (patch) | |
| tree | b00e0fa4de10f9f4a5d2827c5d35ddb84cf79085 /CORE/BAP/src/bapModule.c | |
| parent | 281de6ad5164f09d232617fcc51286a40e79ec62 (diff) | |
wlan: bap: fix unsafe use of assert
The CR identifies improper use of vos assert. At some places NULL
pointers are asserted but no action is taken. Patch fix such issues.
.
Change-Id: I8a278fe019948630f629d8e76abd8f262ab5aa2c
CRs-Fixed: 589661
Diffstat (limited to 'CORE/BAP/src/bapModule.c')
| -rw-r--r-- | CORE/BAP/src/bapModule.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CORE/BAP/src/bapModule.c b/CORE/BAP/src/bapModule.c index 2fd8c37725d7..88b27af5c30d 100644 --- a/CORE/BAP/src/bapModule.c +++ b/CORE/BAP/src/bapModule.c @@ -1223,8 +1223,13 @@ WLANBAP_ReadMacConfig ccmCfgGetStr( pMac, WNI_CFG_STA_ID, pBtStaOwnMacAddr, &len ); - VOS_ASSERT( WNI_CFG_BSSID_LEN == len ); - + if (WNI_CFG_BSSID_LEN != len) + { + VOS_TRACE( VOS_MODULE_ID_BAP, VOS_TRACE_LEVEL_ERROR, + "len is improper %s", __func__); + return; + } + /* Form the SSID from Mac address */ VOS_SNPRINTF( pBtStaOwnSsid, WLAN_BAP_SSID_MAX_LEN, "AMP-%02x-%02x-%02x-%02x-%02x-%02x", |
