aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/wmi-ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi-ops.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi-ops.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi-ops.h b/drivers/net/wireless/ath/ath10k/wmi-ops.h
index 3a3d15e65e0a..546970259de2 100644
--- a/drivers/net/wireless/ath/ath10k/wmi-ops.h
+++ b/drivers/net/wireless/ath/ath10k/wmi-ops.h
@@ -129,6 +129,10 @@ struct wmi_ops {
129 struct sk_buff *(*gen_delba_send)(struct ath10k *ar, u32 vdev_id, 129 struct sk_buff *(*gen_delba_send)(struct ath10k *ar, u32 vdev_id,
130 const u8 *mac, u32 tid, u32 initiator, 130 const u8 *mac, u32 tid, u32 initiator,
131 u32 reason); 131 u32 reason);
132 struct sk_buff *(*gen_bcn_tmpl)(struct ath10k *ar, u32 vdev_id,
133 u32 tim_ie_offset, struct sk_buff *bcn,
134 u32 prb_caps, u32 prb_erp,
135 void *prb_ies, size_t prb_ies_len);
132}; 136};
133 137
134int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id); 138int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id);
@@ -935,4 +939,23 @@ ath10k_wmi_delba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac,
935 ar->wmi.cmd->delba_send_cmdid); 939 ar->wmi.cmd->delba_send_cmdid);
936} 940}
937 941
942static inline int
943ath10k_wmi_bcn_tmpl(struct ath10k *ar, u32 vdev_id, u32 tim_ie_offset,
944 struct sk_buff *bcn, u32 prb_caps, u32 prb_erp,
945 void *prb_ies, size_t prb_ies_len)
946{
947 struct sk_buff *skb;
948
949 if (!ar->wmi.ops->gen_bcn_tmpl)
950 return -EOPNOTSUPP;
951
952 skb = ar->wmi.ops->gen_bcn_tmpl(ar, vdev_id, tim_ie_offset, bcn,
953 prb_caps, prb_erp, prb_ies,
954 prb_ies_len);
955 if (IS_ERR(skb))
956 return PTR_ERR(skb);
957
958 return ath10k_wmi_cmd_send(ar, skb, ar->wmi.cmd->bcn_tmpl_cmdid);
959}
960
938#endif 961#endif