P2P: Fix update of listen_reg_class and listen_channel
authorPurushottam Kushwaha <p.kushwaha@samsung.com>
Fri, 31 Jul 2015 04:54:04 +0000 (04:54 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 18:37:09 +0000 (21:37 +0300)
Allow proper update for listen_reg_class and listen_channel with
changed_parameters [CFG_CHANGED_P2P_LISTEN_CHANNEL] configuration for
command received through ctrl_interface. Without this, "set
p2p_listen_channel" and "set p2p_listen_reg_class" do not update the
listen channel. The D-Bus version was already setting these flags.

Signed-off-by: Purushottam Kushwaha <p.kushwaha@samsung.com>
wpa_supplicant/config.c

index 44f6946..d6bdb33 100644 (file)
@@ -4164,8 +4164,8 @@ static const struct global_parse_data global_fields[] = {
 #endif /* CONFIG_WPS */
 #ifdef CONFIG_P2P
        { FUNC(sec_device_type), CFG_CHANGED_SEC_DEVICE_TYPE },
-       { INT(p2p_listen_reg_class), 0 },
-       { INT(p2p_listen_channel), 0 },
+       { INT(p2p_listen_reg_class), CFG_CHANGED_P2P_LISTEN_CHANNEL },
+       { INT(p2p_listen_channel), CFG_CHANGED_P2P_LISTEN_CHANNEL },
        { INT(p2p_oper_reg_class), CFG_CHANGED_P2P_OPER_CHANNEL },
        { INT(p2p_oper_channel), CFG_CHANGED_P2P_OPER_CHANNEL },
        { INT_RANGE(p2p_go_intent, 0, 15), 0 },