summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_ext_scan.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_ext_scan.c b/core/hdd/src/wlan_hdd_ext_scan.c
index 8d2bc4319da2..0b7bf975560f 100644
--- a/core/hdd/src/wlan_hdd_ext_scan.c
+++ b/core/hdd/src/wlan_hdd_ext_scan.c
@@ -2190,6 +2190,10 @@ __wlan_hdd_cfg80211_extscan_set_significant_change(struct wiphy *wiphy,
hdd_debug("Number of AP %d Session Id %d",
pReqMsg->numAp, pReqMsg->sessionId);
+ if (!tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM]) {
+ hdd_err("attr ap threshold failed");
+ goto fail;
+ }
i = 0;
nla_for_each_nested(apTh,
tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM],