wifi: Check whether dev node is accessible or not before opening

wifi framework tries to open dev node WIFI_DRIVER_STATE_CTRL_PARAM
as part of initialization/turn on. But this dev node may not be
present/not accessible by then.So check for the
existence/accessibility of dev node by retrying few times to
avoid possible race condition between creation and accessing
of this node.

CRs-Fixed: 2045399
Bug: 123007644
Change-Id: I7b60a19c7ca049ef681e7b2de9dff88cc6000b71

(cherry-picked from 3c0b13f44fc461e5ddcf10517bf7a9a90ceb66a9)
1 file changed