qcacmn: Rename TX_DECAP_TYPE to TX_ENCAP_TYPE

The macros attributing the Tx encap type have been erroneously
named as TX decap.

Rename all occurences of TX_DECAP_* to TX_ENCAP_*. Also add support
to send WMI vdev params for tx_encap and rx_decap values.

CRs-Fixed: 2533710
Change-Id: Id6ef2955868010b264e76d2a416d22d30d2acedc
This commit is contained in:
Aditya Sathish
2019-10-01 17:44:44 +05:30
committed by nshrivas
parent 34a2ef695d
commit fbf9ece75d
4 changed files with 15 additions and 7 deletions

View File

@@ -92,7 +92,7 @@ enum wlan_mlme_cfg_id {
WLAN_MLME_CFG_TYPE,
WLAN_MLME_CFG_SUBTYPE,
WLAN_MLME_CFG_UAPSD,
WLAN_MLME_CFG_TX_DECAP_TYPE,
WLAN_MLME_CFG_TX_ENCAP_TYPE,
WLAN_MLME_CFG_RX_DECAP_TYPE,
WLAN_MLME_CFG_RATEMASK_TYPE,
WLAN_MLME_CFG_RATEMASK_LOWER32,

View File

@@ -348,13 +348,15 @@ wlan_util_vdev_mlme_set_param(struct vdev_mlme_obj *vdev_mlme,
case WLAN_MLME_CFG_UAPSD:
mlme_proto->sta.uapsd_cfg = mlme_cfg.value;
break;
case WLAN_MLME_CFG_TX_DECAP_TYPE:
mlme_mgmt->generic.tx_decap_type = mlme_cfg.value;
case WLAN_MLME_CFG_TX_ENCAP_TYPE:
is_wmi_cmd = true;
mlme_mgmt->generic.tx_encap_type = mlme_cfg.value;
tgt_vdev_mgr_set_tx_rx_decap_type(vdev_mlme,
WLAN_MLME_CFG_TX_DECAP_TYPE,
WLAN_MLME_CFG_TX_ENCAP_TYPE,
mlme_cfg.value);
break;
case WLAN_MLME_CFG_RX_DECAP_TYPE:
is_wmi_cmd = true;
mlme_mgmt->generic.rx_decap_type = mlme_cfg.value;
tgt_vdev_mgr_set_tx_rx_decap_type(vdev_mlme,
WLAN_MLME_CFG_RX_DECAP_TYPE,