Parcourir la source

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
Ravi Joshi il y a 8 ans
Parent
commit
c3f5c8a6bf
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      core/hdd/src/wlan_hdd_ocb.c

+ 5 - 5
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(