From b157c72c94e5cdbfb0266fa4d09ef21ed7e0713d Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 21 Oct 2017 15:46:42 -0700 Subject: [PATCH] qcacld-3.0: Rename hdd_softap_deinit_tx_rx_sta() STAId param Per the Linux coding style "mixed-case names are frowned upon" so rename the STAId parameter to hdd_softap_deinit_tx_rx_sta(). Change-Id: Ica4882c93e471f0c8deac40000179eac5a3e29d1 CRs-Fixed: 2131092 --- core/hdd/inc/wlan_hdd_softap_tx_rx.h | 10 +++++++++- core/hdd/src/wlan_hdd_softap_tx_rx.c | 18 +++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_softap_tx_rx.h b/core/hdd/inc/wlan_hdd_softap_tx_rx.h index 06a81fd23b6a..771e63012dca 100644 --- a/core/hdd/inc/wlan_hdd_softap_tx_rx.h +++ b/core/hdd/inc/wlan_hdd_softap_tx_rx.h @@ -56,8 +56,16 @@ QDF_STATUS hdd_softap_init_tx_rx_sta(struct hdd_adapter *adapter, uint8_t sta_id, struct qdf_mac_addr *sta_mac); +/** + * hdd_softap_deinit_tx_rx_sta() - Deinitialize tx/rx for a softap station + * @adapter: pointer to adapter context + * @sta_id: Station ID to deinitialize + * + * Return: QDF_STATUS_E_FAILURE if any errors encountered, + * QDF_STATUS_SUCCESS otherwise + */ QDF_STATUS hdd_softap_deinit_tx_rx_sta(struct hdd_adapter *adapter, - uint8_t STAId); + uint8_t sta_id); QDF_STATUS hdd_softap_rx_packet_cbk(void *context, qdf_nbuf_t rxBufChain); #ifdef IPA_OFFLOAD diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c index ed46379d732f..3cde6d088809 100644 --- a/core/hdd/src/wlan_hdd_softap_tx_rx.c +++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c @@ -652,16 +652,8 @@ QDF_STATUS hdd_softap_init_tx_rx_sta(struct hdd_adapter *adapter, return QDF_STATUS_SUCCESS; } -/** - * hdd_softap_deinit_tx_rx_sta() - Deinitialize tx/rx for a softap station - * @adapter: pointer to adapter context - * @STAId: Station ID to deinitialize - * - * Return: QDF_STATUS_E_FAILURE if any errors encountered, - * QDF_STATUS_SUCCESS otherwise - */ QDF_STATUS hdd_softap_deinit_tx_rx_sta(struct hdd_adapter *adapter, - uint8_t STAId) + uint8_t sta_id) { QDF_STATUS status = QDF_STATUS_SUCCESS; struct hdd_hostapd_state *hostapd_state; @@ -670,14 +662,14 @@ QDF_STATUS hdd_softap_deinit_tx_rx_sta(struct hdd_adapter *adapter, spin_lock_bh(&adapter->staInfo_lock); - if (false == adapter->aStaInfo[STAId].in_use) { + if (false == adapter->aStaInfo[sta_id].in_use) { spin_unlock_bh(&adapter->staInfo_lock); - hdd_err("Deinit station not inited %d", STAId); + hdd_err("Deinit station not inited %d", sta_id); return QDF_STATUS_E_FAILURE; } - adapter->aStaInfo[STAId].in_use = false; - adapter->aStaInfo[STAId].is_deauth_in_progress = false; + adapter->aStaInfo[sta_id].in_use = false; + adapter->aStaInfo[sta_id].is_deauth_in_progress = false; spin_unlock_bh(&adapter->staInfo_lock); return status;