Re: [PATCH 31/50] wifi: ath12k: add mac.c

Kalle Valo
2022-09-05T18:57:48Z

Ping-Ke Shih <pkshih@realtek.com> writes:

>> +static int get_num_chains(u32 mask)
>> +{
>> + int num_chains = 0;
>> +
>> + while (mask) {
>> + if (mask & BIT(0))
>> + num_chains++;
>> + mask >>= 1;
>> + }
>> +
>> + return num_chains;
>> +}
>
> use hweight32()?

Yup, we'll fix that. Thanks!

--