From 61fe369b700a66a3f4c92cf6fa101b033ee6b42a Mon Sep 17 00:00:00 2001 From: Kris Muthusamy Date: Mon, 20 Feb 2017 02:35:47 -0800 Subject: [PATCH] qcacmn: Update missing HE MAC/PHY WMI capabilities Add HE Mac, PHY , MCS , OP & PPET in peer_assoc_params structure. Add HE PHY & PPET in wmi_host_mac_phy_caps structure. Populate HE params while sending WMI Peer assoc commands.Parse HE Phy & PPET while parsing Mac Phy TLV in Service ready extension event.Add required changes in psoc_service_ready header files. Change-Id: Ia2fc7f54634a7a0c98996e361e38b11b3b74a7a0 CRs-Fixed: 2009118 --- wmi_unified_tlv.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c index 284fed091d..f9ab0be5c3 100644 --- a/wmi_unified_tlv.c +++ b/wmi_unified_tlv.c @@ -1802,6 +1802,14 @@ static QDF_STATUS send_peer_assoc_cmd_tlv(wmi_unified_t wmi_handle, mcs->tx_max_rate = param->tx_max_rate; mcs->tx_mcs_set = param->tx_mcs_set; } + /* Update 11ax capabilities */ + cmd->peer_he_cap_info = param->peer_he_cap_macinfo; + cmd->peer_he_ops = param->peer_he_ops; + cmd->peer_he_mcs = param->peer_he_mcs; + qdf_mem_copy(&cmd->peer_he_cap_phy, ¶m->peer_he_cap_phyinfo, + sizeof(param->peer_he_cap_phyinfo)); + qdf_mem_copy(&cmd->peer_ppet, ¶m->peer_ppet, + sizeof(param->peer_ppet)); WMI_LOGD("%s: vdev_id %d associd %d peer_flags %x rate_caps %x " "peer_caps %x listen_intval %d ht_caps %x max_mpdu %d " @@ -13519,6 +13527,16 @@ static QDF_STATUS extract_mac_phy_cap_service_ready_ext_tlv( param->he_supp_mcs_5G = mac_phy_caps->he_supp_mcs_5G; param->tx_chain_mask_5G = mac_phy_caps->tx_chain_mask_5G; param->rx_chain_mask_5G = mac_phy_caps->rx_chain_mask_5G; + qdf_mem_copy(¶m->he_cap_phy_info_2G, + &mac_phy_caps->he_cap_phy_info_2G, + sizeof(param->he_cap_phy_info_2G)); + qdf_mem_copy(¶m->he_cap_phy_info_5G, + &mac_phy_caps->he_cap_phy_info_5G, + sizeof(param->he_cap_phy_info_5G)); + qdf_mem_copy(¶m->he_ppet2G, &mac_phy_caps->he_ppet2G, + sizeof(param->he_ppet2G)); + qdf_mem_copy(¶m->he_ppet5G, &mac_phy_caps->he_ppet5G, + sizeof(param->he_ppet5G)); return QDF_STATUS_SUCCESS; }