summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepthi Gowri <deepthi@codeaurora.org>2016-08-30 15:48:32 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-09-14 23:37:50 -0700
commit018a8ab8c677dfc0aa1ace55ec07a82ea507a3fd (patch)
tree7cb104e5495af5fc4376af96d37682e905e3f819
parentf039cdf2a2241510987db42a08dbfb38741a550e (diff)
qcacld-2.0: Set the NOA parameters correctly
1. Currently NOA Interval is set to 100ms. Set the NOA interval to beacon interval which is 102.4ms. 2. Set the NOA start time as 25% of the NOA interval CRs-Fixed: 1053212 Change-Id: I4f36473f50c6994711cae6befc269c68ab91fe78
-rw-r--r--CORE/HDD/inc/wlan_hdd_p2p.h1
-rw-r--r--CORE/HDD/src/wlan_hdd_p2p.c3
-rw-r--r--CORE/SERVICES/WMA/wma.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_p2p.h b/CORE/HDD/inc/wlan_hdd_p2p.h
index cdaef93e4258..4126fc30e684 100644
--- a/CORE/HDD/inc/wlan_hdd_p2p.h
+++ b/CORE/HDD/inc/wlan_hdd_p2p.h
@@ -72,6 +72,7 @@ enum hdd_rx_flags {
#define P2P_POWER_SAVE_TYPE_OPPORTUNISTIC (1 << 0)
#define P2P_POWER_SAVE_TYPE_PERIODIC_NOA (1 << 1)
#define P2P_POWER_SAVE_TYPE_SINGLE_NOA (1 << 2)
+#define NOA_INTERVAL_IN_TU 102400
#ifdef WLAN_FEATURE_P2P_DEBUG
typedef enum { P2P_NOT_ACTIVE,
diff --git a/CORE/HDD/src/wlan_hdd_p2p.c b/CORE/HDD/src/wlan_hdd_p2p.c
index 1ea663e5f04a..5ae88814653c 100644
--- a/CORE/HDD/src/wlan_hdd_p2p.c
+++ b/CORE/HDD/src/wlan_hdd_p2p.c
@@ -2040,7 +2040,8 @@ int hdd_setP2pNoa( struct net_device *dev, tANI_U8 *command )
NoA.single_noa_duration = 0;
NoA.psSelection = P2P_POWER_SAVE_TYPE_PERIODIC_NOA;
}
- NoA.interval = MS_TO_MUS(100);
+ /* NOA interval in TU */
+ NoA.interval = NOA_INTERVAL_IN_TU;
NoA.count = count;
NoA.sessionid = pAdapter->sessionId;
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index 374615bfc9d9..c9e2626426b8 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -26592,7 +26592,8 @@ static void wma_set_p2pgo_noa_Req(tp_wma_handle wma,
noa_discriptor->type_count = noa->count;
noa_discriptor->duration = duration;
noa_discriptor->interval = noa->interval;
- noa_discriptor->start_time = 0;
+ /* Set the NOA start time as 25% of the NOA Interval as an offset */
+ noa_discriptor->start_time = noa_discriptor->interval/4;
WMA_LOGI("SET P2P GO NOA:vdev_id:%d count:%d duration:%d interval:%d",
cmd->vdev_id, noa->count, noa_discriptor->duration,