linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Henning Rogge <rogge@fgan.de>,
	Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
	Henning Rogge <hrogge@googlemail.com>,
	Marcel Holtmann <holtmann@linux.intel.com>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	"nbd@openwrt.org" <nbd@openwrt.org>
Subject: Re: RFC Patch v2: Add signal strength to nl80211station info
Date: Thu, 4 Dec 2008 13:12:01 -0800	[thread overview]
Message-ID: <20081204211201.GL5970@tesla> (raw)
In-Reply-To: <1228422387.5692.45.camel@johannes.berg>

On Thu, Dec 04, 2008 at 12:26:27PM -0800, Johannes Berg wrote:
> On Wed, 2008-12-03 at 11:31 +0100, Henning Rogge wrote:
> 
> > Changes since v3:
> > - added rx_bitrate to station info and sta_info
> > - remember bitrate of last received unicast packet to this station
> 
> Please remove the RX bitrate for now, the drivers are not currently
> reporting HT information appropriately.

It seems that's the case for ath9k, at least Jouni had pointed out to me.

> > - decode 802.11n MCS index for nl80211
> >   (maybe this should be ported to WEXT too ?)
> 
> I don't like all the tables in the kernel, please move those to
> userspace. If we used more accurate values (these rates are fractional)

So the rate stuff in the 11n wiki page is rounded up, so yeah it would
technically be a bit off so its technically better to let us figure it
out in userspace.. sorry about that Henning... And Johannes also pointed
out to me we actually do have duplicate rates, I failed to catch them.

> then we also don't need the values for the number of streams since those
> are perfect multiples (1x, 2x, 3x, 4x for up to 4 streams).

Well if you have the MCS index and HT mode you get the # of streams. Not
sure I understood the perfect multiple stuff.

> > Changes since v4:
> > - added tx_bitrate_flags adn tx_bitrate_mcs field to station info
> > - added flags for 40Mhz and small guard interval to NL80211 station info
> > - added mcs field to NL80211 station info
> > 
> > The IEEE80211_TX_RC_40_MHZ_WIDTH flag in nl80211 should work for 802.11g 
> > "turbomodes"
> 
> I don't think we should ever go there. But that's just me maybe.

I don't think we want to support this either and I doubt bug reports
for it would get attention from us.

