diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-02-17 11:33:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:23 -0500 |
commit | ef8f66cd1d6f360340a73ee7ed0492ff0f5f42ea (patch) | |
tree | 577bd4f874923a938280b4ac789656aaa617b75f /drivers/net/wireless/rt2x00/rt2500pci.c | |
parent | 30b3a23c2594e122e7086f97b5252a87eaf8a817 (diff) |
rt2x00: Remove reset_tsf()
Specifications indicate the TSF registers are read-only,
so there is no point in writing 0 to those registers.
As far as I know there isn't another way to reset the
TSF registers. So removing these callbacks will notify
mac80211 about the lack of support.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index ec7300e4fc56..93eaba852e5d 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1821,14 +1821,6 @@ static u64 rt2500pci_get_tsf(struct ieee80211_hw *hw) | |||
1821 | return tsf; | 1821 | return tsf; |
1822 | } | 1822 | } |
1823 | 1823 | ||
1824 | static void rt2500pci_reset_tsf(struct ieee80211_hw *hw) | ||
1825 | { | ||
1826 | struct rt2x00_dev *rt2x00dev = hw->priv; | ||
1827 | |||
1828 | rt2x00pci_register_write(rt2x00dev, CSR16, 0); | ||
1829 | rt2x00pci_register_write(rt2x00dev, CSR17, 0); | ||
1830 | } | ||
1831 | |||
1832 | static int rt2500pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, | 1824 | static int rt2500pci_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, |
1833 | struct ieee80211_tx_control *control) | 1825 | struct ieee80211_tx_control *control) |
1834 | { | 1826 | { |
@@ -1897,7 +1889,6 @@ static const struct ieee80211_ops rt2500pci_mac80211_ops = { | |||
1897 | .conf_tx = rt2x00mac_conf_tx, | 1889 | .conf_tx = rt2x00mac_conf_tx, |
1898 | .get_tx_stats = rt2x00mac_get_tx_stats, | 1890 | .get_tx_stats = rt2x00mac_get_tx_stats, |
1899 | .get_tsf = rt2500pci_get_tsf, | 1891 | .get_tsf = rt2500pci_get_tsf, |
1900 | .reset_tsf = rt2500pci_reset_tsf, | ||
1901 | .beacon_update = rt2500pci_beacon_update, | 1892 | .beacon_update = rt2500pci_beacon_update, |
1902 | .tx_last_beacon = rt2500pci_tx_last_beacon, | 1893 | .tx_last_beacon = rt2500pci_tx_last_beacon, |
1903 | }; | 1894 | }; |