hostapd: Output BSS Color (he_bss_color) when using STATUS
Make the current HE BSS color available in STATUS command output since this can change dynamically based on color collisions. Signed-off-by: Antonio Prcela <antonio.prcela@gmail.com> Signed-off-by: Antonio Prcela <antonio.prcela@sartura.hr>
This commit is contained in:
parent
11a6ae242e
commit
c84709c59d
1 changed files with 10 additions and 0 deletions
|
@ -845,6 +845,16 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
|
||||||
if (os_snprintf_error(buflen - len, ret))
|
if (os_snprintf_error(buflen - len, ret))
|
||||||
return len;
|
return len;
|
||||||
len += ret;
|
len += ret;
|
||||||
|
|
||||||
|
if (!iconf->he_op.he_bss_color_disabled &&
|
||||||
|
iconf->he_op.he_bss_color) {
|
||||||
|
ret = os_snprintf(buf + len, buflen - len,
|
||||||
|
"he_bss_color=%d\n",
|
||||||
|
iconf->he_op.he_bss_color);
|
||||||
|
if (os_snprintf_error(buflen - len, ret))
|
||||||
|
return len;
|
||||||
|
len += ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_IEEE80211AX */
|
#endif /* CONFIG_IEEE80211AX */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue