[PATCH 5.15 155/374] wifi: rtlwifi: add calculate_bit_shift()