Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ola Olsson <ola1olsson@gmail.com>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, Ola Olsson <ola1olsson@gmail.com>,
	Ola Olsson <ola.olsson@sonymobile.com>
Subject: [PATCH] iw: Print help text to "set bitrates" in case of no args
Date: Wed, 21 Oct 2015 14:11:38 +0200	[thread overview]
Message-ID: <1445429499-22075-1-git-send-email-ola1olsson@gmail.com> (raw)

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
---
 bitrate.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/bitrate.c b/bitrate.c
index 4a026a4..974b49c 100644
--- a/bitrate.c
+++ b/bitrate.c
@@ -110,6 +110,9 @@ static int handle_bitrates(struct nl80211_state *state,
 		S_GI,
 	} parser_state = S_NONE;
 
+	if (argc == 0)
+		return 1;
+
 	for (i = 0; i < argc; i++) {
 		char *end;
 		double tmpd;
-- 
1.7.9.5


             reply	other threads:[~2015-10-21 12:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 12:11 Ola Olsson [this message]
2015-10-21 12:27 ` [PATCH] iw: Print help text to "set bitrates" in case of no args Johannes Berg
2015-10-21 12:32   ` Ola Olsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445429499-22075-1-git-send-email-ola1olsson@gmail.com \
    --to=ola1olsson@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=ola.olsson@sonymobile.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox