Ver Fonte

qcacld-3.0: Use mac_handle_t in wlan_hdd_clear_link_layer_stats

Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern name
for what was previously called the tHalHandle. Subsequently change
"qcacld-3.0: Use mac_handle_t in wlan_hdd_stats" transitioned
wlan_hdd_stats to use the new naming. But while that change was in the
pipeline a new instance of tHalHandle was added. So now transition the
instance recently added to wlan_hdd_clear_link_layer_stats().

Change-Id: I2d17c729a92eb5c545b829fc6699e34233116f94
CRs-Fixed: 2266545
Jeff Johnson há 6 anos atrás
pai
commit
6dca9b3421
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      core/hdd/src/wlan_hdd_stats.c

+ 2 - 2
core/hdd/src/wlan_hdd_stats.c

@@ -1686,14 +1686,14 @@ int wlan_hdd_cfg80211_ll_stats_clear(struct wiphy *wiphy,
 void wlan_hdd_clear_link_layer_stats(struct hdd_adapter *adapter)
 {
 	tSirLLStatsClearReq link_layer_stats_clear_req;
-	tHalHandle hal = WLAN_HDD_GET_HAL_CTX(adapter);
+	mac_handle_t mac_handle = adapter->hdd_ctx->mac_handle;
 
 	link_layer_stats_clear_req.statsClearReqMask = WIFI_STATS_IFACE_AC |
 		WIFI_STATS_IFACE_ALL_PEER;
 	link_layer_stats_clear_req.stopReq = 0;
 	link_layer_stats_clear_req.reqId = 1;
 	link_layer_stats_clear_req.staId = adapter->session_id;
-	sme_ll_stats_clear_req(hal, &link_layer_stats_clear_req);
+	sme_ll_stats_clear_req(mac_handle, &link_layer_stats_clear_req);
 }
 
 /**