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
@@ -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.