Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
hardware_libhardware_legacy
Commits
7b436991
Commit
7b436991
authored
15 years ago
by
Dmitry Shmidt
Browse files
Options
Download
Email Patches
Plain Diff
Fix possible race condition in wlan driver loading
Signed-off-by:
Dmitry Shmidt
<
dimitrysh@google.com
>
parent
b862e1c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wifi/wifi.c
wifi/wifi.c
+4
-1
No files found.
wifi/wifi.c
View file @
7b436991
...
...
@@ -188,12 +188,15 @@ int wifi_load_driver()
if
(
property_get
(
DRIVER_PROP_NAME
,
driver_status
,
NULL
))
{
if
(
strcmp
(
driver_status
,
"ok"
)
==
0
)
return
0
;
else
if
(
strcmp
(
DRIVER_PROP_NAME
,
"failed"
)
==
0
)
else
if
(
strcmp
(
DRIVER_PROP_NAME
,
"failed"
)
==
0
)
{
wifi_unload_driver
();
return
-
1
;
}
}
usleep
(
200000
);
}
property_set
(
DRIVER_PROP_NAME
,
"timeout"
);
wifi_unload_driver
();
return
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment