Selaa lähdekoodia

qcacld-3.0: Forward channel id to txrx_stats

Forward channel id to txrx_stats to set the right pdev mask
in htt stats msg

Change-Id: Iab0e565d3e827b0fcbe65c24d4de431a3aee0248
CRs-Fixed: 2194439
Venkata Sharath Chandra Manchala 7 vuotta sitten
vanhempi
sitoutus
1e58110314
2 muutettua tiedostoa jossa 9 lisäystä ja 3 poistoa
  1. 4 2
      core/hdd/src/wlan_hdd_hostapd.c
  2. 5 1
      core/hdd/src/wlan_hdd_wext.c

+ 4 - 2
core/hdd/src/wlan_hdd_hostapd.c

@@ -3330,6 +3330,7 @@ static __iw_softap_setparam(struct net_device *dev,
 	struct cdp_vdev *vdev = NULL;
 	struct cdp_pdev *pdev = NULL;
 	void *soc = NULL;
+	struct cdp_txrx_stats_req req;
 
 	ENTER_DEV(dev);
 
@@ -3481,9 +3482,10 @@ static __iw_softap_setparam(struct net_device *dev,
 				"Invalid Handles");
 			break;
 		}
-
+		req.stats = set_value;
+		req.channel = adapter->session.ap.operating_channel;
 		hdd_notice("QCSAP_PARAM_SET_TXRX_STATS val %d", set_value);
-		ret = cdp_txrx_stats(soc, vdev, set_value);
+		ret = cdp_txrx_stats_request(soc, vdev, &req);
 		break;
 	}
 

+ 5 - 1
core/hdd/src/wlan_hdd_wext.c

@@ -5526,6 +5526,7 @@ static int __iw_setint_getnone(struct net_device *dev,
 	void *soc = NULL;
 	struct cdp_pdev *pdev = NULL;
 	struct cdp_vdev *vdev = NULL;
+	struct cdp_txrx_stats_req req;
 
 	ENTER_DEV(dev);
 
@@ -6309,7 +6310,10 @@ static int __iw_setint_getnone(struct net_device *dev,
 				"Invalid handles");
 			break;
 		}
-		ret = cdp_txrx_stats(soc, vdev, set_value);
+
+		req.stats = set_value;
+		req.channel = adapter->session.station.conn_info.operationChannel;
+		ret = cdp_txrx_stats_request(soc, vdev, &req);
 		break;
 	}