qcacld-3.0: Reset NUD tracking status during hdd_start_adapter

NUD tracking is disabled in hdd_stop_adapter which needs to be
enabled back in hdd_start_adapter.

Enable the NUD tracking by setting NUD tracking status to false.

Change-Id: I606653d553d6282cfdb6e52a9bf5bc1100732375
CRs-Fixed: 2308351
This commit is contained in:
Alok Kumar
2018-09-04 11:10:36 +05:30
committed by nshrivas
parent 8d039c8829
commit 81e1d73e68
2 changed files with 4 additions and 1 deletions

View File

@@ -2342,6 +2342,8 @@ int hdd_start_adapter(struct hdd_adapter *adapter)
ret = hdd_start_station_adapter(adapter);
if (ret)
goto err_start_adapter;
hdd_nud_ignore_tracking(adapter, false);
break;
case QDF_P2P_GO_MODE:
case QDF_SAP_MODE:

View File

@@ -56,6 +56,7 @@ hdd_nud_flush_work(struct hdd_adapter *adapter)
void hdd_nud_deinit_tracking(struct hdd_adapter *adapter)
{
hdd_debug("DeInitialize the NUD tracking");
qdf_destroy_work(NULL, &adapter->nud_tracking.nud_event_work);
}
@@ -78,7 +79,7 @@ void hdd_nud_reset_tracking(struct hdd_adapter *adapter)
if (adapter->device_mode == QDF_STA_MODE &&
hdd_ctx->config->enable_nud_tracking) {
hdd_debug("De Initialize the NUD tracking");
hdd_debug("Reset the NUD tracking");
qdf_zero_macaddr(&adapter->nud_tracking.gw_mac_addr);
qdf_mem_zero(&adapter->nud_tracking.tx_rx_stats,