]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Generalize the function name as it is not dealing with only TX & RX params
authorGokul Sivakumar <gokulkumar792@gmail.com>
Wed, 4 Aug 2021 18:42:11 +0000 (00:12 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 25 Aug 2021 09:27:17 +0000 (12:27 +0300)
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 milliseconds
along with TX and RX bytes.

Signed-off-by: Gokul Sivakumar <gokulkumar792@gmail.com>
src/ap/ctrl_iface_ap.c

index 84b23f7bf414fd881863f38b5b51562bbdac2910..1d8fb8246581c25ca32daf394d2a955ff756a01f 100644 (file)
@@ -76,9 +76,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;
@@ -272,7 +272,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) {