qcacld-3.0: Remove the redundant conditional logic
The same code is executed regardless of the conditioal logic, so remove the redundant conditional block. Change-Id: I46688f9e7b159a77dd3a2fa977e98237abe1777a CRs-Fixed: 2232937
This commit is contained in:
parent
a3d5c27286
commit
b503c7c27d
@ -1591,30 +1591,12 @@ lim_populate_own_rate_set(tpAniSirGlobal mac_ctx,
|
||||
if (sirIsArate(temp_rate_set.rate[min] & 0x7f))
|
||||
is_arate = 1;
|
||||
|
||||
/*
|
||||
* HAL needs to know whether the rate is basic rate or
|
||||
* not, as it needs to update the response rate table
|
||||
* accordingly. e.g. if one of the 11a rates is
|
||||
* basic rate, then that rate can be used for sending
|
||||
* control frames.
|
||||
* HAL updates the response rate table whenever basic
|
||||
* rate set is changed.
|
||||
*/
|
||||
if (basic_only && temp_rate_set.rate[min] & 0x80) {
|
||||
if (is_arate)
|
||||
rates->llaRates[a_rate_index++] =
|
||||
temp_rate_set.rate[min];
|
||||
else
|
||||
rates->llbRates[b_rate_index++] =
|
||||
temp_rate_set.rate[min];
|
||||
} else {
|
||||
if (is_arate)
|
||||
rates->llaRates[a_rate_index++] =
|
||||
temp_rate_set.rate[min];
|
||||
else
|
||||
rates->llbRates[b_rate_index++] =
|
||||
temp_rate_set.rate[min];
|
||||
}
|
||||
if (is_arate)
|
||||
rates->llaRates[a_rate_index++] =
|
||||
temp_rate_set.rate[min];
|
||||
else
|
||||
rates->llbRates[b_rate_index++] =
|
||||
temp_rate_set.rate[min];
|
||||
temp_rate_set.rate[min] = 0xff;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user