Set default value of distance as -1
authorCheoleun Moon <chleun.moon@samsung.com>
Mon, 6 Apr 2020 06:07:06 +0000 (15:07 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Mon, 6 Apr 2020 06:07:06 +0000 (15:07 +0900)
src/wifi-aware-private.c

index 353d6605f8d8bf8130ae856e8eeec1544c2a66ed..a18bfc8bfc41e9fbcbf16a0485bbe2b838b30f4e 100644 (file)
@@ -799,6 +799,8 @@ int _wifi_aware_subscribe_handle_create(wifi_aware_subscribe_h *subscribe)
        RET_VAL_IF(req == NULL, WIFI_AWARE_ERROR_OUT_OF_MEMORY, "Out of memory");
 
        *subscribe = (wifi_aware_subscribe_h)req;
+       req->max_distance = -1;
+       req->min_distance = -1;
 
        return WIFI_AWARE_ERROR_NONE;
 }