From: Michael Buesch <mb@bu3sch.de>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: John Linville <linville@tuxdriver.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mac80211: Add SIOCGIWTXPOWER routine
Date: Tue, 7 Aug 2007 20:13:58 +0200 [thread overview]
Message-ID: <200708072013.58508.mb@bu3sch.de> (raw)
In-Reply-To: <46b8b531.h17+wXhw0v8LOFD/%Larry.Finger@lwfinger.net>
On Tuesday 07 August 2007 20:08:49 Larry Finger wrote:
> The wireless extensions ioctl's implemented in mac80211 do not include
> SIOCGIWTXPOWER. This patch adds the necessary code.
>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
>
> Index: wireless-dev/net/mac80211/ieee80211_ioctl.c
> ===================================================================
> --- wireless-dev.orig/net/mac80211/ieee80211_ioctl.c
> +++ wireless-dev/net/mac80211/ieee80211_ioctl.c
> @@ -1925,6 +1925,20 @@ static int ieee80211_ioctl_giwrate(struc
> return 0;
> }
>
> +static int ieee80211_ioctl_giwtxpower(struct net_device *dev,
> + struct iw_request_info *info,
> + union iwreq_data *data, char *extra)
> +{
> + struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
> +
> + data->txpower.fixed = 1;
> + data->txpower.disabled = 0;
> + data->txpower.value = local->hw.conf.power_level;
> + data->txpower.flags = IW_TXPOW_DBM;
> +
> + return 0;
> +}
> +
> static int ieee80211_ioctl_siwrts(struct net_device *dev,
> struct iw_request_info *info,
> struct iw_param *rts, char *extra)
> @@ -2881,7 +2895,7 @@ static const iw_handler ieee80211_handle
> (iw_handler) ieee80211_ioctl_siwfrag, /* SIOCSIWFRAG */
> (iw_handler) ieee80211_ioctl_giwfrag, /* SIOCGIWFRAG */
> (iw_handler) NULL, /* SIOCSIWTXPOW */
> - (iw_handler) NULL, /* SIOCGIWTXPOW */
> + (iw_handler) ieee80211_ioctl_giwtxpower, /* SIOCGIWTXPOW */
> (iw_handler) ieee80211_ioctl_siwretry, /* SIOCSIWRETRY */
> (iw_handler) ieee80211_ioctl_giwretry, /* SIOCGIWRETRY */
> (iw_handler) ieee80211_ioctl_siwencode, /* SIOCSIWENCODE */
Looks good.
Acked-by: Michael Buesch <mb@bu3sch.de>
--
Greetings Michael.
next prev parent reply other threads:[~2007-08-07 18:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-07 18:08 [PATCH] mac80211: Add SIOCGIWTXPOWER routine Larry Finger
2007-08-07 18:13 ` Michael Buesch [this message]
2007-08-08 7:04 ` Tomas Winkler
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=200708072013.58508.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=Larry.Finger@lwfinger.net \
--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.