mt7603: fix wcid leak

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-02-19 09:26:42 +01:00
parent 6e55d288c3
commit 33189cedfa
3 changed files with 9 additions and 1 deletions
+6
View File
@@ -84,6 +84,12 @@ int mt76_insert_hdr_pad(struct sk_buff *skb);
void mt76_remove_hdr_pad(struct sk_buff *skb);
int mt76_wcid_alloc(unsigned long *mask, int size);
static inline void
mt76_wcid_free(unsigned long *mask, int idx)
{
mask[idx / BITS_PER_LONG] &= ~BIT(idx % BITS_PER_LONG);
}
static inline void
mt76_skb_set_moredata(struct sk_buff *skb, bool enable)
{