Commit 30fa51c8 authored by Bing Zhao's avatar Bing Zhao Committed by John W. Linville

mwifiex: define TDLS idle timeout macro with units

The unit of this timeout is in seconds.
Reported-by: default avatarPaul Stewart <pstew@chromium.org>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarAvinash Patil <patila@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2a317ad8
...@@ -713,7 +713,7 @@ struct mwifiex_ie_types_vendor_param_set { ...@@ -713,7 +713,7 @@ struct mwifiex_ie_types_vendor_param_set {
u8 ie[MWIFIEX_MAX_VSIE_LEN]; u8 ie[MWIFIEX_MAX_VSIE_LEN];
}; };
#define MWIFIEX_TDLS_IDLE_TIMEOUT 60 #define MWIFIEX_TDLS_IDLE_TIMEOUT_IN_SEC 60
struct mwifiex_ie_types_tdls_idle_timeout { struct mwifiex_ie_types_tdls_idle_timeout {
struct mwifiex_ie_types_header header; struct mwifiex_ie_types_header header;
......
...@@ -1647,7 +1647,7 @@ mwifiex_cmd_tdls_oper(struct mwifiex_private *priv, ...@@ -1647,7 +1647,7 @@ mwifiex_cmd_tdls_oper(struct mwifiex_private *priv,
timeout = (void *)(pos + config_len); timeout = (void *)(pos + config_len);
timeout->header.type = cpu_to_le16(TLV_TYPE_TDLS_IDLE_TIMEOUT); timeout->header.type = cpu_to_le16(TLV_TYPE_TDLS_IDLE_TIMEOUT);
timeout->header.len = cpu_to_le16(sizeof(timeout->value)); timeout->header.len = cpu_to_le16(sizeof(timeout->value));
timeout->value = cpu_to_le16(MWIFIEX_TDLS_IDLE_TIMEOUT); timeout->value = cpu_to_le16(MWIFIEX_TDLS_IDLE_TIMEOUT_IN_SEC);
config_len += sizeof(struct mwifiex_ie_types_tdls_idle_timeout); config_len += sizeof(struct mwifiex_ie_types_tdls_idle_timeout);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment