mt76: mt7615: implement probing and firmware loading on MT7622
[linux-2.6-microblaze.git] / drivers / net / wireless / mediatek / mt76 / util.h
index fe3479c..48a71e7 100644 (file)
 
 int mt76_wcid_alloc(unsigned long *mask, int size);
 
+static inline bool
+mt76_wcid_mask_test(unsigned long *mask, int idx)
+{
+       return mask[idx / BITS_PER_LONG] & BIT(idx % BITS_PER_LONG);
+}
+
+static inline void
+mt76_wcid_mask_set(unsigned long *mask, int idx)
+{
+       mask[idx / BITS_PER_LONG] |= BIT(idx % BITS_PER_LONG);
+}
+
 static inline void
-mt76_wcid_free(unsigned long *mask, int idx)
+mt76_wcid_mask_clear(unsigned long *mask, int idx)
 {
        mask[idx / BITS_PER_LONG] &= ~BIT(idx % BITS_PER_LONG);
 }