Skip to contentSkip to conversation

mac80211 interprets missing TX_ACK flag as tx fail

DISCUSSION Ivo van Doorn 2 participants 3 messages Aug 15, 2008 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1218813764.22679.11.camel@virkkmi-linux

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1218822632.22679.73.camel@virkkmi-linux

#3 lore raw
Quoted 2 lines · On Friday 15 August 2008, Mikko Virkkil=E4 wrote:

I'm moving the conversation over from rt2400-devel to linux-wireless. The last message (as of this writing) from the earlier conversation a=

t

Quoted 7 lines

rt2400-devel can be found at http://tinyurl.com/6p9n7g with some more details.
=20
So to summarize the situation:=20
=20
- the rt73usb driver (in rt2x00) doesn't set IEEE80211_TX_STAT_ACK because "frames which are uploaded to the hardware are not guarente=

ed

Quoted 1 line

to be acked".

rt2500usb suffers from the same issue.

Quoted 1 line

- The mac80211 layer will set the IEEE80211_RADIOTAP_F_TX_FAIL if the=

=20

Quoted 2 lines

IEEE80211_TX_STAT_ACK flag is missing.=20
- hostapd will interpret the IEEE80211_RADIOTAP_F_TX_FAIL as a failur=

e

Quoted 6 lines

to send
=20
This all results in hostapd reporting "MGMT (TX callback) fail" and making rt73usb not work in AP mode.=20
=20
I'm hoping that some decision can be reached on how to fix this so th=

at

Quoted 4 lines

AP mode will work with the rt73.=20
=20
Just off the top of my head, one way of fixing this would be to make IEEE80211_TX_CTL_NO_ACK also work the other way around: Now it is use=

d

Quoted 1 line

to tell the lower level not to wait for an ACK. Perhaps it could also=

be

Quoted 1 line

used by the lower level to tell higher levels that no ACK is ever goi=

ng

Quoted 1 line

to come e.g. because the hardware is incapable of supplying TX ACKs. =

The

Quoted 1 line

mac80211 layer would be changed to check for IEEE80211_TX_CTL_NO_ACK.=

If

Quoted 1 line

the flag was set it would skip setting IEEE80211_RADIOTAP_F_TX_FAIL e=

ven

Quoted 1 line

when the IEEE80211_TX_STAT_ACK is missing.

Actually this isn't the complete picture, what you might need is a new = flag
IEEE80211_TX_CTL_UNKNOWN which then informs mac80211 that the frame has an unknown status, and that is something that could be passed=
on to
userspace through radiotap later.

This is better then setting a global "supports ACK reporting" flag, bec= ause in case
of rt61 one every x frames also has an unknown status because the txdon= e interrupt
isn't happening for that frame. So that means you definately need a per= -frame flag
to tell if the frame was acked, not-acked or if the status was unknown.

Ivo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 2 lines · Ivo van Doorn
Quoted 1 line · On Friday 15 August 2008, Mikko Virkkil=C3=A4 wrote:

I'm moving the conversation over from rt2400-devel to linux-wireles=

s.

Quoted 1 line
Quoted 1 line

The last message (as of this writing) from the earlier conversation=

at

Quoted 1 line
Quoted 1 line

rt2400-devel can be found at http://tinyurl.com/6p9n7g with some mo=

re

Quoted 6 lines
Quoted 6 lines

details.
=20
So to summarize the situation:=20
=20
- the rt73usb driver (in rt2x00) doesn't set IEEE80211_TX_STAT_ACK because "frames which are uploaded to the hardware are not guaren=

teed

Quoted 5 lines
Quoted 1 line

to be acked".

=20
rt2500usb suffers from the same issue.
=20

Quoted 1 line

- The mac80211 layer will set the IEEE80211_RADIOTAP_F_TX_FAIL if t=

he=20

Quoted 2 lines
Quoted 2 lines

IEEE80211_TX_STAT_ACK flag is missing.=20
- hostapd will interpret the IEEE80211_RADIOTAP_F_TX_FAIL as a fail=

ure

Quoted 6 lines
Quoted 6 lines

to send
=20
This all results in hostapd reporting "MGMT (TX callback) fail" and making rt73usb not work in AP mode.=20
=20
I'm hoping that some decision can be reached on how to fix this so =

that

Quoted 3 lines
Quoted 3 lines

AP mode will work with the rt73.=20
=20
Just off the top of my head, one way of fixing this would be to mak=

e

Quoted 1 line
Quoted 1 line

IEEE80211_TX_CTL_NO_ACK also work the other way around: Now it is u=

sed

Quoted 1 line
Quoted 1 line

to tell the lower level not to wait for an ACK. Perhaps it could al=

so be

Quoted 1 line
Quoted 1 line

used by the lower level to tell higher levels that no ACK is ever g=

oing

Quoted 1 line
Quoted 1 line

to come e.g. because the hardware is incapable of supplying TX ACKs=

=2E The

Quoted 1 line
Quoted 1 line

mac80211 layer would be changed to check for IEEE80211_TX_CTL_NO_AC=

K. If

Quoted 1 line
Quoted 1 line

