diff options
| author | Yingying Tang <yintang@codeaurora.org> | 2016-09-21 16:14:58 +0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-09-22 11:23:02 +0530 |
| commit | 15aaa1b4e08dfb1554f19b0ff8da55b6c0f8897a (patch) | |
| tree | 63666304cd4aff19fdd8eae3b93cd173057e565e | |
| parent | 6153fd0d44aa0ddc40c22b391c53832fda1110f3 (diff) | |
qcacld-2.0: Fix incorrect NULL pointer check for WMA
Currently there are some places where array name is compared to NULL
in WMA. Add fix to correct it.
CRs-Fixed: 1063255
Change-Id: I9c6222ca915e566554b9731424b0eb79506e9dcf
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index bf64e3ef55c3..daa8637dec18 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -16700,7 +16700,7 @@ static void wma_add_tdls_sta(tp_wma_handle wma, tpAddStaParams add_sta) if (0 == add_sta->updateSta) { /* its a add sta request **/ #if defined(CONFIG_HL_SUPPORT) - if (add_sta->bssId && vdev->last_real_peer && + if (vdev->last_real_peer && (adf_os_mem_cmp((u8 *)add_sta->bssId, vdev->last_real_peer->mac_addr.raw, IEEE80211_ADDR_LEN) == 0)) { |
