Merge "Cleaning up select_tx_mode() function."