From: Vasanthakumar Thiagarajan Date: Mon, 22 Aug 2011 15:10:21 +0000 (+0530) Subject: ath6kl: Add wmi meta data information only it is available X-Git-Tag: MMI-PSA29.97-13-9~18194^2~83^2~133^2~86 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ce6ff501c92e15314f450edc2e93653a7325780;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath6kl: Add wmi meta data information only it is available Signed-off-by: Vasanthakumar Thiagarajan Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index 13b1a20cef09..d116d0e337de 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c @@ -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));