From 2ad31da36da733f02cd05b04e298d23a51484170 Mon Sep 17 00:00:00 2001 From: Zhang Qian Date: Tue, 13 Mar 2018 14:12:14 +0800 Subject: [PATCH] qcacld-3.0: Fix the dsrc_config fail issue qcacld-2.0 to qcacld-3.0 Propagation. Revert the changes of Validating NLA attr in wlan_hdd_cfg80211_ocb_set_config API to fix the dsrc_config fail issue. CRs-Fixed: 2109727 Change-Id: I5037498a510820a86cba9e61149640a957b46086 --- core/hdd/src/wlan_hdd_ocb.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ocb.c b/core/hdd/src/wlan_hdd_ocb.c index 4e71c4759036..f6c239ab43a8 100644 --- a/core/hdd/src/wlan_hdd_ocb.c +++ b/core/hdd/src/wlan_hdd_ocb.c @@ -830,18 +830,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]) { - hdd_err("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]) { - hdd_err("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 ?