qcacld-3.0: Fix tcp chksum can't be enabled for sap

propagation from qcacld-2.0 to qcacld-3.0.

In STA+AP or AP+AP mode, if the sap's interface is
created rather than using wlan0, there is no setting
for tcp chksum offload.

Change-Id: I346ea186ad26c5f5a0fd4c3dee4a39b102570de7
CRs-Fixed: 1063245
This commit is contained in:
jge 2016-09-29 13:28:28 +08:00 • committed by qcabuildsw
commit 3e6f638fcd

View file

@ -5818,6 +5818,11 @@ hdd_adapter_t *hdd_wlan_create_ap_dev(hdd_context_t *pHddCtx,
pWlanHostapdDev->mtu = HDD_DEFAULT_MTU;
pWlanHostapdDev->tx_queue_len = HDD_NETDEV_TX_QUEUE_LEN;
if (pHddCtx->config->enable_ip_tcp_udp_checksum_offload)
pWlanHostapdDev->features |=
NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
pWlanHostapdDev->features |= NETIF_F_RXCSUM;
qdf_mem_copy(pWlanHostapdDev->dev_addr, (void *)macAddr,
sizeof(tSirMacAddr));
qdf_mem_copy(pHostapdAdapter->macAddressCurrent.bytes,