Skip to contentSkip to conversation

Sequence numbers in ath9k tx path

ath9k-devel David Shwatrz 2 participants 2 messages Mar 10, 2009 – Mar 11, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

I have a short question regarding the transmit path:

I see that the sequence number of the ieee80211 header
(ieee80211_hdr) is incremented in the driver transmit path:

ath_tx_cabq() in xmit.c:
....
hdr->seq_ctrl |= cpu_to_le16(sc->tx.seq_no);

AFAIK, it is also incremented also in the tx path of the mlme.c:

in ieee80211_tx_h_sequence(): (net/mac80211/tx.c)
...
if (!ieee80211_is_data_qos(hdr->frame_control)) {
...

		hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number);
		tx->sdata->sequence_number += 0x10;

...

and ieee80211_tx_h_sequence() is called by invoke_tx_handlers() in tx.c.

Why is it so ? or don't we reach both these methods?

Regards,
Andy
....

#1 lore raw
Quoted 4 lines · David Shwatrz

Hello,

I have a short question regarding the transmit path:

Quoted 8 lines

I see that the sequence number of the ieee80211 header
(ieee80211_hdr) is incremented in the driver transmit path:

ath_tx_cabq() in xmit.c:
....
hdr->seq_ctrl |= cpu_to_le16(sc->tx.seq_no);

AFAIK, it is also incremented also in the tx path of the mlme.c:

mac80211 fills in the sequence number, but the driver or the hardware are free to replace it when actually transmitting. As I understand, ath9k uses its own sequence numbers.

Signature · 2 lines
Regards,
Pavel Roskin