[PATCH] P2P: Fix update of listen_reg_class and listen_channel.
Purushottam Kushwaha
p.kushwaha
Thu Jul 30 21:54:04 PDT 2015
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.
As of now "set p2p_listen_channel" and "set p2p_listen_reg_class"
doesn't update listen channel.
Signed-off-by: Purushottam Kushwaha <p.kushwaha at samsung.com>
---
wpa_supplicant/config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 44f6946..d6bdb33 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -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 },
--
1.9.1
More information about the Hostap
mailing list