OSDN Git Service

wifi: ath11k: Relocate the func ath11k_mac_bitrate_mask_num_ht_rates() and change...
authorMaharaja Kennadyrajan <quic_mkenna@quicinc.com>
Tue, 9 May 2023 17:07:23 +0000 (20:07 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 17 May 2023 08:18:42 +0000 (11:18 +0300)
commit570eec3d40505c30babbe3b8f85a38496c975ab2
tree90b6eab4c9c5d8709c17b5bb18b9ffd630d29124
parent1fd2c3f93c3e232290a25a8ef8a48d0fb6c702ad
wifi: ath11k: Relocate the func ath11k_mac_bitrate_mask_num_ht_rates() and change hweight16 to hweight8

Relocate the function ath11k_mac_bitrate_mask_num_ht_rates() definition
to call this function from other functions which helps to avoid the
compilation error (function not defined).

ht_mcs[] is 1 byte array and it is enough to use hweight8() instead
of hweight16(). Hence, fixed the same.

Tested on: Compile tested only.

Signed-off-by: Maharaja Kennadyrajan <quic_mkenna@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230504092033.3542456-2-quic_mkenna@quicinc.com
drivers/net/wireless/ath/ath11k/mac.c