diff options
| author | Abhinav Kumar <abhikuma@codeaurora.org> | 2018-12-04 18:36:05 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2018-12-05 03:39:51 -0800 |
| commit | fe75f5efc51333ce9efddb88cd12b4766d6800ed (patch) | |
| tree | 4ca3529c74180817dc36a41928e0307ed3775c98 | |
| parent | 3de4ce6f1f012fbe850069abf891b14c6ce06cff (diff) | |
Revert "qcacld-3.0: Flush scan results on interface down"
This reverts the change id- I3505c128276fa8e5e05ea5d9110eb75275a746e9.
When wifi is toggled from GUI, in order to support MAC randomization
security mechanism driver should not flush scan cache during interface
down. Framework has to set the scan flush flag so that driver will flush
the scan results while interface up and then do the scan.
Remove scan flush logic from driver on interface down.
Change-Id: I45ad1a257ab7ef4bd5474f52fd0dbfde5e3514c4
CRs-Fixed: 2360898
| -rw-r--r-- | core/hdd/inc/wlan_hdd_main.h | 9 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_hostapd.c | 4 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 29 |
3 files changed, 0 insertions, 42 deletions
diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 9b76ac429ecf..1b09b0639c39 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -3165,15 +3165,6 @@ int hdd_driver_memdump_init(void); void hdd_driver_memdump_deinit(void); /** - * hdd_is_cli_iface_up() - check if there is any cli iface up - * @hdd_ctx: HDD context - * - * Return: return true if there is any cli iface(STA/P2P_CLI) is up - * else return false - */ -bool hdd_is_cli_iface_up(hdd_context_t *hdd_ctx); - -/** * wlan_hdd_free_cache_channels() - Free the cache channels list * @hdd_ctx: Pointer to HDD context * diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 6c5ae98d40fd..532f961ca6c3 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -397,10 +397,6 @@ static int __hdd_hostapd_stop(struct net_device *dev) hdd_stop_adapter(hdd_ctx, adapter, true); clear_bit(DEVICE_IFACE_OPENED, &adapter->event_flags); - - if (!hdd_is_cli_iface_up(hdd_ctx)) - sme_scan_flush_result(hdd_ctx->hHal); - /* Stop all tx queues */ hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(adapter, diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 0588d2cf53e0..298c6ee8b5e9 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2705,13 +2705,6 @@ static int __hdd_stop(struct net_device *dev) clear_bit(DEVICE_IFACE_OPENED, &adapter->event_flags); /* - * Upon wifi turn off, DUT has to flush the scan results so if - * this is the last cli iface, flush the scan database. - */ - if (!hdd_is_cli_iface_up(hdd_ctx)) - sme_scan_flush_result(hdd_ctx->hHal); - - /* * Find if any iface is up. If any iface is up then can't put device to * sleep/power save mode */ @@ -13534,28 +13527,6 @@ void hdd_drv_ops_inactivity_handler(unsigned long arg) cds_trigger_recovery(false); } -bool hdd_is_cli_iface_up(hdd_context_t *hdd_ctx) -{ - hdd_adapter_list_node_t *adapter_node = NULL, *next = NULL; - hdd_adapter_t *adapter; - QDF_STATUS status; - - status = hdd_get_front_adapter(hdd_ctx, &adapter_node); - while (NULL != adapter_node && QDF_STATUS_SUCCESS == status) { - adapter = adapter_node->pAdapter; - if ((adapter->device_mode == QDF_STA_MODE || - adapter->device_mode == QDF_P2P_CLIENT_MODE) && - qdf_atomic_test_bit(DEVICE_IFACE_OPENED, - &adapter->event_flags)){ - return true; - } - status = hdd_get_next_adapter(hdd_ctx, adapter_node, &next); - adapter_node = next; - } - - return false; -} - /* Register the module init/exit functions */ module_init(hdd_module_init); module_exit(hdd_module_exit); |
