Fix CTRL-EVENT-REGDOM-CHANGE event init= value
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 2 Jul 2014 10:09:00 +0000 (13:09 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 10:09:00 +0000 (13:09 +0300)
Incorrect field was used to determine the init=<value> in the regulatory
domain changed control interface event.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/events.c

index b74e12d..4e84f6e 100644 (file)
@@ -2756,7 +2756,7 @@ 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->type), reg_type_str(info->type),
+               reg_init_str(info->initiator), reg_type_str(info->type),
                info->alpha2[0] ? " alpha2=" : "",
                info->alpha2[0] ? info->alpha2 : "");