#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)
{
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;