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

Commit 4cdf5b88 authored by gaurank kathpalia's avatar gaurank kathpalia Committed by nshrivas
Browse files

qcacmn: Change return type in case of simultaneous scan

Currently the driver returns EINVAL, instead of EBUSY if
the driver encounters a case of simlutaneuos scan, and
DBS scan is disabled for user space, and thus it may lead
to failure of OBSS scan, which can further lead to SAP
fail.

Fix is to return EBUSY intead of EINVAL, so that hostapd
can try to get the scan module perform a scan, which can
increase the probablity of SAP bringup.

Change-Id: I798e3d1ad0f62a5240603b4344963cb3ee637c13
CRs-Fixed: 2403499
parent 818a3790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1342,7 +1342,7 @@ int wlan_cfg80211_scan(struct wlan_objmgr_pdev *pdev,
	    !qdf_list_empty(&osif_priv->osif_scan->scan_req_q)) {
		wlan_objmgr_vdev_release_ref(vdev, WLAN_OSIF_ID);
		cfg80211_err("Simultaneous scan disabled, reject scan");
		return -EINVAL;
		return -EBUSY;
	}
	req = qdf_mem_malloc(sizeof(*req));
	if (!req) {