mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: add headroom and tailroom to mt76_mcu_ops data structure
Introduce headroom and tailroom to mt76_mcu_ops data structure in order to unify the routine used for mcu message allocation. This is a preliminary patch to add mt7663u support Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
ea4f4d216d
commit
72c9380e70
+2
-1
@@ -62,7 +62,7 @@ mt7603_mcu_msg_send(struct mt76_dev *mdev, int cmd, const void *data,
|
||||
struct sk_buff *skb;
|
||||
int ret, seq;
|
||||
|
||||
skb = mt7603_mcu_msg_alloc(data, len);
|
||||
skb = mt76_mcu_msg_alloc(mdev, data, len);
|
||||
if (!skb)
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -265,6 +265,7 @@ out:
|
||||
int mt7603_mcu_init(struct mt7603_dev *dev)
|
||||
{
|
||||
static const struct mt76_mcu_ops mt7603_mcu_ops = {
|
||||
.headroom = sizeof(struct mt7603_mcu_txd),
|
||||
.mcu_send_msg = mt7603_mcu_msg_send,
|
||||
.mcu_restart = mt7603_mcu_restart,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user