Thread: [Madwifi-devel] ATH_RXBUF & ATH_TXBUF
Status: Beta
Brought to you by:
otaku
From: Ken L. <ken...@gm...> - 2008-02-29 19:25:16
|
Dear all I would like to control the I/O Buffer of AP. And I know there are variables called Rx and Tx Buffer in Madwifi. I have found the following code that may be useful, in /ath/if_athvar.h #define ATH_RXBUF 40 /* number of RX buffers */ #define ATH_TXBUF 200 /* number of TX buffers */ Does anyone know that the above variables could be used to control the I/O buffer?? Also, I have found that they are representing the number of "struct ath_buf" which is defined in the same header file. But, does anyone know the "struct ath_buf" is occupied for one packet/frame or more?? Thanks & Regards Ken |
From: Benoit P. <ben...@fr...> - 2008-02-29 21:19:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ken Lam a écrit : | Dear all | | I would like to control the I/O Buffer of AP. And I know there are | variables called Rx and Tx Buffer in Madwifi. | I have found the following code that may be useful, in /ath/if_athvar.h | | #define ATH_RXBUF 40 /* number of RX buffers */ | #define ATH_TXBUF 200 /* number of TX buffers */ | | Does anyone know that the above variables could be used to control the | I/O buffer?? | Also, I have found that they are representing the number of "struct | ath_buf" which is defined in the same header file. | But, does anyone know the "struct ath_buf" is occupied for one | packet/frame or more?? | | Thanks & Regards | Ken Hi Ken, Those defines match a pre-allocated number of buffers (in ath_buf structure). I don't understand what do you want to control? IMHO, if the number of RX buffers is too small, data are simply lost. If the number of TX buffer is too small (... lots of bugs will occur...), you will not be able to get the maximum troughput (current value of 200 might be a bit excessive, but the AP sometimes buffers broadcast packets when a STA enters sleep mode)). Regards, Benoit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHyHaKOR6EySwP7oIRAo+RAKDmg/GHZt42ql6iCexS/9Y53wpu8gCg953j PR2BY1ZUEBb7FNCr+nwJZ48= =bHJm -----END PGP SIGNATURE----- |
From: Ken L. <ken...@gm...> - 2008-03-05 22:14:24
|
Dear all According to the following code, #define ATH_RXBUF 40 /* number of RX buffers */ #define ATH_TXBUF 200 /* number of TX buffers */ I know these 2 values are the number of "struct ath_buf" in ../ath/if_athvar.h And "struct ath_buf" is complex data structure for DMA and memory pointer. But, does anyone know the unit of "struct ath_buf"?? Is it count in number of frame or size of frame?? And, what is the size of each "struct ath_buf" ?? Thanks & Regards Ken 2008/3/1, Ken Lam <ken...@gm...>: > > Dear all > > I would like to control the I/O Buffer of AP. And I know there are > variables called Rx and Tx Buffer in Madwifi. > I have found the following code that may be useful, in /ath/if_athvar.h > > #define ATH_RXBUF 40 /* number of RX buffers */ > #define ATH_TXBUF 200 /* number of TX buffers */ > > Does anyone know that the above variables could be used to control the I/O > buffer?? > Also, I have found that they are representing the number of "struct > ath_buf" which is defined in the same header file. > But, does anyone know the "struct ath_buf" is occupied for one > packet/frame or more?? > > Thanks & Regards > Ken |