Generalize the function name as it is not dealing with only TX & RX params

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>
This commit is contained in:
Gokul Sivakumar 2021-08-05 00:12:11 +05:30 committed by Jouni Malinen
parent 0cc9d7fb12
commit 63f043f4fd

View file

@ -76,7 +76,7 @@ static int hostapd_get_sta_conn_time(struct sta_info *sta,
} }
static int hostapd_get_sta_tx_rx(struct hostapd_data *hapd, static int hostapd_get_sta_info(struct hostapd_data *hapd,
struct sta_info *sta, struct sta_info *sta,
char *buf, size_t buflen) char *buf, size_t buflen)
{ {
@ -272,7 +272,7 @@ static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd,
if (res >= 0) if (res >= 0)
len += res; 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 #ifdef CONFIG_SAE
if (sta->sae && sta->sae->state == SAE_ACCEPTED) { if (sta->sae && sta->sae->state == SAE_ACCEPTED) {