Modify default value for test 87/285587/1 accepted/tizen/unified/20230221.031431
authorJiung Yu <jiung.yu@samsung.com>
Thu, 15 Dec 2022 05:58:36 +0000 (14:58 +0900)
committerJiung Yu <jiung.yu@samsung.com>
Thu, 15 Dec 2022 05:58:54 +0000 (14:58 +0900)
Change-Id: Ie2bba1d08a3b50cca145a24897cc6a88c1656eae
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
tests/wifi_direct_test.c

index 27eecc6..c54c05e 100644 (file)
@@ -24,7 +24,9 @@
 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
 #define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
 #define MACSTR_LEN 18
-#define MAX_PEER_NUM 10
+#define MAX_PEER_NUM 50
+#define DEFAULT_P2P_LISTEN_TIMEOUT 0 //means infinite but depends on wifi vendor
+#define DEFAULT_P2P_FIND_TIMEOUT 0 //means infinite but depends on wifi vendor
 
 static const char *test_wfd_convert_error_to_string(wifi_direct_error_e err_type)
 {
@@ -1331,15 +1333,14 @@ void process_input(const char *input, gpointer user_data)
 
        case CMD_START_DISCOVER_WITH_LISTEN_ONLY:
                if (ad != NULL) {
-                       result = wifi_direct_start_discovery(TRUE, 15);
+                       result = wifi_direct_start_discovery(TRUE, DEFAULT_P2P_LISTEN_TIMEOUT);
                        printf("wifi_direct_start_discovery() listen_only=[true] result=[%d]\n", result);
                }
                break;
 
        case CMD_START_DISCOVER:
                if (ad != NULL) {
-                       /* result = wifi_direct_start_discovery(FALSE, 15); */
-                       result = wifi_direct_start_discovery(FALSE, 0);
+                       result = wifi_direct_start_discovery(FALSE, DEFAULT_P2P_FIND_TIMEOUT);
                        printf("wifi_direct_start_discovery() listen_only=[false] result=[%d]\n", result);
                }
                break;