|
@@ -226,6 +226,12 @@
|
|
|
/* PCIe gen speed change idle shutdown timer 100 milliseconds */
|
|
|
#define HDD_PCIE_GEN_SPEED_CHANGE_TIMEOUT_MS (100)
|
|
|
|
|
|
+#ifdef FEATURE_TSO
|
|
|
+#define TSO_FEATURE_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_SG)
|
|
|
+#else
|
|
|
+#define TSO_FEATURE_FLAGS 0
|
|
|
+#endif
|
|
|
+
|
|
|
int wlan_start_ret_val;
|
|
|
static DECLARE_COMPLETION(wlan_start_comp);
|
|
|
static qdf_atomic_t wlan_hdd_state_fops_ref;
|
|
@@ -7307,8 +7313,10 @@ void hdd_set_netdev_flags(struct hdd_adapter *adapter)
|
|
|
(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM);
|
|
|
|
|
|
if (cdp_cfg_get(soc, cfg_dp_tso_enable) && enable_csum)
|
|
|
- adapter->dev->features |=
|
|
|
- (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_SG);
|
|
|
+ adapter->dev->features |= TSO_FEATURE_FLAGS;
|
|
|
+
|
|
|
+ if (cdp_cfg_get(soc, cfg_dp_sg_enable))
|
|
|
+ adapter->dev->features |= NETIF_F_SG;
|
|
|
|
|
|
adapter->dev->features |= NETIF_F_RXCSUM;
|
|
|
temp = (uint64_t)adapter->dev->features;
|