[NEUS7920-218] [9610] wlbt: Remove tx_lifetime in non-debug builds
authorAlbert Cano <a.canocamps@samsung.com>
Mon, 15 Apr 2019 07:38:58 +0000 (08:38 +0100)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:05 +0000 (23:45 +0900)
Remove tx_lifetime in non-debug builds as it might be
very verbose, logring should be used instead.

Change-Id: I025dd1ad156807bee576751a6b70066ef373a44a
SCSC-Bug-Id: SSB-51737
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
drivers/net/wireless/scsc/sap_ma.c

index 35b7936b04e80aaa5fc4573d04ec2a568cf6c5e0..694a3587f1a905941dfb76d041364f798c1ddfb5 100755 (executable)
@@ -465,10 +465,12 @@ static int slsi_rx_data_cfm(struct slsi_dev *sdev, struct net_device *dev, struc
                      fapi_get_vif(skb),
                      host_tag,
                      fapi_get_u16(skb, u.ma_unitdata_cfm.transmission_status));
+#ifdef CONFIG_SCSC_WLAN_DEBUG
        if (fapi_get_u16(skb, u.ma_unitdata_cfm.transmission_status) == FAPI_TRANSMISSIONSTATUS_TX_LIFETIME) {
                if (printk_ratelimit())
                        SLSI_NET_WARN(dev, "ma_unitdata_cfm: tx_lifetime(vif:%d, host_tag:0x%x)\n", fapi_get_vif(skb), host_tag);
        }
+#endif
        if (fapi_get_u16(skb, u.ma_unitdata_cfm.transmission_status) == FAPI_TRANSMISSIONSTATUS_RETRY_LIMIT)
                ndev_vif->tx_no_ack[SLSI_HOST_TAG_TRAFFIC_QUEUE(host_tag)]++;