[PATCH AUTOSEL 5.4 29/31] wifi: rtlwifi: add calculate_bit_shift()