From 86bef3ee7a137e2089db500fd3a23beedba7a8c9 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 26 Dec 2018 19:57:01 -0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_ioctl.c | 4 +--- core/mac/inc/sir_api.h | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c index c4792c2b9b33..0b57a14cb2e2 100644 --- a/core/hdd/src/wlan_hdd_ioctl.c +++ b/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 diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index 727c099ad33a..d3203157f2df 100644 --- a/core/mac/inc/sir_api.h +++ b/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,