From: daldoul yousri Date: Tue, 29 Nov 2011 10:52:55 +0000 (GMT) Subject: [ath9k-devel] Re : Sinding A-MPDU In-Reply-To: References: <1322490267.75002.YahooMailNeo@web29014.mail.ird.yahoo.com> Message-ID: <1322563975.44823.YahooMailNeo@web29007.mail.ird.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Thank you a lot for your answer. I am aware about the A-MPDU size constraint. Data exceeding the?announced size will be considered as noise. This is not a problem! I do not use RTS/CTS I will disable the use of the Block ack. I do not need any feedback policy! When I saw your example : http://people.freebsd.org/~adrian/pcap4-ampdu-tx-dup.pcapI understood that the hardware does not wait the reception end of the entire A-MPDU to deliver the received MPDUs to the upper layer. Each MPDU is delivered once it is received (conclusion made based on the reception time in your example). That is why I am saying "may be" the same thing is done for the transmission: MPDUs are stored somewhere by the driver and delivered to the hardware at the transmission time. If this is the case, then may be I can deliver the priority frame instead of the 6th frame, and afterward I deliver the 6th to the 9th frames and I cancel the 10th frame since it will be considered as noise. However I do not see where the driver asks the hardware to start transmitting an A-MPDU. The function "ath_tx_send_ampdu()" calls "ath_tx_txqaddbuf()" which will never call "ath9k_hw_txstart()" since "edma" is always "True". And I do not see any place else where the driver may ask the hardware to start transmitting an A-MPDU. Do you have any idea about this? Regards, > Hi all, > I have some questions concerning the transmission of an A-MPDUs using ath9k: > * If we aggregate several MPDUs, say 10 MPDUs, into an A-MPDU and send them > to receiver "R1". And during the transmission of this A-MPDU, a priority > frame, say "Fp", comes from the upper layer and should be transmitted > urgently to "R1". Let suppose that the 5th MPDU is being transmitted when > the frame "Fp" comes. Is it possible to insert "Fp" into the A-MPDU in the > 6th position and send it without waiting the transmission end of the current > A-MPDU? The aggregate field has a "total length" field in the first frame, so I think you may confuse the hardware. There's no guarantee that you'll be able to sneak in that frame before the hardware reads the next/last descriptor, so you may have it sometimes TX and sometimes not. If RTS/CTS protection is being used then you've already announced how long the aggregate frame is, so you'd be breaking the spec by adding to it. There's no guarantee that priority frame will be within the block-ack window (or that it should even be -in- an aggregate - eg, a null data frame) so you may not want to aggregate it anyway. > * What is the difference between the hardware transmission queue and the > software transmission queue? Do I have the choice to use the software queue > instead of the hardware queue, or is the software queue and intermediate > queue and any frame will end in the hardware queue? > Best regard The hardware queue is for frames that are actually pending to the hardware. Ie, the descriptors are setup in the relevant ring/chain (depending upon your chipset) and the hardware will eventually TX those. The software queue is a staging ground for what is put into the hardware queue. It gives the aggregation logic time to figure out what/how to aggregate and allows for out of order transmission and software retransmit (however strictly speaking these latter two can be done without a software queue..) There's also the CAB and multicast queues - the multicast queue is a software queue; a staging ground for what goes into the hardware CAB queue just before the beacon goes out. Adrian On 28 November 2011 22:24, daldoul yousri wrote: