aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c7
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 */