Skip to content

Commit

Permalink
mt76: mt7915: use BIT_ULL for omac_idx
Browse files Browse the repository at this point in the history
The omac_idx variable is u64 so we should use the 64-bit BIT_ULL().

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Ryder Lee authored and Felix Fietkau committed Dec 4, 2020
1 parent 078b6d2 commit 4812e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt76/mt7915/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static void mt7915_remove_interface(struct ieee80211_hw *hw,

mutex_lock(&dev->mt76.mutex);
phy->mt76->vif_mask &= ~BIT(mvif->idx);
phy->omac_mask &= ~BIT(mvif->omac_idx);
phy->omac_mask &= ~BIT_ULL(mvif->omac_idx);
mutex_unlock(&dev->mt76.mutex);

spin_lock_bh(&dev->sta_poll_lock);
Expand Down

0 comments on commit 4812e0b

Please sign in to comment.