forked from rubenslte/android_kernel_samsung_msm8226
Wlan: Correct ext IE in Assoc req
qcacld-2.0 to prima propagation Add the changes to add ext IEs in assoc req based on extended IEs host is getting from framework. CRs-Fixed: 977188 Change-Id: Idacfa287d17a2409f054421229d04ff087aa28d8
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
ef024cdb5f
commit
d4c2d6a92d
@@ -2310,22 +2310,9 @@ limSendAssocReqMgmtFrame(tpAniSirGlobal pMac,
|
||||
*/
|
||||
else
|
||||
{
|
||||
if (extractedExtCap.interworkingService ||
|
||||
extractedExtCap.bssTransition)
|
||||
{
|
||||
if (extractedExtCap.interworkingService)
|
||||
extractedExtCap.qosMap = 1;
|
||||
}
|
||||
/* No need to merge the EXT Cap from Supplicant
|
||||
* if interworkingService or bsstransition is not set,
|
||||
* as currently driver is only interested in interworkingService
|
||||
* and bsstransition capability from supplicant. if in
|
||||
* future any other EXT Cap info is required from
|
||||
* supplicant it needs to be handled here.
|
||||
*/
|
||||
else
|
||||
{
|
||||
extractedExtCapFlag = eANI_BOOLEAN_FALSE;
|
||||
}
|
||||
extractedExtCapFlag = lim_is_ext_cap_ie_present(&extractedExtCap);
|
||||
}
|
||||
|
||||
caps = pMlmAssocReq->capabilityInfo;
|
||||
|
||||
@@ -8540,3 +8540,24 @@ bool lim_is_robust_mgmt_action_frame(uint8 action_catagory)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* lim_is_ext_cap_ie_present - checks if ext ie is present
|
||||
* @ext_cap: extended IEs structure
|
||||
*
|
||||
* Return: true if ext IEs are present else false
|
||||
*/
|
||||
bool lim_is_ext_cap_ie_present (tDot11fIEExtCap *ext_cap)
|
||||
{
|
||||
int i, size;
|
||||
uint8_t *tmp_buf;
|
||||
|
||||
tmp_buf = (uint8_t *) ext_cap;
|
||||
size = sizeof(*ext_cap);
|
||||
|
||||
for (i = 0; i < size; i++)
|
||||
if (tmp_buf[i])
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -559,5 +559,6 @@ void limDecrementPendingMgmtCount (tpAniSirGlobal pMac);
|
||||
|
||||
eHalStatus limTxBdComplete(tpAniSirGlobal pMac, void *pData);
|
||||
bool lim_is_robust_mgmt_action_frame(uint8 action_catagory);
|
||||
bool lim_is_ext_cap_ie_present (tDot11fIEExtCap *ext_cap);
|
||||
|
||||
#endif /* __LIM_UTILS_H */
|
||||
|
||||
Reference in New Issue
Block a user