ath6kl: Add wmi meta data information only it is available

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
Vasanthakumar Thiagarajan 2011-08-22 20:40:21 +05:30 committed by Kalle Valo
parent 8af123e8ee
commit 3ce6ff501c

View file

@ -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));