Clemens Famulla-Conrad
ae1b52fe7b
during 4-way HS offload" because of connection using WPA2-PSK or WPA-SAE problems with brcmfmac wifi hardware. (bsc#1230797) [+ Revert-Mark-authorization-completed-on-driver-indica.patch] OBS-URL: https://build.opensuse.org/package/show/hardware/wpa_supplicant?expand=0&rev=148
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
---
|
|
wpa_supplicant/wpa_supplicant.c | 18 ++++++++++++++++++
|
|
1 file changed, 18 insertions(+)
|
|
|
|
--- a/wpa_supplicant/wpa_supplicant.c
|
|
+++ b/wpa_supplicant/wpa_supplicant.c
|
|
@@ -123,6 +123,22 @@
|
|
"\n";
|
|
#endif /* CONFIG_NO_STDOUT_DEBUG */
|
|
|
|
+static void wpa_supplicant_handle_sigusr1(int sig,
|
|
+ void *signal_ctx)
|
|
+{
|
|
+ /* Increase verbosity (by decreasing the debug level) and wrap back
|
|
+ * to MSG_INFO when needed.
|
|
+ */
|
|
+ if (wpa_debug_level)
|
|
+ wpa_debug_level--;
|
|
+ else
|
|
+ wpa_debug_level = MSG_INFO;
|
|
+
|
|
+ wpa_printf(MSG_INFO, "Signal %d received - changing debug level to %s", sig,
|
|
+ (wpa_debug_level == MSG_INFO) ? "INFO" :
|
|
+ ((wpa_debug_level == MSG_DEBUG) ? "DEBUG" :
|
|
+ ((wpa_debug_level == MSG_MSGDUMP) ? "MSGDUMP" : "UNKNOWN")));
|
|
+}
|
|
|
|
static void wpa_bss_tmp_disallow_timeout(void *eloop_ctx, void *timeout_ctx);
|
|
static void wpas_verify_ssid_beacon(void *eloop_ctx, void *timeout_ctx);
|
|
@@ -8189,6 +8205,8 @@
|
|
eloop_register_signal_terminate(wpa_supplicant_terminate, global);
|
|
eloop_register_signal_reconfig(wpa_supplicant_reconfig, global);
|
|
|
|
+ eloop_register_signal(SIGUSR1, wpa_supplicant_handle_sigusr1, NULL);
|
|
+
|
|
eloop_run();
|
|
|
|
return 0;
|