diff --git a/core/hdd/src/wlan_hdd_ext_scan.c b/core/hdd/src/wlan_hdd_ext_scan.c index 267b0f69eb11..5a48fd92d73c 100644 --- a/core/hdd/src/wlan_hdd_ext_scan.c +++ b/core/hdd/src/wlan_hdd_ext_scan.c @@ -2229,6 +2229,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],