diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2022-06-30 15:55:18 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-07-11 14:38:17 +0300 |
commit | 08ea730c11309d38bdddf82c9400ce972ecf4b74 (patch) | |
tree | ea01401241a99661f976734276a500be3015b4c5 /mt76.h | |
parent | a2d61f4f4063513e96d3373afddcfbd8f889dcee (diff) |
mt76: add len parameter to __mt76_mcu_msg_alloc signature
Introduce len to __mt76_mcu_msg_alloc signature in order to add the
capability to specify two different value for allocation and copy length.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Diffstat (limited to 'mt76.h')
-rw-r--r-- | mt76.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1343,12 +1343,12 @@ int mt76s_rd_rp(struct mt76_dev *dev, u32 base, struct sk_buff * __mt76_mcu_msg_alloc(struct mt76_dev *dev, const void *data, - int data_len, gfp_t gfp); + int len, int data_len, gfp_t gfp); static inline struct sk_buff * mt76_mcu_msg_alloc(struct mt76_dev *dev, const void *data, int data_len) { - return __mt76_mcu_msg_alloc(dev, data, data_len, GFP_KERNEL); + return __mt76_mcu_msg_alloc(dev, data, data_len, data_len, GFP_KERNEL); } void mt76_mcu_rx_event(struct mt76_dev *dev, struct sk_buff *skb); |