return;
}
- if(profile_info)
+ if (profile_info)
memcpy(ap_info, profile_info, sizeof(net_profile_info_t));
notify = g_try_new0(struct _wifi_state_notify, 1);
-EXPORT_API int wifi_get_connected_ap(wifi_ap_h* ap)
+EXPORT_API int wifi_get_connected_ap(wifi_ap_h *ap)
{
int rv;
return _wifi_libnet_forget_ap(ap);
}
-EXPORT_API int wifi_get_connection_state(wifi_connection_state_e* connection_state)
+EXPORT_API int wifi_get_connection_state(wifi_connection_state_e *connection_state)
{
CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
char peer_mac[18];
printf("Enter Mac_address: ");
- if(scanf(" %17s", peer_mac) < 1)
+ if (scanf(" %17s", peer_mac) < 1)
return -1;
- if (strlen(peer_mac) > 17)
- {
+ if (strlen(peer_mac) > 17) {
printf("Wrong Mac_address\n");
return -1;
}
printf("wifi_tdls_get_connected_peer() is failed [%s]\n", __test_convert_error_to_string(rv));
return -1;
}
- printf("Peer Mac address is [%s]\n",mac_addr);
+ printf("Peer Mac address is [%s]\n", mac_addr);
g_free(mac_addr);
return 1;
}