[PATCH] Extend STATUS command with frequency information

Jouni Malinen j
Sat Sep 13 07:08:05 PDT 2014

On Fri, Sep 12, 2014 at 08:46:00AM +0200, Bojan Prtvar wrote:
> This makes 'wpa_cli status' command more versatile.

> diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
> @@ -1539,6 +1539,11 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
> +		ret = os_snprintf(pos, end - pos, "frequency=%d MHz\n",
> +				wpa_s->assoc_freq);

It would sound fine making the current operating frequency available.
However, I'd rather follow the simpler style in STATUS and make this
"freq=%d\n" rather than including the " MHz" postfix.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list