Commit 3ce6ff50 authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by Kalle Valo

ath6kl: Add wmi meta data information only it is available

Signed-off-by: default avatarVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 8af123e8
......@@ -167,9 +167,11 @@ int ath6kl_wmi_data_hdr_add(struct wmi *wmi, struct sk_buff *skb,
if (WARN_ON(skb == NULL))
return -EINVAL;
ret = ath6kl_wmi_meta_add(wmi, skb, &meta_ver, tx_meta_info);
if (ret)
return ret;
if (tx_meta_info) {
ret = ath6kl_wmi_meta_add(wmi, skb, &meta_ver, tx_meta_info);
if (ret)
return ret;
}
skb_push(skb, sizeof(struct wmi_data_hdr));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment