[PATCH 2/2] Generalize the function name as it is not dealing with only TX & RX params
Gokul Sivakumar
gokulkumar792 at gmail.com
Wed Aug 4 11:42:11 PDT 2021
For the function hostapd_get_sta_tx_rx(), the name hostapd_get_sta_info()
is more appropriate as it is also responsible for getting many other STA
specific params like RSSI, inactive millisecs along with TX and RX bytes.
Signed-off-by: Gokul Sivakumar <gokulkumar792 at gmail.com>
---
src/ap/ctrl_iface_ap.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c
index 068703a7e..e6bfa1f9d 100644
--- a/src/ap/ctrl_iface_ap.c
+++ b/src/ap/ctrl_iface_ap.c
@@ -74,9 +74,9 @@ static int hostapd_get_sta_conn_time(struct sta_info *sta,
}
-static int hostapd_get_sta_tx_rx(struct hostapd_data *hapd,
- struct sta_info *sta,
- char *buf, size_t buflen)
+static int hostapd_get_sta_info(struct hostapd_data *hapd,
+ struct sta_info *sta,
+ char *buf, size_t buflen)
{
struct hostap_sta_driver_data data;
int ret;
@@ -270,7 +270,7 @@ static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd,
if (res >= 0)
len += res;
- len += hostapd_get_sta_tx_rx(hapd, sta, buf + len, buflen - len);
+ len += hostapd_get_sta_info(hapd, sta, buf + len, buflen - len);
#ifdef CONFIG_SAE
if (sta->sae && sta->sae->state == SAE_ACCEPTED) {
--
2.25.1
More information about the Hostap
mailing list