Message ID | 20210910141618.1594617-2-gokulkumar792@gmail.com |
---|---|
State | New |
Headers | show |
Series | [iw,1/4] iw: nl80211: add NLA_F_NESTED to nla_nest_start() with older libnl versions | expand |
diff --git a/link.c b/link.c index 1ed7f63..2074488 100644 --- a/link.c +++ b/link.c @@ -273,7 +273,7 @@ static int handle_link(struct nl80211_state *state, } TOPLEVEL(link, NULL, 0, 0, CIB_NETDEV, handle_link, "Print information about the current link, if any."); -HIDDEN(link, get_sta, "", NL80211_CMD_GET_STATION, 0, +HIDDEN(link, get_sta, "<mac-addr>", NL80211_CMD_GET_STATION, 0, CIB_NETDEV, handle_link_sta); HIDDEN(link, get_bss, NULL, NL80211_CMD_GET_SCAN, NLM_F_DUMP, CIB_NETDEV, handle_scan_for_link);
The usage menu shown when running the hidden "link get_sta" command is not mentioning the need for the MAC address argument. Without this, the cmd is always failing with the output shown below. $ ./iw dev wlan0 link get_sta Usage: ./iw [options] dev <devname> link get_sta ... To avoid this, let the user know about the mandatory "MAC address" argument like below. $ ./iw dev wlan0 link get_sta Usage: ./iw [options] dev <devname> link get_sta <mac-addr> ... Signed-off-by: Gokul Sivakumar <gokulkumar792@gmail.com> --- link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)