Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/mt76.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mt76.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2022-06-30 15:55:18 +0300
committerFelix Fietkau <nbd@nbd.name>2022-07-11 14:38:17 +0300
commit08ea730c11309d38bdddf82c9400ce972ecf4b74 (patch)
treeea01401241a99661f976734276a500be3015b4c5 /mt76.h
parenta2d61f4f4063513e96d3373afddcfbd8f889dcee (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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mt76.h b/mt76.h
index f25f2dad..0a86afbe 100644
--- a/mt76.h
+++ b/mt76.h
@@ -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);