diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-01-26 16:22:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-27 15:02:05 -0500 |
commit | d2bb8e02810cc5844fe2bd5a81d4058b8afe6de9 (patch) | |
tree | 5fb1bd797e83caf6ed411255d90323b1d6340453 /drivers/net/wireless/rtl818x | |
parent | d3d5621abf6d2105700795fcbdf784b9cb46b495 (diff) |
rtl8180: implement get_tsf op for mac80211
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtl818x')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8180_dev.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c index 5a2b7199f5d5..109ab1baf625 100644 --- a/drivers/net/wireless/rtl818x/rtl8180_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c | |||
@@ -761,6 +761,14 @@ static void rtl8180_configure_filter(struct ieee80211_hw *dev, | |||
761 | rtl818x_iowrite32(priv, &priv->map->RX_CONF, priv->rx_conf); | 761 | rtl818x_iowrite32(priv, &priv->map->RX_CONF, priv->rx_conf); |
762 | } | 762 | } |
763 | 763 | ||
764 | static u64 rtl8180_get_tsf(struct ieee80211_hw *dev) | ||
765 | { | ||
766 | struct rtl8180_priv *priv = dev->priv; | ||
767 | |||
768 | return rtl818x_ioread32(priv, &priv->map->TSFT[0]) | | ||
769 | (u64)(rtl818x_ioread32(priv, &priv->map->TSFT[1])) << 32; | ||
770 | } | ||
771 | |||
764 | static const struct ieee80211_ops rtl8180_ops = { | 772 | static const struct ieee80211_ops rtl8180_ops = { |
765 | .tx = rtl8180_tx, | 773 | .tx = rtl8180_tx, |
766 | .start = rtl8180_start, | 774 | .start = rtl8180_start, |
@@ -771,6 +779,7 @@ static const struct ieee80211_ops rtl8180_ops = { | |||
771 | .bss_info_changed = rtl8180_bss_info_changed, | 779 | .bss_info_changed = rtl8180_bss_info_changed, |
772 | .prepare_multicast = rtl8180_prepare_multicast, | 780 | .prepare_multicast = rtl8180_prepare_multicast, |
773 | .configure_filter = rtl8180_configure_filter, | 781 | .configure_filter = rtl8180_configure_filter, |
782 | .get_tsf = rtl8180_get_tsf, | ||
774 | }; | 783 | }; |
775 | 784 | ||
776 | static void rtl8180_eeprom_register_read(struct eeprom_93cx6 *eeprom) | 785 | static void rtl8180_eeprom_register_read(struct eeprom_93cx6 *eeprom) |