linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonio Quartulli <ordex@autistici.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: ath9k-devel@lists.ath9k.org, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/2] mac80211: add sta_update_rates callback
Date: Thu, 9 Aug 2012 11:32:46 +0200	[thread overview]
Message-ID: <20120809093245.GG6767@ritirata.org> (raw)
In-Reply-To: <1344492897.4494.1.camel@jlt3.sipsolutions.net>

[-- Attachment #1: Type: text/plain, Size: 2314 bytes --]

On Thu, Aug 09, 2012 at 08:14:57AM +0200, Johannes Berg wrote:
> On Thu, 2012-08-09 at 03:11 +0200, Antonio Quartulli wrote:
> > some drivers need to be notified in case of rates update. This callback tells
> > the driver that something has been changed in the supported rates set of the
> > station passed as argument and that it needs to update its internal tables
> > 
> > Reported-by: Guido Iribarren <guidoiribarren@buenosaireslibre.org>
> > Tested-by: Guido Iribarren <guidoiribarren@buenosaireslibre.org>
> > Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> > ---
> > 
> > ** This is the first time that I play with trace.h, so it could be the case that
> > I made something completely wrong! Sorry :)
> > 
> > 
> > 
> > 
> >  include/net/mac80211.h    |    4 ++++
> >  net/mac80211/driver-ops.h |   14 ++++++++++++++
> >  net/mac80211/ibss.c       |    4 +++-
> >  net/mac80211/trace.h      |   27 +++++++++++++++++++++++++++
> >  4 files changed, 48 insertions(+), 1 deletion(-)
> > 
> > diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> > index bb86aa6..c5dc725 100644
> > --- a/include/net/mac80211.h
> > +++ b/include/net/mac80211.h
> > @@ -2284,6 +2284,10 @@ struct ieee80211_ops {
> >  				 struct ieee80211_vif *vif,
> >  				 struct ieee80211_bss_conf *info,
> >  				 u32 changed);
> > +	void (*sta_update_rates)(struct ieee80211_hw *hw,
> > +				 struct ieee80211_sta *sta,
> > +				 struct ieee80211_vif *vif,
> > +				 struct ieee80211_bss_conf *info);
> 
> Passing bss_conf doesn't make a lot of sense, it hasn't changed when the
> rate changes...?

Right. I approached this the other way around..starting from the ath9k_htc
driver and I wrongly exposed useless arguments. Will fix this.

> 
> Also there's already an update call sta_rc_update() so I think you
> should just define a new change flag for that?

mh, at the very beginning I thought it was not correct what you said, but indeed
we should be able to do the job in sta_rc_update().

But then why does the ath9k_htc driver implement ath9k_htc_update_rate() to
update the rate used to talk to the AP? Should it use sta_rc_update() as well?

Cheers,


> 
> johannes

-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

       reply	other threads:[~2012-08-09  9:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1344474712-22561-1-git-send-email-ordex@autistici.org>
     [not found] ` <1344492897.4494.1.camel@jlt3.sipsolutions.net>
2012-08-09  9:32   ` Antonio Quartulli [this message]
2012-08-09  9:44     ` [PATCH 1/2] mac80211: add sta_update_rates callback Antonio Quartulli
2012-08-20 11:27       ` Johannes Berg
2012-08-12  5:26     ` [ath9k-devel] " Sujith Manoharan
2012-08-12  5:31       ` Sujith Manoharan

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=20120809093245.GG6767@ritirata.org \
    --to=ordex@autistici.org \
    --cc=ath9k-devel@lists.ath9k.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /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).