mwifiex: define TDLS idle timeout macro with units
authorBing Zhao <bzhao@marvell.com>
Sat, 12 Jul 2014 03:57:13 +0000 (20:57 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jul 2014 20:00:07 +0000 (16:00 -0400)
The unit of this timeout is in seconds.

Reported-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/sta_cmd.c

index 5561573452bb4a27cc92a6ae490303448ea0e103..49da2d53d29455830fb9958bc4ab7dbbcd5d5666 100644 (file)
@@ -713,7 +713,7 @@ struct mwifiex_ie_types_vendor_param_set {
        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_header header;
index 0f077aaadab6be43441f3f5be535490e2059b72e..733de92a4c611e39da93fb580a272203d269e54f 100644 (file)
@@ -1647,7 +1647,7 @@ mwifiex_cmd_tdls_oper(struct mwifiex_private *priv,
                timeout = (void *)(pos + config_len);
                timeout->header.type = cpu_to_le16(TLV_TYPE_TDLS_IDLE_TIMEOUT);
                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);
 
                break;