projects
/
platform
/
core
/
connectivity
/
net-config.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a47d2b
)
Create temporary file to check wifi firmware state #2
28/192428/1
author
Seonah Moon
<seonah1.moon@samsung.com>
Mon, 22 Oct 2018 09:03:40 +0000
(18:03 +0900)
committer
Jaehyun Kim
<jeik01.kim@samsung.com>
Mon, 5 Nov 2018 11:08:26 +0000
(20:08 +0900)
Change-Id: I8c2c4d287021f6b0b76fa23d947e98e32995f1c8
src/wifi.c
patch
|
blob
|
history
diff --git
a/src/wifi.c
b/src/wifi.c
index
bb22a4e
..
0bc5273
100755
(executable)
--- a/
src/wifi.c
+++ b/
src/wifi.c
@@
-116,9
+116,13
@@
void __netconfig_wifi_connect_reply(GObject *source_object, GAsyncResult *res,
static void _update_wifi_firmware_state(void)
{
+ int fd;
mode_t mode = S_IRGRP | S_IWUSR | S_IXGRP;
- if (creat(SPRD_CP2_FIRMWARE_STATE_PATH, mode) < 0)
+ fd = creat(SPRD_CP2_FIRMWARE_STATE_PATH, mode);
+ if (fd > 0)
+ close(fd);
+ else
DBG("Failed to create wifi firmware state file");
is_wifi_firmware_downloaded = TRUE;