> > + * @NL80211_STA_INFO_SIGNAL: signal strength of last received package (u8, 
> > dBm)
> > + * @NL80211_STA_INFO_RX_BITRATE: bitrate of last received unicast packet
> > + *  (u16, 100 kbit/s)
> > + * @NL80211_STA_INFO_TX_BITRATE: current unicast tx rate (u16, 100 kbit/s)
> > + * @NL80211_STA_INFO_TX_BITRATE_40_MHZ: dual channel transmission (flag)
> > + * @NL80211_STA_INFO_TX_BITRATE_MCS: 802.11n MCS index of tx rate (u8)
> > + * @NL80211_STA_INFO_TX_BITRATE_SHORT_GI: 802.11n with 400ns GI, 800ns
> > + *  otherwise, should be ignored if TX_BITRATE_MCS is not set (flag)
> >   */
> >  enum nl80211_sta_info {
> >  	__NL80211_STA_INFO_INVALID,
> > @@ -413,6 +421,12 @@ enum nl80211_sta_info {
> >  	NL80211_STA_INFO_LLID,
> >  	NL80211_STA_INFO_PLID,
> >  	NL80211_STA_INFO_PLINK_STATE,
> > +	NL80211_STA_INFO_SIGNAL,
> > +	NL80211_STA_INFO_RX_BITRATE,
> > +	NL80211_STA_INFO_TX_BITRATE,
> > +	NL80211_STA_INFO_TX_BITRATE_40_MHZ,
> > +	NL80211_STA_INFO_TX_BITRATE_MCS,
> > +	NL80211_STA_INFO_TX_BITRATE_SHORT_GI,
> 
> Just had another idea. Since we'll end up duplicating these for TX and
> RX (ultimately we'll need RX_BITRATE_40_MHZ/MCS/SGI etc too) we should
> actually do this differently:
> 
>  1) define NL80211_STA_INFO_RATE,
>  2) define NL80211_RATE_INFO_BITRATE/40/MCS/SGI
> 
> and then nest the bitrate information into the STA_INFO_RATE, just like
> station flags are nested etc. That way the RATE_INFO things could also
> be used elsewhere.

So we'll have to add an enum then too to distinguish which rate this is
for.

> >   * Used by the driver to indicate which info in &struct station_info
> >   * it has filled in during get_station() or dump_station().
> > + * Signal strength is only available if driver supports dBm signal
> > + * strength.
> 
> That comment is wrong here since cfg80211 drivers are expected to fill
> this correctly. This comment is about _mac80211_ drivers and thus
> inappropriate in cfg80211.h.

adm8211 is a cfg80211 driver and does not report dBm. So it seems we
currently allow cfg80211 drivers to *not* fill this in properly.
The RTL drivers are some others ones as well as zd1211rw but it seems
we'll be able to correct zd1211rw.

  Luis

  reply	other threads:[~2008-12-04 21:12 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25 20:31 RFC Patch: Add signal strength to nl80211station info Henning Rogge
2008-11-25 20:47 ` Johannes Berg
2008-11-25 21:01   ` Henning Rogge
2008-11-26  5:21   ` Marcel Holtmann
2008-11-26  8:32     ` Johannes Berg
2008-11-26 16:17     ` Henning Rogge
2008-11-29 10:50     ` RFC Patch v2: " Henning Rogge
2008-12-01 11:17       ` Johannes Berg
2008-12-01 13:22         ` Henning Rogge
2008-12-01 17:39           ` Luis R. Rodriguez
2008-12-01 17:45             ` Luis R. Rodriguez
2008-12-01 17:53             ` Henning Rogge
2008-12-02 13:25             ` Henning Rogge
2008-12-02 20:29               ` Luis R. Rodriguez
2008-12-02 20:46                 ` Henning Rogge
2008-12-03  1:44                   ` Luis R. Rodriguez
2008-12-03 10:31                     ` Henning Rogge
2008-12-04  8:47                       ` Johannes Berg
2008-12-04  9:48                         ` Henning Rogge
2008-12-04 13:02                           ` Johannes Berg
2008-12-04 20:26                       ` Johannes Berg
2008-12-04 21:12                         ` Luis R. Rodriguez [this message]
2008-12-04 21:20                           ` Johannes Berg
2008-12-05  8:34                             ` Henning Rogge
2008-12-05  9:45                               ` Johannes Berg
2008-12-05  9:51                                 ` Henning Rogge
2008-12-05  9:54                                   ` Johannes Berg
2008-12-05 23:26                                     ` Henning Rogge
2008-12-06  9:15                                       ` Johannes Berg
2008-12-06 11:12                                         ` Henning Rogge
2008-12-06 14:10                                 ` Henning Rogge
2008-12-06 14:43                                   ` Henning Rogge
2008-12-06 14:51                                   ` Johannes Berg
2008-12-06 15:03                                     ` Henning Rogge
2008-12-06 15:46                                       ` Henning Rogge
2008-12-06 15:59                                         ` Johannes Berg
2008-12-06 16:08                                           ` Henning Rogge
2008-12-06 20:46                                           ` Luis R. Rodriguez
2008-12-07 17:32                                             ` Henning Rogge
2008-12-07 17:39                                               ` Johannes Berg
2008-12-07 18:17                                                 ` [PATCH 1/2] Add signal strength and bandwith " Henning Rogge
2008-12-08 19:43                                                   ` Johannes Berg
2008-12-09 19:50                                                     ` Henning Rogge
2008-12-09 21:16                                                       ` Johannes Berg
2008-12-10  6:53                                                         ` Henning Rogge
2008-12-10  9:05                                                           ` Johannes Berg
2008-12-10 17:40                                                             ` Henning Rogge
2008-12-10 20:45                                                               ` Johannes Berg
2008-12-10 20:58                                                                 ` Henning Rogge
2008-12-10 21:01                                                                   ` Johannes Berg
2008-12-11 17:07                                                                     ` [Patch] nl80211: " Henning Rogge
2008-12-11 17:24                                                                       ` Johannes Berg
2008-12-11 18:02                                                                         ` Henning Rogge
2008-12-11 18:14                                                                           ` Johannes Berg
2008-12-11 18:22                                                                             ` Henning Rogge
2008-12-11 18:28                                                                               ` Johannes Berg
2008-12-11 20:10                                                                                 ` Henning Rogge
2008-12-11 20:24                                                                                   ` Johannes Berg
2008-12-11 20:12                                                                                 ` Henning Rogge
2008-12-11 20:23                                                                                   ` Johannes Berg
2008-12-09 19:54                                                     ` [Patch 1/2 v2] " Henning Rogge
2008-12-09 19:58                                                     ` [Patch 2/2 " Henning Rogge
2008-12-09 21:19                                                       ` Johannes Berg
2008-12-07 18:19                                                 ` [PATCH 2/2] " Henning Rogge
2008-12-07 18:20                                                 ` [PATCH 0/2] " Henning Rogge
2008-12-06 15:48                                       ` RFC Patch v2: Add signal strength " 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=20081204211201.GL5970@tesla \
    --to=lrodriguez@atheros.com \
    --cc=Luis.Rodriguez@Atheros.com \
    --cc=holtmann@linux.intel.com \
    --cc=hrogge@googlemail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nbd@openwrt.org \
    --cc=rogge@fgan.de \
    /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;
as well as URLs for NNTP newsgroup(s).