diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-09-10 11:23:23 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-09-11 16:41:37 -0400 |
commit | 666a73f327d5a8fec58bbfedb36ae545862f479e (patch) | |
tree | d117f32e2897f7772a1441abc03e96066898213c | |
parent | ca5c671fb960712e274bf37dff8d6f5ebc02d40a (diff) |
ath10k: make ath10k_wmi_cmd_send() public
We need this function to send wmi packets from testmode.c.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index e7edc89cfcd0..67af370012f9 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -624,7 +624,7 @@ int ath10k_wmi_wait_for_unified_ready(struct ath10k *ar) | |||
624 | return ret; | 624 | return ret; |
625 | } | 625 | } |
626 | 626 | ||
627 | static struct sk_buff *ath10k_wmi_alloc_skb(struct ath10k *ar, u32 len) | 627 | struct sk_buff *ath10k_wmi_alloc_skb(struct ath10k *ar, u32 len) |
628 | { | 628 | { |
629 | struct sk_buff *skb; | 629 | struct sk_buff *skb; |
630 | u32 round_len = roundup(len, 4); | 630 | u32 round_len = roundup(len, 4); |
@@ -725,8 +725,7 @@ static void ath10k_wmi_op_ep_tx_credits(struct ath10k *ar) | |||
725 | wake_up(&ar->wmi.tx_credits_wq); | 725 | wake_up(&ar->wmi.tx_credits_wq); |
726 | } | 726 | } |
727 | 727 | ||
728 | static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, | 728 | int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id) |
729 | u32 cmd_id) | ||
730 | { | 729 | { |
731 | int ret = -EOPNOTSUPP; | 730 | int ret = -EOPNOTSUPP; |
732 | 731 | ||
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index bdb2e6cc0f4c..f8c1afbdb442 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h | |||
@@ -4737,6 +4737,10 @@ int ath10k_wmi_wait_for_service_ready(struct ath10k *ar); | |||
4737 | int ath10k_wmi_wait_for_unified_ready(struct ath10k *ar); | 4737 | int ath10k_wmi_wait_for_unified_ready(struct ath10k *ar); |
4738 | 4738 | ||
4739 | int ath10k_wmi_connect(struct ath10k *ar); | 4739 | int ath10k_wmi_connect(struct ath10k *ar); |
4740 | |||
4741 | struct sk_buff *ath10k_wmi_alloc_skb(struct ath10k *ar, u32 len); | ||
4742 | int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id); | ||
4743 | |||
4740 | int ath10k_wmi_pdev_set_channel(struct ath10k *ar, | 4744 | int ath10k_wmi_pdev_set_channel(struct ath10k *ar, |
4741 | const struct wmi_channel_arg *); | 4745 | const struct wmi_channel_arg *); |
4742 | int ath10k_wmi_pdev_suspend_target(struct ath10k *ar, u32 suspend_opt); | 4746 | int ath10k_wmi_pdev_suspend_target(struct ath10k *ar, u32 suspend_opt); |