All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Bruno Randolf <br1@einfach.org>
Cc: linville@tuxdriver.com, ath5k-devel@lists.ath5k.org,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH v3 1/3] cfg80211: Add nl80211 antenna configuration
Date: Mon, 07 Jun 2010 11:03:28 +0200	[thread overview]
Message-ID: <1275901408.3639.2.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <20100607065858.16060.38448.stgit@tt-desk>

On Mon, 2010-06-07 at 15:58 +0900, Bruno Randolf wrote:

> +static int nl80211_get_antenna(struct sk_buff *skb, struct genl_info *info)
> +{
> +	struct cfg80211_registered_device *rdev;
> +	struct sk_buff *msg;
> +	void *hdr;
> +	int res;
> +	u8 tx_ant, rx_ant;

You should probably set them both to 0 here,

> +	res = rdev->ops->get_antenna(&rdev->wiphy, &tx_ant, &rx_ant);
> +	if (res)
> +		goto free_msg;

and complain about the driver if they still are after this.

johannes


  parent reply	other threads:[~2010-06-07  9:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-07  6:58 [PATCH v3 1/3] cfg80211: Add nl80211 antenna configuration Bruno Randolf
2010-06-07  6:59 ` [PATCH v3 2/3] mac80211: Add " Bruno Randolf
2010-06-07  6:59 ` [PATCH v3 3/3] ath5k: Add support for " Bruno Randolf
2010-06-07  9:03 ` Johannes Berg [this message]
2010-06-08  1:19   ` [PATCH v3 1/3] cfg80211: Add nl80211 " Bruno Randolf
2010-06-08  7:27     ` Johannes Berg
2010-06-07  9:05 ` Johannes Berg
2010-06-08  1:10   ` Bruno Randolf
2010-06-08  9:05     ` Johannes Berg

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=1275901408.3639.2.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=ath5k-devel@lists.ath5k.org \
    --cc=br1@einfach.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.