Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6ce9875 authored by Jianmin Zhu's avatar Jianmin Zhu Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Don't compare original value when set tx max power

For STA+P2P concurrency case, once p2p disconnect, STA max tx power is
updated in F/W too per SAR by design,  app can't correct it since reconfig
same max tx power as original is refused by driver.

Fix by not comparing cached max tx power for each vdev in driver when set
max tx power, can set same value as original again to F/W directly.

Change-Id: Ic417946006f07be40aa34f1dc022d7fb5c4aa213
CRs-Fixed: 2996316
parent 62e8a648
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -358,10 +358,6 @@ void wma_set_max_tx_power(WMA_HANDLE handle,
	}

	iface = &wma_handle->interfaces[vdev_id];
	if (mlme_get_max_reg_power(iface->vdev) == tx_pwr_params->power) {
		ret = QDF_STATUS_SUCCESS;
		goto end;
	}
	prev_max_power = mlme_get_max_reg_power(iface->vdev);

	mlme_set_max_reg_power(iface->vdev, tx_pwr_params->power);