wifi: mt76: initialize more wcid fields mt76_wcid_init

Reduces code duplication and ensures that the phy index is always set.

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2024-10-22 10:18:59 +02:00
parent dcc6f158d7
commit d388deab9e
9 changed files with 18 additions and 31 deletions
+1 -1
View File
@@ -1770,7 +1770,7 @@ mt76_token_put(struct mt76_dev *dev, int token)
return txwi;
}
void mt76_wcid_init(struct mt76_wcid *wcid);
void mt76_wcid_init(struct mt76_wcid *wcid, u8 band_idx);
void mt76_wcid_cleanup(struct mt76_dev *dev, struct mt76_wcid *wcid);
static inline void