[PATCH AUTOSEL 5.15 40/47] wifi: rtlwifi: add calculate_bit_shift()