diff options
| author | Ganesh Babu Kumaravel <kganesh@qti.qualcomm.com> | 2014-02-23 22:30:57 +0530 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-02-26 02:56:05 -0800 |
| commit | 1d1b02fbad24dc2579f1a7a7f5f8e2dd7799c552 (patch) | |
| tree | f70d99aa5ee3e91626351f414d5a244ca36f10d0 | |
| parent | eef89095ef691f2c9392f32147527bc47e80c4b3 (diff) | |
qcacld:configure auto trigger params for be and bk properly
auto trigger params for be and bk are configured wrong because of
mismatch in tl ac enums and wma ac enums.
convert the tl ac values to wma ac values before configuring auto
trigger params.
Change-Id: I49a24c599cb158971d905c848f9ee7e8d8902f75
CRs-Fixed: 621636
| -rw-r--r-- | CORE/CLD_TXRX/TLSHIM/tl_shim.c | 20 | ||||
| -rw-r--r-- | CORE/SERVICES/WMA/wma.h | 6 |
2 files changed, 22 insertions, 4 deletions
diff --git a/CORE/CLD_TXRX/TLSHIM/tl_shim.c b/CORE/CLD_TXRX/TLSHIM/tl_shim.c index 77a682a3276b..17c9260ece85 100644 --- a/CORE/CLD_TXRX/TLSHIM/tl_shim.c +++ b/CORE/CLD_TXRX/TLSHIM/tl_shim.c @@ -1108,6 +1108,7 @@ VOS_STATUS WLANTL_EnableUAPSDForAC(void *vos_ctx, u_int8_t sta_id, tp_wma_handle wma_handle; t_wma_trigger_uapsd_params uapsd_params; struct txrx_tl_shim_ctx *tl_shim; + enum uapsd_ac access_category; ENTER(); @@ -1128,7 +1129,24 @@ VOS_STATUS WLANTL_EnableUAPSDForAC(void *vos_ctx, u_int8_t sta_id, return VOS_STATUS_E_FAILURE; } - uapsd_params.wmm_ac = ac; + switch (ac) { + case WLANTL_AC_BK: + access_category = UAPSD_BK; + break; + case WLANTL_AC_BE: + access_category = UAPSD_BE; + break; + case WLANTL_AC_VI: + access_category = UAPSD_VI; + break; + case WLANTL_AC_VO: + access_category = UAPSD_VO; + break; + default: + return VOS_STATUS_E_FAILURE; + } + + uapsd_params.wmm_ac = access_category; uapsd_params.user_priority = pri; uapsd_params.service_interval = srvc_int; uapsd_params.delay_interval = tl_shim->delay_interval; diff --git a/CORE/SERVICES/WMA/wma.h b/CORE/SERVICES/WMA/wma.h index 6be5c860b109..45781524b048 100644 --- a/CORE/SERVICES/WMA/wma.h +++ b/CORE/SERVICES/WMA/wma.h @@ -1453,10 +1453,10 @@ u_int16_t dfs_usenol(struct ieee80211com *ic); /* U-APSD Access Categories */ enum uapsd_ac { - UAPSD_VO, - UAPSD_VI, + UAPSD_BE, UAPSD_BK, - UAPSD_BE + UAPSD_VI, + UAPSD_VO }; VOS_STATUS wma_disable_uapsd_per_ac(tp_wma_handle wma_handle, |
