Explorar el Código

qcacld-3.0: Use correct enum type for function variable

Use correct enum type for function variable in hdd_reset_tcp_delack
& return type in iw_get_policy_manager_ut_ops.

Change-Id: Iec8a678410b90dbe081c007f1bbfaa31f255799e
CRs-Fixed: 2213784
Tushnim Bhattacharyya hace 7 años
padre
commit
dfbce70aaf
Se han modificado 2 ficheros con 2 adiciones y 5 borrados
  1. 1 1
      core/hdd/src/wlan_hdd_tx_rx.c
  2. 1 4
      core/hdd/src/wlan_hdd_wext.c

+ 1 - 1
core/hdd/src/wlan_hdd_tx_rx.c

@@ -2262,7 +2262,7 @@ void hdd_tx_queue_cb(void *context, uint32_t vdev_id,
  */
 void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx)
 {
-	enum pld_bus_width_type next_level = WLAN_SVC_TP_LOW;
+	enum wlan_tp_level next_level = WLAN_SVC_TP_LOW;
 	struct wlan_rx_tp_data rx_tp_data = {0};
 
 	rx_tp_data.rx_tp_flags |= TCP_DEL_ACK_IND;

+ 1 - 4
core/hdd/src/wlan_hdd_wext.c

@@ -7172,14 +7172,11 @@ static int iw_get_policy_manager_ut_ops(struct hdd_context *hdd_ctx,
 
 	case WE_POLICY_MANAGER_QUERY_ACTION_CMD:
 	{
-		enum policy_mgr_conc_next_action action;
-
 		hdd_debug("<iwpriv wlan0 pm_query_action> is called");
-		action = policy_mgr_current_connections_update(
+		policy_mgr_current_connections_update(
 			hdd_ctx->hdd_psoc,
 			adapter->session_id, apps_args[0],
 			POLICY_MGR_UPDATE_REASON_UT);
-		pr_info("next action is %d {HDD_NOP = 0, HDD_DBS, HDD_DBS_DOWNGRADE, HDD_MCC, HDD_MCC_UPGRADE}", action);
 	}
 	break;