ath6kl: Add wmi meta data information only it is available
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Mon, 22 Aug 2011 15:10:21 +0000 (20:40 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 31 Aug 2011 07:10:54 +0000 (10:10 +0300)
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c

index 13b1a20cef0951a9450796f4597d9e33db6b6e7b..d116d0e337deaa87b3b29d1007b80ec8067d3298 100644 (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));
 
This page took 0.029169 seconds and 5 git commands to generate.