Explorar el Código

qcacmn: set txpow for frame and subframe

command:-
1. "iwpriv athx s_txpow param1 param2"
2. "iwpriv athx g_txpow param1"

param1 = frame_type<<8+frame_subtype param2 is power_value
if subtype == 0xff means set all subtype of that frame type

Change-Id: I8c68e1ca6a5829a3f0cf01b2c32c3332e1010243
CRs-Fixed: 2175241
Anirban Sirkhell hace 8 años
padre
commit
f31b24105b

+ 2 - 4
dp/inc/cdp_txrx_stats_struct.h

@@ -473,19 +473,17 @@ enum _ol_ath_param_t {
 #if DBDC_REPEATER_SUPPORT
 	OL_ATH_PARAM_DELAY_STAVAP_UP = 324,
 #endif
-	/* Can be used to configure transmit power for management frames */
-	OL_ATH_PARAM_TXPOW_MGMT = 326,
 	/* It is used to set the channel switch options */
 	OL_ATH_PARAM_CHANSWITCH_OPTIONS = 327,
 	OL_ATH_BTCOEX_ENABLE        = 328,
 	OL_ATH_BTCOEX_WL_PRIORITY   = 329,
 	OL_ATH_PARAM_TID_OVERRIDE_QUEUE_MAPPING = 330,
 	OL_ATH_PARAM_CAL_VER_CHECK = 331,
-	OL_ATH_PARAM_NO_VLAN = 332,
+	OL_ATH_PARAM_NO_VLAN       = 332,
 	OL_ATH_PARAM_CCA_THRESHOLD = 333,
 	OL_ATH_PARAM_ATF_LOGGING = 334,
 	OL_ATH_PARAM_STRICT_DOTH = 335,
-	OL_ATH_PARAM_DISCONNECTION_TIMEOUT = 336,
+	OL_ATH_PARAM_DISCONNECTION_TIMEOUT   = 336,
 	OL_ATH_PARAM_RECONFIGURATION_TIMEOUT = 337,
 	OL_ATH_PARAM_CHANNEL_SWITCH_COUNT = 338,
 	OL_ATH_PARAM_ALWAYS_PRIMARY = 339,

+ 1 - 0
wmi/inc/wmi_unified_param.h

@@ -5822,6 +5822,7 @@ typedef enum {
 	wmi_vdev_param_disable_cabq,
 
 	wmi_vdev_param_rate_dropdown_bmap,
+	wmi_vdev_param_tx_power,
 	wmi_vdev_param_max,
 } wmi_conv_vdev_param_id;
 

+ 1 - 0
wmi/src/wmi_unified_non_tlv.c

@@ -9288,6 +9288,7 @@ static void populate_vdev_param_non_tlv(uint32_t *vdev_param)
 	vdev_param[wmi_vdev_param_capabilities] =
 		WMI_VDEV_PARAM_CAPABILITIES;
 	vdev_param[wmi_vdev_param_mgmt_tx_power] = WMI_VDEV_PARAM_MGMT_TX_POWER;
+	vdev_param[wmi_vdev_param_tx_power] = WMI_VDEV_PARAM_TX_POWER;
 	vdev_param[wmi_vdev_param_atf_ssid_sched_policy] =
 		WMI_VDEV_PARAM_ATF_SSID_SCHED_POLICY;
 	vdev_param[wmi_vdev_param_disable_dyn_bw_rts] =