Change-Id: Ic134afb2d20215b8a9826fbb804facbdc5c9be81
case WIFI_DIRECT_ERROR_CONNECTION_CANCELED:
return "CONNECTION_CANCELED";
default:
- return "UNKNOWN";
+ break;
}
return "UNKNOWN";
}
if (scanf(" %8s", pin) < 1)
break;
- if (strlen(pin) > 0)
+ if (strlen(pin) > 0) {
result = wifi_direct_set_wps_pin(pin);
- else
+ printf("wifi_direct_set_wps_pin() result=[%d]\n", result);
+ } else
printf("Invalid PIN number\n");
} else {
printf("Enter contact info\n");
if (scanf(" %50ms", &str) < 1)
break;
+ info1 = str;
break;
default:
printf("ERROR : Invalid input service_type!!!\n");