mt76: Use the correct hweight8() function
authorBen Hutchings <ben@decadent.org.uk>
Tue, 12 Feb 2019 15:36:24 +0000 (15:36 +0000)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Feb 2019 19:10:28 +0000 (20:10 +0100)
commitd0ff23c1107e8c6ddc7534cafb65844b292b1540
treedb1c8cb1d0dcda468d2b09a3207a8a76c15404eb
parent3eeb7c062d88cd3d9a7c0deac71bb1b48ac99c30
mt76: Use the correct hweight8() function

mt76_init_stream_cap() and mt76_get_txpower() call __sw_hweight8()
directly, but that's only defined if CONFIG_GENERIC_HWEIGHT is
enabled.  The function that works on all architectures is hweight8().

Fixes: 551e1ef4d291 ("mt76: add mt76_init_stream_cap routine")
Fixes: 9313faacbb4e ("mt76: move mt76x02_get_txpower to mt76 core")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c