netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [clarification request] ieee80211_tx_control.pkt_type
@ 2006-08-18 11:41 Johannes Berg
  2006-08-18 14:33 ` Jouni Malinen
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2006-08-18 11:41 UTC (permalink / raw)
  To: netdev; +Cc: Simon Barber, Jouni Malinen, Jiri Benc

Hey,

I was pondering the ieee80211_tx_control type and don't see anyone using
the pkt_type field. d80211 makes great effort to have it correct, but no
driver uses it.

Hence, my question: What is the purpose of this field? Under what
circumstances would a driver have to know this? Especially considering
that it's only "normal" vs. "probe response"...

johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [clarification request] ieee80211_tx_control.pkt_type
  2006-08-18 11:41 [clarification request] ieee80211_tx_control.pkt_type Johannes Berg
@ 2006-08-18 14:33 ` Jouni Malinen
  2006-08-18 14:50   ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Jouni Malinen @ 2006-08-18 14:33 UTC (permalink / raw)
  To: Johannes Berg; +Cc: netdev, Simon Barber, Jiri Benc

On Fri, Aug 18, 2006 at 01:41:57PM +0200, Johannes Berg wrote:

> I was pondering the ieee80211_tx_control type and don't see anyone using
> the pkt_type field. d80211 makes great effort to have it correct, but no
> driver uses it.
> 
> Hence, my question: What is the purpose of this field? Under what
> circumstances would a driver have to know this? Especially considering
> that it's only "normal" vs. "probe response"...

Some hardware designs require this configuration for TX frames. It is
used to select whether some of the fields are being filled in hardware
(e.g., timestamp for Probe Response). This would only be needed for AP
mode and IBSS (adhoc), so it is possible that not all low-level dirvers
have yet been implemented to support such operation.

This pkt_type was added at generic 802.11 layer in order to avoid
forcing the low-level driver to even look at the 802.11 header when
queuing the frame for transmission. Taken into account how simple
operation it is to get the type and subtype from the frame control
field, this tx ctrl pkt_type could be removed, if desired. However, it
was added there for a reason.

-- 
Jouni Malinen                                            PGP id EFC895FA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [clarification request] ieee80211_tx_control.pkt_type
  2006-08-18 14:33 ` Jouni Malinen
@ 2006-08-18 14:50   ` Johannes Berg
  2006-08-18 16:25     ` Simon Barber
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2006-08-18 14:50 UTC (permalink / raw)
  To: Jouni Malinen; +Cc: netdev, Simon Barber, Jiri Benc

On Fri, 2006-08-18 at 07:33 -0700, Jouni Malinen wrote:

> Some hardware designs require this configuration for TX frames. It is
> used to select whether some of the fields are being filled in hardware
> (e.g., timestamp for Probe Response). 

Ah ok, timestamp makes sense.

> This would only be needed for AP
> mode and IBSS (adhoc), so it is possible that not all low-level dirvers
> have yet been implemented to support such operation.

Right.

> This pkt_type was added at generic 802.11 layer in order to avoid
> forcing the low-level driver to even look at the 802.11 header when
> queuing the frame for transmission. Taken into account how simple
> operation it is to get the type and subtype from the frame control
> field, this tx ctrl pkt_type could be removed, if desired. However, it
> was added there for a reason.

No, that's ok, I was just wondering why it is there at all.

Thanks for clarifying,
johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [clarification request] ieee80211_tx_control.pkt_type
  2006-08-18 14:50   ` Johannes Berg
@ 2006-08-18 16:25     ` Simon Barber
  2006-08-21  7:21       ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Barber @ 2006-08-18 16:25 UTC (permalink / raw)
  To: Johannes Berg, Jouni Malinen; +Cc: netdev, Jiri Benc

It might be appropriate to change it from pkt_type to a flag indicating
that a timestamp should be added at TX time "add_timestamp". This may
well also end up being used for beacons too on hardware where the
beacons are completely software generated.

Simon 

-----Original Message-----
From: Johannes Berg [mailto:johannes@sipsolutions.net] 
Sent: Friday, August 18, 2006 7:51 AM
To: Jouni Malinen
Cc: netdev@vger.kernel.org; Simon Barber; Jiri Benc
Subject: Re: [clarification request] ieee80211_tx_control.pkt_type

On Fri, 2006-08-18 at 07:33 -0700, Jouni Malinen wrote:

> Some hardware designs require this configuration for TX frames. It is 
> used to select whether some of the fields are being filled in hardware

> (e.g., timestamp for Probe Response).

Ah ok, timestamp makes sense.

> This would only be needed for AP
> mode and IBSS (adhoc), so it is possible that not all low-level 
> dirvers have yet been implemented to support such operation.

Right.

> This pkt_type was added at generic 802.11 layer in order to avoid 
> forcing the low-level driver to even look at the 802.11 header when 
> queuing the frame for transmission. Taken into account how simple 
> operation it is to get the type and subtype from the frame control 
> field, this tx ctrl pkt_type could be removed, if desired. However, it

> was added there for a reason.

No, that's ok, I was just wondering why it is there at all.

Thanks for clarifying,
johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [clarification request] ieee80211_tx_control.pkt_type
  2006-08-18 16:25     ` Simon Barber
@ 2006-08-21  7:21       ` Johannes Berg
  0 siblings, 0 replies; 5+ messages in thread
From: Johannes Berg @ 2006-08-21  7:21 UTC (permalink / raw)
  To: Simon Barber; +Cc: Jouni Malinen, netdev, Jiri Benc

On Fri, 2006-08-18 at 09:25 -0700, Simon Barber wrote:
> It might be appropriate to change it from pkt_type to a flag indicating
> that a timestamp should be added at TX time "add_timestamp". This may
> well also end up being used for beacons too on hardware where the
> beacons are completely software generated.

I'll leave that to you or Jouni, was merely asking about the uses :)

Thanks,
johannes

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-21  7:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-18 11:41 [clarification request] ieee80211_tx_control.pkt_type Johannes Berg
2006-08-18 14:33 ` Jouni Malinen
2006-08-18 14:50   ` Johannes Berg
2006-08-18 16:25     ` Simon Barber
2006-08-21  7:21       ` Johannes Berg

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).