2008-04-01 19:45:20

by Christian Lamparter

[permalink] [raw]
Subject: [PATCH] mac80211: add station aid into ieee80211_tx_control

This patch is necessary for the upcoming Accesspoint patch for p54.

Signed-off-by: Christian Lamparter <[email protected]>


Attachments:
(No filename) (122.00 B)
mac80211-station-aid-in-tx-control.diff (761.00 B)
Download all attachments

2008-04-03 05:15:52

by Tomas Winkler

[permalink] [raw]
Subject: Re: [PATCH] mac80211: add station aid into ieee80211_tx_control

On Thu, Apr 3, 2008 at 1:51 AM, Chr <[email protected]> wrote:
>
> On Wednesday 02 April 2008 22:05:46 Tomas Winkler wrote:
> > On Wed, Apr 2, 2008 at 12:34 PM, Johannes Berg
> >
> > <[email protected]> wrote:
> > > On Tue, 2008-04-01 at 21:45 +0200, Chr wrote:
> > > > This patch is necessary for the upcoming Accesspoint patch for p54.
> > >
> > > Hm. I don't like increasing the tx control structure size but I guess
> > > you really need that :)
> > >
> > > > Signed-off-by: Christian Lamparter <[email protected]>
> > >
> > > Acked-by: Johannes Berg <[email protected]>
> > >
> > > Please CC the appropriate maintainers (i.e. at least me for mac80211) on
> > > code changes.
> >
> > Not sure why this cannot be bookeeped in the driver.
> > Upon association AID is delivered to driver, so every packet that will
> > be sent to this AP has this AID?
>
> hmm? where? sta_notify just gives us the mac-address and a command.
> (maybe you have mixed it up with set_tim?!)
>
> Or do I miss something obvious here?

This patch series introduces this. It was posted week ago so I've
assumed it was already merged.

>[PATCH 1/4] mac80211: eliminate conf_ht
> [PATCH 2/4] iwlwifi: eliminate conf_ht
> [PATCH 3/4] mac80211: add association capabilty and timing
> info into bss_conf
> [PATCH 4/4] iwlwifi: Eliminate association from beacon



> Regards,
> Chr.
>
>
>
>
>

2008-04-02 22:51:05

by Christian Lamparter

[permalink] [raw]
Subject: Re: [PATCH] mac80211: add station aid into ieee80211_tx_control

On Wednesday 02 April 2008 22:05:46 Tomas Winkler wrote:
> On Wed, Apr 2, 2008 at 12:34 PM, Johannes Berg
>
> <[email protected]> wrote:
> > On Tue, 2008-04-01 at 21:45 +0200, Chr wrote:
> > > This patch is necessary for the upcoming Accesspoint patch for p54.
> >
> > Hm. I don't like increasing the tx control structure size but I guess
> > you really need that :)
> >
> > > Signed-off-by: Christian Lamparter <[email protected]>
> >
> > Acked-by: Johannes Berg <[email protected]>
> >
> > Please CC the appropriate maintainers (i.e. at least me for mac80211) on
> > code changes.
>
> Not sure why this cannot be bookeeped in the driver.
> Upon association AID is delivered to driver, so every packet that will
> be sent to this AP has this AID?

hmm? where? sta_notify just gives us the mac-address and a command.
(maybe you have mixed it up with set_tim?!)

Or do I miss something obvious here?

Regards,
Chr.





2008-04-02 09:39:16

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: add station aid into ieee80211_tx_control


On Tue, 2008-04-01 at 21:45 +0200, Chr wrote:
> This patch is necessary for the upcoming Accesspoint patch for p54.

Hm. I don't like increasing the tx control structure size but I guess
you really need that :)

> Signed-off-by: Christian Lamparter <[email protected]>

Acked-by: Johannes Berg <[email protected]>

Please CC the appropriate maintainers (i.e. at least me for mac80211) on
code changes.


> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index 48428a6..b428472 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -287,6 +287,7 @@ struct ieee80211_tx_control {
> u8 iv_len; /* length of the IV field in octets */
> u8 queue; /* hardware queue to use for this frame;
> * 0 = highest, hw->queues-1 = lowest */
> + u16 aid; /* Station AID */
> int type; /* internal */
> };
>
> diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> index 80f4343..ea3fa0f 100644
> --- a/net/mac80211/tx.c
> +++ b/net/mac80211/tx.c
> @@ -741,6 +741,7 @@ ieee80211_tx_h_misc(struct ieee80211_tx_data *tx)
> }
>
> if (tx->sta) {
> + control->aid = tx->sta->aid;
> tx->sta->tx_packets++;
> tx->sta->tx_fragments++;
> tx->sta->tx_bytes += tx->skb->len;


Attachments:
signature.asc (828.00 B)
This is a digitally signed message part

2008-04-03 10:41:13

by Tomas Winkler

[permalink] [raw]
Subject: Re: [PATCH] mac80211: add station aid into ieee80211_tx_control

On Thu, Apr 3, 2008 at 1:21 PM, Johannes Berg <[email protected]> wrote:
>
> > > On Tue, 2008-04-01 at 21:45 +0200, Chr wrote:
> > > > This patch is necessary for the upcoming Accesspoint patch for p54.
> > >
> > > Hm. I don't like increasing the tx control structure size but I guess
> > > you really need that :)
>
>
> > Not sure why this cannot be bookeeped in the driver.
> > Upon association AID is delivered to driver, so every packet that will
> > be sent to this AP has this AID?
>
> We're talking about AP mode, and afaict to do that in the driver you'd
> have to have a hash table from sta MAC -> AID.

I see, AP mode is different story and in second thought it think we
can use this to speed up TX path
also for iwliwfi, we waste significant time on searching for STA based
on MAC address.
So it's ACK from me. Thanks for opening my eyes :)

Another question is if there will be more info needed for station in the driver.
Currently in iwlwifi we have STA representation, this is HW
requirement but some data are kept twice in iwlwifi and mac.
The question is whether STA mac80211 representation cannot be more
accessible to the driver? Not sure how this can be done
without over complicated station book keeping.


Thanks
Tomas.

2008-04-03 10:21:28

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: add station aid into ieee80211_tx_control


> > On Tue, 2008-04-01 at 21:45 +0200, Chr wrote:
> > > This patch is necessary for the upcoming Accesspoint patch for p54.
> >
> > Hm. I don't like increasing the tx control structure size but I guess
> > you really need that :)

> Not sure why this cannot be bookeeped in the driver.
> Upon association AID is delivered to driver, so every packet that will
> be sent to this AP has this AID?

We're talking about AP mode, and afaict to do that in the driver you'd
have to have a hash table from sta MAC -> AID.

johannes


Attachments:
signature.asc (828.00 B)
This is a digitally signed message part

2008-04-03 10:48:08

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] mac80211: add station aid into ieee80211_tx_control


> I see, AP mode is different story and in second thought it think we
> can use this to speed up TX path
> also for iwliwfi, we waste significant time on searching for STA based
> on MAC address.
> So it's ACK from me. Thanks for opening my eyes :)
>
> Another question is if there will be more info needed for station in the driver.
> Currently in iwlwifi we have STA representation, this is HW
> requirement but some data are kept twice in iwlwifi and mac.
> The question is whether STA mac80211 representation cannot be more
> accessible to the driver? Not sure how this can be done
> without over complicated station book keeping.

Yeah, that's a bit tough, I'm not sure how to do it.

Maybe we could have a struct ieee80211_sta_info (defined in mac80211.h)
embedded into struct sta_info and pass that along everywhere sort of
like we do with struct key/key_conf?

johannes


Attachments:
signature.asc (828.00 B)
This is a digitally signed message part

2008-04-02 20:05:49

by Tomas Winkler

[permalink] [raw]
Subject: Re: [PATCH] mac80211: add station aid into ieee80211_tx_control

On Wed, Apr 2, 2008 at 12:34 PM, Johannes Berg
<[email protected]> wrote:
>
> On Tue, 2008-04-01 at 21:45 +0200, Chr wrote:
> > This patch is necessary for the upcoming Accesspoint patch for p54.
>
> Hm. I don't like increasing the tx control structure size but I guess
> you really need that :)
>
>
> > Signed-off-by: Christian Lamparter <[email protected]>
>
> Acked-by: Johannes Berg <[email protected]>
>
> Please CC the appropriate maintainers (i.e. at least me for mac80211) on
> code changes.
>

Not sure why this cannot be bookeeped in the driver.
Upon association AID is delivered to driver, so every packet that will
be sent to this AP has this AID?