Browse Source

qcacld-3.0: Add vdev id sanity check

Add vdev id sanity check when searching SAP adapter
on DFS channel, to avoid accessing obsolete adapter(s) stopped already.

Change-Id: I0ea565f343e449132de54367566656a6d6f989b0
CRs-Fixed: 3471773
Lin Bai 1 year ago
parent
commit
bf0f88ec20
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/hdd/src/wlan_hdd_cm_connect.c

+ 3 - 0
core/hdd/src/wlan_hdd_cm_connect.c

@@ -504,6 +504,9 @@ static struct hdd_adapter
 		if (adapter->device_mode != QDF_SAP_MODE)
 			goto loop_next;
 
+		if (wlan_hdd_validate_vdev_id(adapter->deflink->vdev_id))
+			goto loop_next;
+
 		/*
 		 * sap is not in started state and also not under doing CAC,
 		 * so it is fine to go ahead with sta.