Commit 37894473 authored by Ivo van Doorn's avatar Ivo van Doorn Committed by David S. Miller

[PATCH] rt2x00: Clean disabling of rt73usb_get_tsf

By defining rt73usb_get_tsf to NULL we only
have 1 location that needs to be edited
when rt73usb_get_tsf can be enabled again.
This also reduces the number of #ifdefs in
the code which is also a "good thing"
Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5c58ee51
...@@ -1910,6 +1910,8 @@ static u64 rt73usb_get_tsf(struct ieee80211_hw *hw) ...@@ -1910,6 +1910,8 @@ static u64 rt73usb_get_tsf(struct ieee80211_hw *hw)
return tsf; return tsf;
} }
#else
#define rt73usb_get_tsf NULL
#endif #endif
static void rt73usb_reset_tsf(struct ieee80211_hw *hw) static void rt73usb_reset_tsf(struct ieee80211_hw *hw)
...@@ -1970,12 +1972,7 @@ static const struct ieee80211_ops rt73usb_mac80211_ops = { ...@@ -1970,12 +1972,7 @@ static const struct ieee80211_ops rt73usb_mac80211_ops = {
.erp_ie_changed = rt2x00mac_erp_ie_changed, .erp_ie_changed = rt2x00mac_erp_ie_changed,
.conf_tx = rt2x00mac_conf_tx, .conf_tx = rt2x00mac_conf_tx,
.get_tx_stats = rt2x00mac_get_tx_stats, .get_tx_stats = rt2x00mac_get_tx_stats,
#if 0
/*
* See comment at the rt73usb_get_tsf function.
*/
.get_tsf = rt73usb_get_tsf, .get_tsf = rt73usb_get_tsf,
#endif
.reset_tsf = rt73usb_reset_tsf, .reset_tsf = rt73usb_reset_tsf,
.beacon_update = rt73usb_beacon_update, .beacon_update = rt73usb_beacon_update,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment