Extend STATUS command with frequency information
This makes 'wpa_cli status' command more versatile. Signed-off-by: Bojan Prtvar <bojan.prtvar@rt-rk.com>
This commit is contained in:
parent
375f4a3b5a
commit
b6ebdfbedd
1 changed files with 5 additions and 0 deletions
|
@ -1540,6 +1540,11 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
|
||||||
if (ret < 0 || ret >= end - pos)
|
if (ret < 0 || ret >= end - pos)
|
||||||
return pos - buf;
|
return pos - buf;
|
||||||
pos += ret;
|
pos += ret;
|
||||||
|
ret = os_snprintf(pos, end - pos, "freq=%u\n",
|
||||||
|
wpa_s->assoc_freq);
|
||||||
|
if (ret < 0 || ret >= end - pos)
|
||||||
|
return pos - buf;
|
||||||
|
pos += ret;
|
||||||
if (ssid) {
|
if (ssid) {
|
||||||
u8 *_ssid = ssid->ssid;
|
u8 *_ssid = ssid->ssid;
|
||||||
size_t ssid_len = ssid->ssid_len;
|
size_t ssid_len = ssid->ssid_len;
|
||||||
|
|
Loading…
Reference in a new issue