the flag was set it would skip setting IEEE80211_RADIOTAP_F_TX_FAIL=

even

Quoted 3 lines
Quoted 1 line

when the IEEE80211_TX_STAT_ACK is missing.

=20
Actually this isn't the complete picture, what you might need is a ne=

w flag

Quoted 2 lines

IEEE80211_TX_CTL_UNKNOWN which then informs mac80211 that the frame has an unknown status, and that is something that could be pass=

ed on to

Quoted 3 lines

userspace through radiotap later.
=20
This is better then setting a global "supports ACK reporting" flag, b=

ecause in case

Quoted 1 line

of rt61 one every x frames also has an unknown status because the txd=

one interrupt

Quoted 1 line

isn't happening for that frame. So that means you definately need a p=

er-frame flag

Quoted 1 line

to tell if the frame was acked, not-acked or if the status was unknow=

n.

Quoted 4 lines

=20
Ivo

From what I understand the IEEE80211_TX_CTL_NO_ACK which is in the

flags of the ieee80211_tx_info struct, could be set from the driver for each frame just as currently (not) done with the IEEE80211_TX_STAT_ACK flag.=20

- Mikko
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 3 lines · On Friday 15 August 2008, Mikko Virkkil=C3=A4 wrote:
Quoted 2 lines · Ivo van Doorn
Quoted 1 line · On Friday 15 August 2008, Mikko Virkkil=C3=A4 wrote:

I'm moving the conversation over from rt2400-devel to linux-wirel=

ess.

Quoted 1 line
Quoted 1 line
Quoted 1 line

The last message (as of this writing) from the earlier conversati=

on at

Quoted 1 line
Quoted 1 line
Quoted 1 line

rt2400-devel can be found at http://tinyurl.com/6p9n7g with some =

more

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

details.
=20
So to summarize the situation:=20
=20
- the rt73usb driver (in rt2x00) doesn't set IEEE80211_TX_STAT_AC=

K

Quoted 1 line
Quoted 1 line
Quoted 1 line

because "frames which are uploaded to the hardware are not guar=

enteed

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

to be acked".

=20
rt2500usb suffers from the same issue.
=20

Quoted 1 line

- The mac80211 layer will set the IEEE80211_RADIOTAP_F_TX_FAIL if=

the=20

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

IEEE80211_TX_STAT_ACK flag is missing.=20
- hostapd will interpret the IEEE80211_RADIOTAP_F_TX_FAIL as a fa=

ilure

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

to send
=20
This all results in hostapd reporting "MGMT (TX callback) fail" a=

nd

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

making rt73usb not work in AP mode.=20
=20
I'm hoping that some decision can be reached on how to fix this s=

o that

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

AP mode will work with the rt73.=20
=20
Just off the top of my head, one way of fixing this would be to m=

ake

Quoted 1 line
Quoted 1 line
Quoted 1 line

IEEE80211_TX_CTL_NO_ACK also work the other way around: Now it is=

used

Quoted 1 line
Quoted 1 line
Quoted 1 line

to tell the lower level not to wait for an ACK. Perhaps it could =

also be

Quoted 1 line
Quoted 1 line
Quoted 1 line

used by the lower level to tell higher levels that no ACK is ever=

going

Quoted 1 line
Quoted 1 line
Quoted 1 line

to come e.g. because the hardware is incapable of supplying TX AC=

Ks. The

Quoted 1 line
Quoted 1 line
Quoted 1 line

mac80211 layer would be changed to check for IEEE80211_TX_CTL_NO_=

ACK. If

Quoted 1 line
Quoted 1 line
Quoted 1 line

the flag was set it would skip setting IEEE80211_RADIOTAP_F_TX_FA=

IL even

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

when the IEEE80211_TX_STAT_ACK is missing.

=20
Actually this isn't the complete picture, what you might need is a =

new flag

Quoted 2 lines
Quoted 2 lines

IEEE80211_TX_CTL_UNKNOWN which then informs mac80211 that the frame has an unknown status, and that is something that could be pa=

ssed on to

Quoted 3 lines
Quoted 3 lines

userspace through radiotap later.
=20
This is better then setting a global "supports ACK reporting" flag,=

because in case

Quoted 1 line
Quoted 1 line

of rt61 one every x frames also has an unknown status because the t=

xdone interrupt

Quoted 1 line
Quoted 1 line

isn't happening for that frame. So that means you definately need a=

per-frame flag

Quoted 1 line
Quoted 1 line

to tell if the frame was acked, not-acked or if the status was unkn=

own.

Quoted 5 lines
Quoted 2 lines

=20
Ivo

=20

Quoted 1 line

From what I understand the IEEE80211_TX_CTL_NO_ACK which is in the

flags of the ieee80211_tx_info struct, could be set from the driver f=

or

Quoted 1 line

each frame just as currently (not) done with the IEEE80211_TX_STAT_AC=

K

Quoted 1 line

flag.=20

Yes, but my comment was regarding your proposal regarding the "driver is incapable of supplying TX Acks to upper layer" which would suggest it would be a global setting instead of a per-frame setting. And my point was that you want this to be a per-frame setting similar to IEEE80211_TX_CTL_NO_ACK

Ivo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html