mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
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
@ -1540,6 +1540,11 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
|
||||
if (ret < 0 || ret >= end - pos)
|
||||
return pos - buf;
|
||||
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) {
|
||||
u8 *_ssid = ssid->ssid;
|
||||
size_t ssid_len = ssid->ssid_len;
|
||||
|
Loading…
Reference in New Issue
Block a user