qcacld-3.0: Fix camelCase in hdd_get_peer_sta_id()

In order to conform to the coding style rename parameters pMacAddress
and staId to function hdd_cfg_get_config().

Change-Id: Id4dcf625b4c8476631dccb6d9cbe2f6a63f74e4c
CRs-Fixed: 2352066
This commit is contained in:
Jeff Johnson 2018-11-17 13:04:38 -08:00 • committed by Nitesh Shrivastav
commit eeddb38065
2 changed files with 15 additions and 14 deletions

View file

@ -129,9 +129,18 @@ void hdd_disable_rx_ol_in_concurrency(bool disable);
*/
void hdd_disable_rx_ol_for_low_tput(struct hdd_context *hdd_ctx, bool disable);
/**
* hdd_get_peer_sta_id() - Get the StationID using the Peer Mac address
* @sta_ctx: pointer to HDD Station Context
* @mac_address: pointer to Peer Mac address
* @sta_id: pointer to returned Station Index
*
* Return: QDF_STATUS_SUCCESS/QDF_STATUS_E_FAILURE
*/
QDF_STATUS hdd_get_peer_sta_id(struct hdd_station_ctx *sta_ctx,
struct qdf_mac_addr *peer_mac_addr,
uint8_t *sta_id);
struct qdf_mac_addr *mac_address,
uint8_t *sta_id);
/**
* hdd_reset_all_adapters_connectivity_stats() - reset connectivity stats
* @hdd_ctx: pointer to HDD Station Context

View file

@ -1173,24 +1173,16 @@ netdev_tx_t hdd_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
return ret;
}
/**
* hdd_get_peer_sta_id() - Get the StationID using the Peer Mac address
* @sta_ctx: pointer to HDD Station Context
* @pMacAddress: pointer to Peer Mac address
* @staID: pointer to returned Station Index
*
* Return: QDF_STATUS_SUCCESS/QDF_STATUS_E_FAILURE
*/
QDF_STATUS hdd_get_peer_sta_id(struct hdd_station_ctx *sta_ctx,
struct qdf_mac_addr *pMacAddress, uint8_t *staId)
struct qdf_mac_addr *mac_address,
uint8_t *sta_id)
{
uint8_t idx;
for (idx = 0; idx < MAX_PEERS; idx++) {
if (!qdf_mem_cmp(&sta_ctx->conn_info.peerMacAddress[idx],
pMacAddress, QDF_MAC_ADDR_SIZE)) {
*staId = sta_ctx->conn_info.staId[idx];
mac_address, QDF_MAC_ADDR_SIZE)) {
*sta_id = sta_ctx->conn_info.staId[idx];
return QDF_STATUS_SUCCESS;
}
}