|
@@ -6761,6 +6761,12 @@ char * wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global,
|
|
} else if (os_strcmp(buf, "STATUS") == 0) {
|
|
} else if (os_strcmp(buf, "STATUS") == 0) {
|
|
reply_len = wpas_global_ctrl_iface_status(global, reply,
|
|
reply_len = wpas_global_ctrl_iface_status(global, reply,
|
|
reply_size);
|
|
reply_size);
|
|
|
|
+#ifdef CONFIG_MODULE_TESTS
|
|
|
|
+ } else if (os_strcmp(buf, "MODULE_TESTS") == 0) {
|
|
|
|
+ int wpas_module_tests(void);
|
|
|
|
+ if (wpas_module_tests() < 0)
|
|
|
|
+ reply_len = -1;
|
|
|
|
+#endif /* CONFIG_MODULE_TESTS */
|
|
} else {
|
|
} else {
|
|
os_memcpy(reply, "UNKNOWN COMMAND\n", 16);
|
|
os_memcpy(reply, "UNKNOWN COMMAND\n", 16);
|
|
reply_len = 16;
|
|
reply_len = 16;
|