|
@@ -1650,6 +1650,12 @@ static void hostapd_global_ctrl_iface_receive(int sock, void *eloop_ctx,
|
|
|
} else if (os_strncmp(buf, "REMOVE ", 7) == 0) {
|
|
|
if (hostapd_ctrl_iface_remove(interfaces, buf + 7) < 0)
|
|
|
reply_len = -1;
|
|
|
+#ifdef CONFIG_MODULE_TESTS
|
|
|
+ } else if (os_strcmp(buf, "MODULE_TESTS") == 0) {
|
|
|
+ int hapd_module_tests(void);
|
|
|
+ if (hapd_module_tests() < 0)
|
|
|
+ reply_len = -1;
|
|
|
+#endif /* CONFIG_MODULE_TESTS */
|
|
|
} else {
|
|
|
wpa_printf(MSG_DEBUG, "Unrecognized global ctrl_iface command "
|
|
|
"ignored");
|