diff options
author | Alina Friedrichsen <x-alina@gmx.net> | 2009-02-25 02:49:18 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-05 22:39:30 +0300 |
commit | 5fe73197d359248cbf32dfd3280540d6a0dfd31c (patch) | |
tree | 87ae431ca5bea9e5874b2f7cfd50b632b4845ab5 /drivers/net/wireless/zd1211rw/zd_mac.c | |
parent | b3bd89ce956c220fe52a003103f14af48f695fda (diff) | |
download | linux-5fe73197d359248cbf32dfd3280540d6a0dfd31c.tar.xz |
zd1211rw: Implement get_tsf()
This patch implements get_tsf() of ieee80211_ops in the zd1211rw driver.
Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_mac.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index da9214e33a5f..0b01ff036aac 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c @@ -935,6 +935,12 @@ static void zd_op_bss_info_changed(struct ieee80211_hw *hw, } } +static u64 zd_op_get_tsf(struct ieee80211_hw *hw) +{ + struct zd_mac *mac = zd_hw_mac(hw); + return zd_chip_get_tsf(&mac->chip); +} + static const struct ieee80211_ops zd_ops = { .tx = zd_op_tx, .start = zd_op_start, @@ -945,6 +951,7 @@ static const struct ieee80211_ops zd_ops = { .config_interface = zd_op_config_interface, .configure_filter = zd_op_configure_filter, .bss_info_changed = zd_op_bss_info_changed, + .get_tsf = zd_op_get_tsf, }; struct ieee80211_hw *zd_mac_alloc_hw(struct usb_interface *intf) |