summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@qca.qualcomm.com>2015-02-12 12:47:13 -0800
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-02-23 15:07:36 +0530
commita058be2012f75d85ee0d07da4fc1e21a55f37d71 (patch)
treebe354b42b3e4f55639edf57f8c3a245ea97b363e
parentebf627633d2df059f4579cac6664bd4458c2af51 (diff)
qcacld-2.0: P2P connection failed with ctsVerifier
This is prima to qcacld-2.0 propagation. CtsVerifier sends wait time as 5000msec while driver has max wait time as 1000 msec. Kernel checks if supplicant wait time exceeds driver max. wait time and return failure. As a result action frame failed to send on the air. As a part of fix increased max. driver wait time to 5000 msec. Change-Id: I589f1ed08241388f3884c9fa69792b28dcd88a00 CRs-Fixed: 795215
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index f66d452581ed..3fcc28eb1185 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -121,6 +121,11 @@
#define GET_IE_LEN_IN_BSS_DESC(lenInBss) ( lenInBss + sizeof(lenInBss) - \
((uintptr_t)OFFSET_OF( tSirBssDescription, ieFields)))
+/*
+ * Android CTS verifier needs atleast this much wait time (in msec)
+ */
+#define MAX_REMAIN_ON_CHANNEL_DURATION (5000)
+
/* For IBSS, enable obss, fromllb, overlapOBSS & overlapFromllb protection
check. The bit map is defined in:
@@ -5802,7 +5807,7 @@ int wlan_hdd_cfg80211_init(struct device *dev,
/*signal strength in mBm (100*dBm) */
wiphy->signal_type = CFG80211_SIGNAL_TYPE_MBM;
- wiphy->max_remain_on_channel_duration = 1000;
+ wiphy->max_remain_on_channel_duration = MAX_REMAIN_ON_CHANNEL_DURATION;
wiphy->n_vendor_commands = ARRAY_SIZE(hdd_wiphy_vendor_commands);
wiphy->vendor_commands = hdd_wiphy_vendor_commands;