diff options
author | Sunil Ravi <sunilravi@google.com> | 2019-01-09 23:22:56 +0000 |
---|---|---|
committer | Android Partner Code Review <android-gerrit-partner@google.com> | 2019-01-09 23:22:56 +0000 |
commit | 64aa33a3e074c23c44a771fdb9a6502c346adae2 (patch) | |
tree | 673b76113b1d627d28551ca5ebdd1e031f792729 | |
parent | 46ca2137a5b102b8ef9f042c91fdf027d62d68c0 (diff) | |
parent | 9fae56714ab5c51edf14b9187d2aa29c1c541d41 (diff) | |
download | qcacld-64aa33a3e074c23c44a771fdb9a6502c346adae2.tar.gz |
Merge "Revert "qcacld-3.0: Flush scan results on interface down"" into android-msm-bluecross-4.9
-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 0060e293b6..06f6f9d24c 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -3064,15 +3064,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); - -/** * hdd_get_nud_stats_cb() - callback api to update the stats received from FW * @data: pointer to hdd context. * @rsp: pointer to data received from FW. diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index c48d12e10a..c78c6676f1 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -404,10 +404,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 8368ea43b2..9a22a94015 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2536,13 +2536,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 */ @@ -13196,28 +13189,6 @@ void hdd_drv_ops_inactivity_handler(unsigned long arg) QDF_BUG(0); } -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); |