return 0;
}
-static int _ws_reset_plugin(ws_dbus_plugin_data_s *g_pd)
+static int _ws_reset_plugin(ws_dbus_plugin_data_s *f_pd)
{
__WDP_LOG_FUNC_ENTER__;
- if (!g_pd) {
+ if (!f_pd) {
WDP_LOGE("Invalid parameter");
__WDP_LOG_FUNC_EXIT__;
return -1;
_ws_deinit_dbus_connection();
- if (g_pd->activated)
- ws_deactivate(g_pd->concurrent);
+ if (f_pd->activated)
+ ws_deactivate(f_pd->concurrent);
- g_free(g_pd);
- g_pd = NULL;
+ g_free(f_pd);
__WDP_LOG_FUNC_EXIT__;
return 0;
static int __ws_p2p_supplicant_start(void)
{
- gboolean rv = FALSE;
+ gboolean rv;
const char *path = "/usr/sbin/p2p_supp.sh";
char *const args[] = { "/usr/sbin/p2p_supp.sh", "start_dbus", NULL };
char *const envs[] = { NULL };
static int __ws_p2p_supplicant_stop(void)
{
- gboolean rv = FALSE;
+ gboolean rv;
const char *path = "/usr/sbin/p2p_supp.sh";
char *const args[] = { "/usr/sbin/p2p_supp.sh", "stop", NULL };
char *const envs[] = { NULL };
while(fgets(buf, MAX_DHCP_DUMP_SIZE, fp) != NULL) {
WDS_LOGD("Read line [%s]", buf);
- n = sscanf(buf,"%s %s", intf_str, ip_str);
+ n = sscanf(buf,"%17s %15s", intf_str, ip_str);
WDS_LOGD("ip=[%s], mac=[%s]",ip_str, intf_str);
if (n != 2) {
continue;