projects
/
platform
/
core
/
api
/
wifi-aware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1fd1eb
)
bug fix: set peer_id when create new peer
author
Seonah Moon
<seonah1.moon@samsung.com>
Wed, 26 Feb 2020 05:08:30 +0000
(14:08 +0900)
committer
Seonah Moon
<seonah1.moon@samsung.com>
Wed, 26 Feb 2020 05:08:30 +0000
(14:08 +0900)
src/wifi-aware-peer.c
patch
|
blob
|
history
diff --git
a/src/wifi-aware-peer.c
b/src/wifi-aware-peer.c
index
cffc3be
..
6975dd3
100644
(file)
--- a/
src/wifi-aware-peer.c
+++ b/
src/wifi-aware-peer.c
@@
-32,6
+32,7
@@
int _wifi_aware_peer_create(wifi_aware_peer_h *peer, unsigned int peer_id)
{
wifi_aware_peer_s *peer_handle = (wifi_aware_peer_s *)g_try_malloc0(sizeof(wifi_aware_peer_s));
RET_VAL_IF(peer_handle == NULL, WIFI_AWARE_ERROR_OUT_OF_MEMORY, "g_try_malloc0 failed");
+ peer_handle->id = peer_id;
peer_handle->client_id = -1;
*peer = peer_handle;
return WIFI_AWARE_ERROR_NONE;