[PATCH 5.10 130/286] wifi: rtlwifi: add calculate_bit_shift()