diff options
| author | jge <jge@codeaurora.org> | 2016-09-29 13:28:28 +0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-10-24 11:29:54 -0700 |
| commit | 3e6f638fcdc1c40964b7e93d5edc0072f2254f49 (patch) | |
| tree | 90580012e26b55d921136dd24ec788b0ed8a6dc6 | |
| parent | afeb1d6b347e7ffc1acc65addce77b2c163f5619 (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_hostapd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 35e96c32627e..2834804009ee 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -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, |
