ath10k: split tid calculation from tx function