diff --git a/core/hdd/inc/wlan_hdd_tx_rx.h b/core/hdd/inc/wlan_hdd_tx_rx.h index 938d89f2e0f1..4ef7e0ade42e 100644 --- a/core/hdd/inc/wlan_hdd_tx_rx.h +++ b/core/hdd/inc/wlan_hdd_tx_rx.h @@ -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 diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index f4cb1338c856..56202604e390 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/core/hdd/src/wlan_hdd_tx_rx.c @@ -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; } }