杰尔米
2016-12-06 00:32:31 UTC
I'm a newbies in 802.11n, please excuse me to ask some unprofessional questions:
I found the array ath9k_legacy_rates below in file common-init.c in ath9k driver. what are these rates means?
There are 12 rates in the array, but there are only 4 ath9k_11n_rate_series in ath_tx_info.rates[], why?
static struct ieee80211_rate ath9k_legacy_rates[] = {
RATE(10, 0x1b, 0),
RATE(20, 0x1a, IEEE80211_RATE_SHORT_PREAMBLE),
RATE(55, 0x19, IEEE80211_RATE_SHORT_PREAMBLE),
RATE(110, 0x18, IEEE80211_RATE_SHORT_PREAMBLE),
RATE(60, 0x0b, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(90, 0x0f, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(120, 0x0a, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(180, 0x0e, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(240, 0x09, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(360, 0x0d, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(480, 0x08, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(540, 0x0c, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
};
struct ath_tx_info {
u8 qcu;
bool is_first;
bool is_last;
enum aggr_type aggr;
u8 ndelim;
u16 aggr_len;
dma_addr_t link;
int pkt_len;
u32 flags;
dma_addr_t buf_addr[4];
int buf_len[4];
struct ath9k_11n_rate_series rates[4];
u8 rtscts_rate;
bool dur_update;
enum ath9k_pkt_type type;
enum ath9k_key_type keytype;
u8 keyix;
u8 txpower[4];
};
------------------ ÔÊŒÓÊŒþ ------------------
·¢ŒþÈË: "Kamran Nishat";<***@gmail.com>;
·¢ËÍʱŒä: 2016Äê12ÔÂ5ÈÕ(ÐÇÆÚÒ») ÖÐÎç1:06
ÊÕŒþÈË: "œÜ¶ûÃ×"<***@qq.com>;
Ö÷Ìâ: Re: [ath9k-devel] Why are there only 4 ieee80211_tx_rate in Mac80211and ath9k
look into Minstrel_ht
On Mon, Dec 5, 2016 at 8:11 AM, œÜ¶ûÃ× <***@qq.com> wrote:
Can anyone give me a clue, please?
·¢×ÔÎÒµÄiPhone
_______________________________________________
ath9k-devel mailing list
ath9k-***@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
I found the array ath9k_legacy_rates below in file common-init.c in ath9k driver. what are these rates means?
There are 12 rates in the array, but there are only 4 ath9k_11n_rate_series in ath_tx_info.rates[], why?
static struct ieee80211_rate ath9k_legacy_rates[] = {
RATE(10, 0x1b, 0),
RATE(20, 0x1a, IEEE80211_RATE_SHORT_PREAMBLE),
RATE(55, 0x19, IEEE80211_RATE_SHORT_PREAMBLE),
RATE(110, 0x18, IEEE80211_RATE_SHORT_PREAMBLE),
RATE(60, 0x0b, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(90, 0x0f, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(120, 0x0a, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(180, 0x0e, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(240, 0x09, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(360, 0x0d, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(480, 0x08, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
RATE(540, 0x0c, (IEEE80211_RATE_SUPPORTS_5MHZ |
IEEE80211_RATE_SUPPORTS_10MHZ)),
};
struct ath_tx_info {
u8 qcu;
bool is_first;
bool is_last;
enum aggr_type aggr;
u8 ndelim;
u16 aggr_len;
dma_addr_t link;
int pkt_len;
u32 flags;
dma_addr_t buf_addr[4];
int buf_len[4];
struct ath9k_11n_rate_series rates[4];
u8 rtscts_rate;
bool dur_update;
enum ath9k_pkt_type type;
enum ath9k_key_type keytype;
u8 keyix;
u8 txpower[4];
};
------------------ ÔÊŒÓÊŒþ ------------------
·¢ŒþÈË: "Kamran Nishat";<***@gmail.com>;
·¢ËÍʱŒä: 2016Äê12ÔÂ5ÈÕ(ÐÇÆÚÒ») ÖÐÎç1:06
ÊÕŒþÈË: "œÜ¶ûÃ×"<***@qq.com>;
Ö÷Ìâ: Re: [ath9k-devel] Why are there only 4 ieee80211_tx_rate in Mac80211and ath9k
look into Minstrel_ht
On Mon, Dec 5, 2016 at 8:11 AM, œÜ¶ûÃ× <***@qq.com> wrote:
Can anyone give me a clue, please?
·¢×ÔÎÒµÄiPhone
_______________________________________________
ath9k-devel mailing list
ath9k-***@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel