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
This commit is contained in:
Ravi Joshi
2016-06-13 16:46:44 -07:00
committed by Gerrit - the friendly Code Review server
parent 79746acb37
commit c3f5c8a6bf

View File

@@ -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(