[PATCH AUTOSEL 4.19 20/22] wifi: rtlwifi: add calculate_bit_shift()