diff options
author | Eliad Peller <eliad@wizery.com> | 2011-09-21 07:06:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-27 14:27:48 -0400 |
commit | 37a41b4affa33bb237d3692bf51f1b5ebcaf29d8 (patch) | |
tree | 0201e166912d12bd8270b2117b11717756cfd5db /drivers/net/wireless/rt2x00 | |
parent | 129321804e36721e71fadcab5b475bd37bf53044 (diff) |
mac80211: add ieee80211_vif param to tsf functions
TSF can be kept per vif.
Add ieee80211_vif param to set/get/reset_tsf, and move
the debugfs entries to the per-vif directory.
Update all the drivers that implement these callbacks.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2400pci.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500pci.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800lib.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 2 |
6 files changed, 9 insertions, 7 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index daa32fc9398b..7e9272b8f01d 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1239,7 +1239,7 @@ static void rt2400pci_fill_rxdone(struct queue_entry *entry, | |||
1239 | * call, we must decrease the higher 32bits with 1 to get | 1239 | * call, we must decrease the higher 32bits with 1 to get |
1240 | * to correct value. | 1240 | * to correct value. |
1241 | */ | 1241 | */ |
1242 | tsf = rt2x00dev->ops->hw->get_tsf(rt2x00dev->hw); | 1242 | tsf = rt2x00dev->ops->hw->get_tsf(rt2x00dev->hw, NULL); |
1243 | rx_low = rt2x00_get_field32(word4, RXD_W4_RX_END_TIME); | 1243 | rx_low = rt2x00_get_field32(word4, RXD_W4_RX_END_TIME); |
1244 | rx_high = upper_32_bits(tsf); | 1244 | rx_high = upper_32_bits(tsf); |
1245 | 1245 | ||
@@ -1673,7 +1673,8 @@ static int rt2400pci_conf_tx(struct ieee80211_hw *hw, u16 queue, | |||
1673 | return 0; | 1673 | return 0; |
1674 | } | 1674 | } |
1675 | 1675 | ||
1676 | static u64 rt2400pci_get_tsf(struct ieee80211_hw *hw) | 1676 | static u64 rt2400pci_get_tsf(struct ieee80211_hw *hw, |
1677 | struct ieee80211_vif *vif) | ||
1677 | { | 1678 | { |
1678 | struct rt2x00_dev *rt2x00dev = hw->priv; | 1679 | struct rt2x00_dev *rt2x00dev = hw->priv; |
1679 | u64 tsf; | 1680 | u64 tsf; |
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c index b46c3b8866fa..dcc0e1fcca77 100644 --- a/drivers/net/wireless/rt2x00/rt2500pci.c +++ b/drivers/net/wireless/rt2x00/rt2500pci.c | |||
@@ -1966,7 +1966,8 @@ static int rt2500pci_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
1966 | /* | 1966 | /* |
1967 | * IEEE80211 stack callback functions. | 1967 | * IEEE80211 stack callback functions. |
1968 | */ | 1968 | */ |
1969 | static u64 rt2500pci_get_tsf(struct ieee80211_hw *hw) | 1969 | static u64 rt2500pci_get_tsf(struct ieee80211_hw *hw, |
1970 | struct ieee80211_vif *vif) | ||
1970 | { | 1971 | { |
1971 | struct rt2x00_dev *rt2x00dev = hw->priv; | 1972 | struct rt2x00_dev *rt2x00dev = hw->priv; |
1972 | u64 tsf; | 1973 | u64 tsf; |
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 31c98509f7e6..9688dd0a7ebd 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -4466,7 +4466,7 @@ int rt2800_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | |||
4466 | } | 4466 | } |
4467 | EXPORT_SYMBOL_GPL(rt2800_conf_tx); | 4467 | EXPORT_SYMBOL_GPL(rt2800_conf_tx); |
4468 | 4468 | ||
4469 | u64 rt2800_get_tsf(struct ieee80211_hw *hw) | 4469 | u64 rt2800_get_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif) |
4470 | { | 4470 | { |
4471 | struct rt2x00_dev *rt2x00dev = hw->priv; | 4471 | struct rt2x00_dev *rt2x00dev = hw->priv; |
4472 | u64 tsf; | 4472 | u64 tsf; |
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.h b/drivers/net/wireless/rt2x00/rt2800lib.h index 7a2511f6785c..6de128e9c612 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.h +++ b/drivers/net/wireless/rt2x00/rt2800lib.h | |||
@@ -199,7 +199,7 @@ void rt2800_get_tkip_seq(struct ieee80211_hw *hw, u8 hw_key_idx, u32 *iv32, | |||
199 | int rt2800_set_rts_threshold(struct ieee80211_hw *hw, u32 value); | 199 | int rt2800_set_rts_threshold(struct ieee80211_hw *hw, u32 value); |
200 | int rt2800_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | 200 | int rt2800_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, |
201 | const struct ieee80211_tx_queue_params *params); | 201 | const struct ieee80211_tx_queue_params *params); |
202 | u64 rt2800_get_tsf(struct ieee80211_hw *hw); | 202 | u64 rt2800_get_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif); |
203 | int rt2800_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | 203 | int rt2800_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
204 | enum ieee80211_ampdu_mlme_action action, | 204 | enum ieee80211_ampdu_mlme_action action, |
205 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, | 205 | struct ieee80211_sta *sta, u16 tid, u16 *ssn, |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 058ef4b19d1d..6b6a8e2dcddc 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -2940,7 +2940,7 @@ static int rt61pci_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | |||
2940 | return 0; | 2940 | return 0; |
2941 | } | 2941 | } |
2942 | 2942 | ||
2943 | static u64 rt61pci_get_tsf(struct ieee80211_hw *hw) | 2943 | static u64 rt61pci_get_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif) |
2944 | { | 2944 | { |
2945 | struct rt2x00_dev *rt2x00dev = hw->priv; | 2945 | struct rt2x00_dev *rt2x00dev = hw->priv; |
2946 | u64 tsf; | 2946 | u64 tsf; |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 0baeb894f093..6f51e39f5595 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -2279,7 +2279,7 @@ static int rt73usb_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | |||
2279 | return 0; | 2279 | return 0; |
2280 | } | 2280 | } |
2281 | 2281 | ||
2282 | static u64 rt73usb_get_tsf(struct ieee80211_hw *hw) | 2282 | static u64 rt73usb_get_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif) |
2283 | { | 2283 | { |
2284 | struct rt2x00_dev *rt2x00dev = hw->priv; | 2284 | struct rt2x00_dev *rt2x00dev = hw->priv; |
2285 | u64 tsf; | 2285 | u64 tsf; |