mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Assign listen interval based on INI setting
Current driver is assigning listening interval based on beacon interval
value which is incorrect.
Listen interval should be taken based on INI value.
CRs-Fixed: 2080042
Change-Id: I0ad52a8042589604d51fc632fe3ce31547a26628
This commit is contained in:
parent
1f389a9d65
commit
b3f4542d3e
1 changed files with 10 additions and 5 deletions
|
|
@ -3515,6 +3515,7 @@ tSirRetStatus lim_sta_send_add_bss(tpAniSirGlobal pMac, tpSirAssocRsp pAssocRsp,
|
|||
tDot11fIEVHTCaps *vht_caps = NULL;
|
||||
tDot11fIEVHTOperation *vht_oper = NULL;
|
||||
tAddStaParams *sta_context;
|
||||
uint32_t listen_interval = WNI_CFG_LISTEN_INTERVAL_STADEF;
|
||||
|
||||
/* Package SIR_HAL_ADD_BSS_REQ message parameters */
|
||||
pAddBssParams = qdf_mem_malloc(sizeof(tAddBssParams));
|
||||
|
|
@ -3697,8 +3698,10 @@ tSirRetStatus lim_sta_send_add_bss(tpAniSirGlobal pMac, tpSirAssocRsp pAssocRsp,
|
|||
|
||||
qdf_mem_copy(pAddBssParams->staContext.bssId,
|
||||
bssDescription->bssId, sizeof(tSirMacAddr));
|
||||
pAddBssParams->staContext.listenInterval =
|
||||
bssDescription->beaconInterval;
|
||||
if (wlan_cfg_get_int(pMac, WNI_CFG_LISTEN_INTERVAL, &listen_interval) !=
|
||||
eSIR_SUCCESS)
|
||||
pe_err("Couldn't get LISTEN_INTERVAL");
|
||||
pAddBssParams->staContext.listenInterval = listen_interval;
|
||||
|
||||
/* Fill Assoc id from the dph table */
|
||||
pStaDs = dph_lookup_hash_entry(pMac, pAddBssParams->staContext.bssId,
|
||||
|
|
@ -4033,6 +4036,7 @@ tSirRetStatus lim_sta_send_add_bss_pre_assoc(tpAniSirGlobal pMac, uint8_t update
|
|||
uint8_t chanWidthSupp = 0;
|
||||
tDot11fIEVHTOperation *vht_oper = NULL;
|
||||
tDot11fIEVHTCaps *vht_caps = NULL;
|
||||
uint32_t listen_interval = WNI_CFG_LISTEN_INTERVAL_STADEF;
|
||||
|
||||
tpSirBssDescription bssDescription =
|
||||
&psessionEntry->pLimJoinReq->bssDescription;
|
||||
|
|
@ -4241,9 +4245,10 @@ tSirRetStatus lim_sta_send_add_bss_pre_assoc(tpAniSirGlobal pMac, uint8_t update
|
|||
|
||||
qdf_mem_copy(pAddBssParams->staContext.bssId,
|
||||
bssDescription->bssId, sizeof(tSirMacAddr));
|
||||
pAddBssParams->staContext.listenInterval =
|
||||
bssDescription->beaconInterval;
|
||||
|
||||
if (wlan_cfg_get_int(pMac, WNI_CFG_LISTEN_INTERVAL, &listen_interval) !=
|
||||
eSIR_SUCCESS)
|
||||
pe_err("Couldn't get LISTEN_INTERVAL");
|
||||
pAddBssParams->staContext.listenInterval = listen_interval;
|
||||
pAddBssParams->staContext.assocId = 0;
|
||||
pAddBssParams->staContext.uAPSD = 0;
|
||||
pAddBssParams->staContext.maxSPLen = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue