int (*refresh) (void);
int (*save_config) (void);
int (*set_operating_channel)(int channel);
+ int (*remove_all_network)(void);
} wfd_oem_ops_s;
int ws_refresh();
int ws_save_config(void);
int ws_set_operating_channel(int channel);
+int ws_remove_all_network(void);
#endif /* __WFD_PLUGIN_WPASUPPLICANT_H__ */
.refresh = ws_refresh,
.save_config = ws_save_config,
.set_operating_channel = ws_set_operating_channel,
+ .remove_all_network = ws_remove_all_network,
};
return res;
}
+int ws_remove_all_network(void)
+{
+ __WDP_LOG_FUNC_ENTER__;
+ GDBusConnection *g_dbus = NULL;
+ dbus_method_param_s params;
+ int res = 0;
+
+ g_dbus = g_pd->g_dbus;
+ if (!g_dbus) {
+ WDP_LOGE("DBus connection is NULL");
+ __WDP_LOG_FUNC_EXIT__;
+ return -1;
+ }
+ memset(¶ms, 0x0, sizeof(dbus_method_param_s));
+
+ dbus_set_method_param(¶ms, "RemoveAllNetworks", g_pd->iface_path, g_dbus);
+ params.params = NULL;
+
+ res = dbus_method_call(¶ms, SUPPLICANT_IFACE, NULL, NULL);
+ if (res < 0)
+ WDP_LOGE("Failed to send [RemoveAllNetworks] command to wpa_supplicant");
+ else
+ WDP_LOGD("Succeeded to remove all networks from supplicant");
+
+ WDP_LOGD("Succeeded to remove all network");
+ __WDP_LOG_FUNC_EXIT__;
+ return res;
+}
+
int ws_refresh();
int ws_save_config(void);
int ws_set_operating_channel(int channel);
+int ws_remove_all_network(void);
#endif /* __WFD_PLUGIN_WPASUPPLICANT_H__ */
.refresh = ws_refresh,
.save_config = ws_save_config,
.set_operating_channel = ws_set_operating_channel,
+ .remove_all_network = ws_remove_all_network,
};
__WDP_LOG_FUNC_EXIT__;
return 0;
}
+
+int ws_remove_all_network()
+{
+ __WDP_LOG_FUNC_ENTER__;
+
+ __WDP_LOG_FUNC_EXIT__;
+ return 0;
+}
+
int ws_refresh();
int ws_save_config(void);
int ws_set_operating_channel(int channel);
+int ws_remove_all_network(void);
+
#endif /* __WFD_PLUGIN_WPASUPPLICANT_H__ */
#endif /* TIZEN_FEATURE_WIFI_DISPLAY */
.save_config = ws_save_config,
.set_operating_channel = ws_set_operating_channel,
+ .remove_all_network = ws_remove_all_network,
};
return -1;
}
+int ws_remove_all_network()
+{
+ __WDP_LOG_FUNC_ENTER__;
+
+ __WDP_LOG_FUNC_EXIT__;
+ return -1;
+}
+