[PATCH 14/16] wpa_supplicant: send CTRL-EVENT-REGDOM-CHANGE on the global control interface

Ilan Peer ilan.peer
Wed Jun 17 06:25:00 PDT 2015


From: Ben Rosenfeld <ben.rosenfeld at intel.com>

The regulatory domain change event can be handled by any interface
as it is a global event and not an interface specific one. Thus,
send the event on the global control interface socket.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld at intel.com>
---
 wpa_supplicant/events.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index f8ab4b8..75e0caf 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2975,10 +2975,11 @@ static void wpa_supplicant_update_channel_list(
 {
 	struct wpa_supplicant *ifs;
 
-	wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_REGDOM_CHANGE "init=%s type=%s%s%s",
-		reg_init_str(info->initiator), reg_type_str(info->type),
-		info->alpha2[0] ? " alpha2=" : "",
-		info->alpha2[0] ? info->alpha2 : "");
+	wpa_msg_global(wpa_s, MSG_INFO,
+		       WPA_EVENT_REGDOM_CHANGE "init=%s type=%s%s%s",
+		       reg_init_str(info->initiator), reg_type_str(info->type),
+		       info->alpha2[0] ? " alpha2=" : "",
+		       info->alpha2[0] ? info->alpha2 : "");
 
 	if (wpa_s->drv_priv == NULL)
 		return; /* Ignore event during drv initialization */
-- 
1.9.1




More information about the Hostap mailing list