diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2008-12-12 07:38:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 15:23:04 -0500 |
commit | 0fb8ca45eb164c405eef8978f26829f9348b4d4d (patch) | |
tree | 1fc5728b225e7d5a0d06bb0700c83d64bde44f82 /net/mac80211/mlme.c | |
parent | 9d8eed12dbc04f8ed70090da14211c808b5a8d81 (diff) |
mac80211: Add HT rates into RX status reporting
This patch adds option for HT-enabled drivers to report HT rates
(HT20/HT40, short GI, MCS index) to mac80211. These rates are
currently not in the rate table, so the rate_idx is used to indicate
MCS index.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index e4d1fca5c72d..a444b38f4901 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1613,8 +1613,13 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
1613 | * e.g: at 1 MBit that means mactime is 192 usec earlier | 1613 | * e.g: at 1 MBit that means mactime is 192 usec earlier |
1614 | * (=24 bytes * 8 usecs/byte) than the beacon timestamp. | 1614 | * (=24 bytes * 8 usecs/byte) than the beacon timestamp. |
1615 | */ | 1615 | */ |
1616 | int rate = local->hw.wiphy->bands[band]-> | 1616 | int rate; |
1617 | if (rx_status->flag & RX_FLAG_HT) { | ||
1618 | rate = 65; /* TODO: HT rates */ | ||
1619 | } else { | ||
1620 | rate = local->hw.wiphy->bands[band]-> | ||
1617 | bitrates[rx_status->rate_idx].bitrate; | 1621 | bitrates[rx_status->rate_idx].bitrate; |
1622 | } | ||
1618 | rx_timestamp = rx_status->mactime + (24 * 8 * 10 / rate); | 1623 | rx_timestamp = rx_status->mactime + (24 * 8 * 10 / rate); |
1619 | } else if (local && local->ops && local->ops->get_tsf) | 1624 | } else if (local && local->ops && local->ops->get_tsf) |
1620 | /* second best option: get current TSF */ | 1625 | /* second best option: get current TSF */ |