Переглянути джерело

qcacld-3.0: Remove ucastDataRate from tSirRateUpdateInd

The ucastDataRate field in tSirRateUpdateInd is initialized, but is
otherwise not used, so remove it. And the ucastDataRateTxFlag field is
never referenced, so remove it as well.

Change-Id: I1df8e5ec32d8ebb1d1e1f53c83bec45fbb86bb4e
CRs-Fixed: 2374276
Jeff Johnson 6 роки тому
батько
коміт
86bef3ee7a
2 змінених файлів з 1 додано та 11 видалено
  1. 1 3
      core/hdd/src/wlan_hdd_ioctl.c
  2. 0 8
      core/mac/inc/sir_api.h

+ 1 - 3
core/hdd/src/wlan_hdd_ioctl.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -5067,8 +5067,6 @@ static int drv_cmd_set_rmc_tx_rate(struct hdd_adapter *adapter,
 		goto exit;
 	}
 	hdd_debug("uRate %d", uRate);
-	/* -1 implies ignore this param */
-	rateUpdateParams.ucastDataRate = -1;
 
 	/*
 	 * Fill the user specifieed RMC rate param

+ 0 - 8
core/mac/inc/sir_api.h

@@ -3035,14 +3035,6 @@ typedef struct sSirRateUpdateInd {
 	struct qdf_mac_addr bssid;
 	enum QDF_OPMODE dev_mode;
 	int32_t bcastDataRate;  /* bcast rate unit Mbpsx10, -1:not used */
-	/*
-	 * 0 implies RA, positive value implies fixed rate, -1 implies ignore
-	 * this param.
-	 */
-	int32_t ucastDataRate;
-
-	/* TX flag to differentiate between HT20, HT40 etc */
-	enum tx_rate_info ucastDataRateTxFlag;
 
 	/*
 	 * 0 implies MCAST RA, positive value implies fixed rate,