mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
qcacmn: Correct tx_encap_type check
In exception path correct tx_encap_type check Change-Id: I777202f593d4f37b2d51f5c4c9d6cd3e183e911a
This commit is contained in:
parent
e2ff8ee254
commit
1ad9ff9026
1 changed files with 3 additions and 2 deletions
|
|
@ -1881,8 +1881,9 @@ static bool dp_check_exc_metadata(struct cdp_tx_exception_metadata *tx_exc)
|
|||
{
|
||||
bool invalid_tid = (tx_exc->tid > DP_MAX_TIDS && tx_exc->tid !=
|
||||
HTT_INVALID_TID);
|
||||
bool invalid_encap_type = (tx_exc->tid > DP_MAX_TIDS && tx_exc->tid !=
|
||||
HTT_INVALID_TID);
|
||||
bool invalid_encap_type =
|
||||
(tx_exc->tx_encap_type > htt_cmn_pkt_num_types &&
|
||||
tx_exc->tx_encap_type != CDP_INVALID_TX_ENCAP_TYPE);
|
||||
bool invalid_sec_type = (tx_exc->sec_type > cdp_num_sec_types &&
|
||||
tx_exc->sec_type != CDP_INVALID_SEC_TYPE);
|
||||
bool invalid_cookie = (tx_exc->is_tx_sniffer == 1 &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue