summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt7603/beacon.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-03-11 14:09:53 +0100
committerKalle Valo <kvalo@codeaurora.org>2019-03-19 17:35:37 +0200
commitf2a00a821aacfa77985e4dbe83ed064c48a21bd5 (patch)
treea2adf5aa1f245a960b9fc49ab13e9eeaea0aa573 /drivers/net/wireless/mediatek/mt76/mt7603/beacon.c
parent40b941611bd4826b7e3e449f738af98ad22e1ce6 (diff)
mt76: mt7603: use the correct hweight8() function
__sw_hweight8() is only defined if CONFIG_GENERIC_HWEIGHT is enabled. The function that works on all architectures is hweight8(). Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7603/beacon.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7603/beacon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/beacon.c b/drivers/net/wireless/mediatek/mt76/mt7603/beacon.c
index afcd86f735b4..4dcb465095d1 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7603/beacon.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7603/beacon.c
@@ -135,8 +135,7 @@ void mt7603_pre_tbtt_tasklet(unsigned long arg)
out:
mt76_queue_tx_cleanup(dev, MT_TXQ_BEACON, false);
- if (dev->mt76.q_tx[MT_TXQ_BEACON].queued >
- __sw_hweight8(dev->beacon_mask))
+ if (dev->mt76.q_tx[MT_TXQ_BEACON].queued > hweight8(dev->beacon_mask))
dev->beacon_check++;
}