|
@@ -4904,6 +4904,32 @@ ath10k_wmi_op_gen_addba_clear_resp(struct ath10k *ar, u32 vdev_id,
|
|
|
return skb;
|
|
|
}
|
|
|
|
|
|
+static struct sk_buff *
|
|
|
+ath10k_wmi_op_gen_addba_send(struct ath10k *ar, u32 vdev_id, const u8 *mac,
|
|
|
+ u32 tid, u32 buf_size)
|
|
|
+{
|
|
|
+ struct wmi_addba_send_cmd *cmd;
|
|
|
+ struct sk_buff *skb;
|
|
|
+
|
|
|
+ if (!mac)
|
|
|
+ return ERR_PTR(-EINVAL);
|
|
|
+
|
|
|
+ skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd));
|
|
|
+ if (!skb)
|
|
|
+ return ERR_PTR(-ENOMEM);
|
|
|
+
|
|
|
+ cmd = (struct wmi_addba_send_cmd *)skb->data;
|
|
|
+ cmd->vdev_id = __cpu_to_le32(vdev_id);
|
|
|
+ ether_addr_copy(cmd->peer_macaddr.addr, mac);
|
|
|
+ cmd->tid = __cpu_to_le32(tid);
|
|
|
+ cmd->buffersize = __cpu_to_le32(buf_size);
|
|
|
+
|
|
|
+ ath10k_dbg(ar, ATH10K_DBG_WMI,
|
|
|
+ "wmi addba send vdev_id 0x%X mac_addr %pM tid %u bufsize %u\n",
|
|
|
+ vdev_id, mac, tid, buf_size);
|
|
|
+ return skb;
|
|
|
+}
|
|
|
+
|
|
|
static const struct wmi_ops wmi_ops = {
|
|
|
.rx = ath10k_wmi_op_rx,
|
|
|
.map_svc = wmi_main_svc_map,
|
|
@@ -4956,6 +4982,7 @@ static const struct wmi_ops wmi_ops = {
|
|
|
.gen_pdev_set_quiet_mode = ath10k_wmi_op_gen_pdev_set_quiet_mode,
|
|
|
/* .gen_pdev_get_temperature not implemented */
|
|
|
.gen_addba_clear_resp = ath10k_wmi_op_gen_addba_clear_resp,
|
|
|
+ .gen_addba_send = ath10k_wmi_op_gen_addba_send,
|
|
|
};
|
|
|
|
|
|
static const struct wmi_ops wmi_10_1_ops = {
|
|
@@ -5011,6 +5038,7 @@ static const struct wmi_ops wmi_10_1_ops = {
|
|
|
.gen_pktlog_disable = ath10k_wmi_op_gen_pktlog_disable,
|
|
|
.gen_pdev_set_quiet_mode = ath10k_wmi_op_gen_pdev_set_quiet_mode,
|
|
|
.gen_addba_clear_resp = ath10k_wmi_op_gen_addba_clear_resp,
|
|
|
+ .gen_addba_send = ath10k_wmi_op_gen_addba_send,
|
|
|
};
|
|
|
|
|
|
static const struct wmi_ops wmi_10_2_ops = {
|
|
@@ -5067,6 +5095,7 @@ static const struct wmi_ops wmi_10_2_ops = {
|
|
|
.gen_pktlog_disable = ath10k_wmi_op_gen_pktlog_disable,
|
|
|
.gen_pdev_set_quiet_mode = ath10k_wmi_op_gen_pdev_set_quiet_mode,
|
|
|
.gen_addba_clear_resp = ath10k_wmi_op_gen_addba_clear_resp,
|
|
|
+ .gen_addba_send = ath10k_wmi_op_gen_addba_send,
|
|
|
};
|
|
|
|
|
|
static const struct wmi_ops wmi_10_2_4_ops = {
|
|
@@ -5123,6 +5152,7 @@ static const struct wmi_ops wmi_10_2_4_ops = {
|
|
|
.gen_pktlog_disable = ath10k_wmi_op_gen_pktlog_disable,
|
|
|
.gen_pdev_set_quiet_mode = ath10k_wmi_op_gen_pdev_set_quiet_mode,
|
|
|
.gen_addba_clear_resp = ath10k_wmi_op_gen_addba_clear_resp,
|
|
|
+ .gen_addba_send = ath10k_wmi_op_gen_addba_send,
|
|
|
};
|
|
|
|
|
|
int ath10k_wmi_attach(struct ath10k *ar)
|