From c3f5c8a6bf953e12de2cb20b5ffcbdd2de0056b7 Mon Sep 17 00:00:00 2001 From: Ravi Joshi Date: Mon, 13 Jun 2016 16:46:44 -0700 Subject: [PATCH] qcacld-3.0: Use unified tx queue and carrier control API Use unified tx queue and carrier control API instead of using independent APIs. Change-Id: Id559b585383a24900cead5d28262b692714b95cd CRs-fixed: 1027816 --- core/hdd/src/wlan_hdd_ocb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ocb.c b/core/hdd/src/wlan_hdd_ocb.c index 71e6fddb62..6049680c9a 100644 --- a/core/hdd/src/wlan_hdd_ocb.c +++ b/core/hdd/src/wlan_hdd_ocb.c @@ -384,9 +384,9 @@ static void hdd_ocb_set_config_callback(void *context_ptr, void *response_ptr) * Open the TX data path */ if (!hdd_ocb_register_sta(adapter)) { - netif_carrier_on(adapter->dev); - netif_tx_start_all_queues( - adapter->dev); + wlan_hdd_netif_queue_control(adapter, + WLAN_START_ALL_NETIF_QUEUE_N_CARRIER, + WLAN_CONTROL_PATH); } } @@ -423,8 +423,8 @@ static int hdd_ocb_set_config_req(hdd_adapter_t *adapter, context.magic = HDD_OCB_MAGIC; hddLog(LOG1, FL("Disabling queues")); - netif_tx_disable(adapter->dev); - netif_carrier_off(adapter->dev); + wlan_hdd_netif_queue_control(adapter, WLAN_NETIF_TX_DISABLE_N_CARRIER, + WLAN_CONTROL_PATH); /* Call the SME API to set the config */ qdf_status = sme_ocb_set_config(