diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-15 23:23:35 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-15 23:23:35 +0000 |
commit | 35b44b52873f7b845a83afc3c22a1c346a9e50ce (patch) | |
tree | f0e24e64c42585faff57e579a8f5b74bd860a5a0 /wcn6740/qcwcn/wifi_hal/wifihal_vendor.cpp | |
parent | f4fdd117c9d2753952623c6160ff151d0cdc80b2 (diff) | |
parent | e01f99012b6f33ef745f7fa002198e3410fb8601 (diff) | |
download | wlan-35b44b52873f7b845a83afc3c22a1c346a9e50ce.tar.gz |
Snap for 9070148 from e01f99012b6f33ef745f7fa002198e3410fb8601 to tm-qpr1-release
Change-Id: I2ae630edee83313266a34774b0de64607e5f200a
Diffstat (limited to 'wcn6740/qcwcn/wifi_hal/wifihal_vendor.cpp')
-rw-r--r-- | wcn6740/qcwcn/wifi_hal/wifihal_vendor.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/wcn6740/qcwcn/wifi_hal/wifihal_vendor.cpp b/wcn6740/qcwcn/wifi_hal/wifihal_vendor.cpp index e94506f..4837e63 100644 --- a/wcn6740/qcwcn/wifi_hal/wifihal_vendor.cpp +++ b/wcn6740/qcwcn/wifi_hal/wifihal_vendor.cpp @@ -25,6 +25,11 @@ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + * Changes from Qualcomm Innovation Center are provided under the following license: + + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause-Clear */ #include "sync.h" @@ -543,8 +548,10 @@ wifi_error wifi_get_nud_stats(wifi_interface_handle iface, goto cleanup; /*add the attributes*/ nl_data = NUDCommand->attr_start(NL80211_ATTR_VENDOR_DATA); - if (!nl_data) + if (!nl_data){ + ret = WIFI_ERROR_UNKNOWN; goto cleanup; + } /**/ NUDCommand->attr_end(nl_data); @@ -593,13 +600,17 @@ wifi_error wifi_clear_nud_stats(wifi_interface_handle iface, /*add the attributes*/ nl_data = NUDCommand->attr_start(NL80211_ATTR_VENDOR_DATA); - if (!nl_data) + if (!nl_data){ + ret = WIFI_ERROR_UNKNOWN; goto cleanup; + } if (mData.pkt_Type) { /*set the packet info attributes in nested*/ nl_pktInfo = NUDCommand->attr_start(QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO); - if (!nl_pktInfo) + if (!nl_pktInfo){ + ret = WIFI_ERROR_UNKNOWN; goto cleanup; + } else { ALOGV(" %s: pkt_type %d domain_name :%s" " src_port %d dst_port :%d" |