diff options
| author | Ke Huang <keh@codeaurora.org> | 2018-01-22 15:03:22 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-03-15 04:04:10 -0700 |
| commit | dee7a1bd9be35fced94456bfb043042966522f9e (patch) | |
| tree | 3f1a49223b4e2d16b5f8f70e5afe2ff3c8c33fed | |
| parent | 5bc10ca3c9c1cda148c3ec299bee581ec7bd5cd9 (diff) | |
qcacld-2.0: Fix the dsrc_config fail issue
Revert the changes of Validating NLA attr in
wlan_hdd_cfg80211_ocb_set_config API to fix the
dsrc_config fail issue.
Change-Id: I5037498a510820a86cba9e61149640a957b46086
CRs-Fixed: 2109727
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_ocb.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/CORE/HDD/src/wlan_hdd_ocb.c b/CORE/HDD/src/wlan_hdd_ocb.c index d511f9b097be..8de1fd9cf7b1 100644 --- a/CORE/HDD/src/wlan_hdd_ocb.c +++ b/CORE/HDD/src/wlan_hdd_ocb.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -1013,18 +1013,10 @@ static int __wlan_hdd_cfg80211_ocb_set_config(struct wiphy *wiphy, tb[QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE]); /* Get the ndl chan array and the ndl active state array. */ - if (!tb[QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY]) { - hddLog(LOGE, FL("NDL_CHANNEL_ARRAY is not present")); - return -EINVAL; - } ndl_chan_list = tb[QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY]; ndl_chan_list_len = (ndl_chan_list ? nla_len(ndl_chan_list) : 0); - if (!tb[QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY]) { - hddLog(LOGE, FL("NDL_ACTIVE_STATE_ARRAY is not present")); - return -EINVAL; - } ndl_active_state_list = tb[QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY]; ndl_active_state_list_len = (ndl_active_state_list ? |
