Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e864fa6 authored by CNSS_WLAN Service's avatar CNSS_WLAN Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qcacmn: Add sanity check for scan_obj in wlan_scan_ucfg_api.c" into...

Merge "qcacmn: Add sanity check for scan_obj in wlan_scan_ucfg_api.c" into wlan-cmn.driver.lnx.2.0.3
parents 815d2772 7aac9787
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1141,6 +1141,8 @@ ucfg_scan_set_wide_band_scan(struct wlan_objmgr_pdev *pdev, bool enable)
	}
	pdev_id = wlan_objmgr_pdev_get_pdev_id(pdev);
	scan_obj = wlan_pdev_get_scan_obj(pdev);
	if (!scan_obj)
		return QDF_STATUS_E_FAILURE;

	scm_debug("set wide_band_scan to %d", enable);
	scan_obj->pdev_info[pdev_id].wide_band_scan = enable;
@@ -1159,6 +1161,8 @@ bool ucfg_scan_get_wide_band_scan(struct wlan_objmgr_pdev *pdev)
	}
	pdev_id = wlan_objmgr_pdev_get_pdev_id(pdev);
	scan_obj = wlan_pdev_get_scan_obj(pdev);
	if (!scan_obj)
		return QDF_STATUS_E_FAILURE;

	return scan_obj->pdev_info[pdev_id].wide_band_scan;
}