qcacld-3.0: Remove unwanted variable while parsing TPE IE

Currently while parsing tpe use_local_tpe is updated
based on local or reg tpe count which is not used.
both tpe present can be updated without use_local_tpe.
So remove use_local_tpe.

Change-Id: If20d23cc8a7d35a0a38c60c866c787f5a325826e
CRs-Fixed: 3634751
Este commit está contenido en:
Sheenam Monga
2023-10-09 11:56:26 +05:30
cometido por Ravindra Konda
padre a8110af0e3
commit ab2e049910

Ver fichero

@@ -5566,7 +5566,7 @@ void lim_parse_tpe_ie(struct mac_context *mac, struct pe_session *session,
* PSD is power spectral density, incoming TPE could contain
* non PSD info, or PSD info, or both, so need to keep track of them
*/
bool use_local_tpe, non_psd_set = false, psd_set = false;
bool non_psd_set = false, psd_set = false;
bool both_tpe_present = false;
bool local_eirp_set = false, local_psd_set = false;
bool reg_eirp_set = false, reg_psd_set = false;
@@ -5605,11 +5605,7 @@ void lim_parse_tpe_ie(struct mac_context *mac, struct pe_session *session,
if (!reg_tpe_count && !local_tpe_count)
return;
else if (!reg_tpe_count)
use_local_tpe = true;
else if (!local_tpe_count)
use_local_tpe = false;
else
else if (reg_tpe_count && local_tpe_count)
both_tpe_present = true;
for (i = 0; i < num_tpe_ies; i++) {