qcacld-3.0: Fix WAPI IoT issue

DUT can't connect some WAPI AP by ASCII due to
lim_process_assoc_rsp_frame: received Re/AssocRsp frame failure code:
40.
Current Some WAPI AP cannot accept Vendor Element ID:  221  length > 11,
and  reply reject ASSOC resp by reason code 40.
Because we extend Vendor Specific element to include MCS12/13 from HSP.
So only HSP meet this IOT issue.
Qualcomm Inc. - Specific
    Element ID:         221  Vendor Specific [71]
    Length:             15 [72]
    OUI:                8C-FD-F0 [73-75]
    Value:              (12 bytes) [76-87]  01 01 02 01 00 02 01
	    01 09 02 03 00

Change-Id: If766ef280b685100ff4a409309d56ead717f251b
CRs-Fixed: 2836011
This commit is contained in:
Jianmin Zhu 2020-12-14 12:09:24 +08:00 • committed by snandini
commit d1815eba72

View file

@ -1259,6 +1259,9 @@ static void populate_dot11f_qcn_ie_he_params(struct mac_context *mac,
{
uint16_t mcs_12_13_supp;
/* To fix WAPI IoT issue.*/
if (pe_session->encryptType == eSIR_ED_WPI)
return;
if (wlan_reg_is_24ghz_ch_freq(pe_session->curr_op_freq))
mcs_12_13_supp = mac->mlme_cfg->he_caps.he_mcs_12_13_supp_2g;
else