mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
hostapd: Add max_txpower into STATUS command
Signed-off-by: bhagavathi perumal s <bperumal@qti.qualcomm.com>
This commit is contained in:
parent
bf6c65afce
commit
ea4ace9c76
@ -586,7 +586,8 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
|
|||||||
size_t buflen)
|
size_t buflen)
|
||||||
{
|
{
|
||||||
struct hostapd_iface *iface = hapd->iface;
|
struct hostapd_iface *iface = hapd->iface;
|
||||||
int len = 0, ret;
|
struct hostapd_hw_modes *mode = iface->current_mode;
|
||||||
|
int len = 0, ret, j;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
ret = os_snprintf(buf + len, buflen - len,
|
ret = os_snprintf(buf + len, buflen - len,
|
||||||
@ -684,6 +685,18 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
|
|||||||
len += ret;
|
len += ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (j = 0; mode && j < mode->num_channels; j++) {
|
||||||
|
if (mode->channels[j].freq == iface->freq) {
|
||||||
|
ret = os_snprintf(buf + len, buflen - len,
|
||||||
|
"max_txpower=%u\n",
|
||||||
|
mode->channels[j].max_tx_power);
|
||||||
|
if (os_snprintf_error(buflen - len, ret))
|
||||||
|
return len;
|
||||||
|
len += ret;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < iface->num_bss; i++) {
|
for (i = 0; i < iface->num_bss; i++) {
|
||||||
struct hostapd_data *bss = iface->bss[i];
|
struct hostapd_data *bss = iface->bss[i];
|
||||||
ret = os_snprintf(buf + len, buflen - len,
|
ret = os_snprintf(buf + len, buflen - len,
|
||||||
|
Loading…
Reference in New Issue
Block a user