mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-18 12:45:08 +00:00
rtl8187: Add callback for get_tsf
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
da8604757b
commit
22e16e55e3
1 changed files with 10 additions and 1 deletions
|
@ -1265,6 +1265,14 @@ static int rtl8187_conf_tx(struct ieee80211_hw *dev, u16 queue,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static u64 rtl8187_get_tsf(struct ieee80211_hw *dev)
|
||||||
|
{
|
||||||
|
struct rtl8187_priv *priv = dev->priv;
|
||||||
|
|
||||||
|
return rtl818x_ioread32(priv, &priv->map->TSFT[0]) |
|
||||||
|
(u64)(rtl818x_ioread32(priv, &priv->map->TSFT[1])) << 32;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct ieee80211_ops rtl8187_ops = {
|
static const struct ieee80211_ops rtl8187_ops = {
|
||||||
.tx = rtl8187_tx,
|
.tx = rtl8187_tx,
|
||||||
.start = rtl8187_start,
|
.start = rtl8187_start,
|
||||||
|
@ -1276,7 +1284,8 @@ static const struct ieee80211_ops rtl8187_ops = {
|
||||||
.prepare_multicast = rtl8187_prepare_multicast,
|
.prepare_multicast = rtl8187_prepare_multicast,
|
||||||
.configure_filter = rtl8187_configure_filter,
|
.configure_filter = rtl8187_configure_filter,
|
||||||
.conf_tx = rtl8187_conf_tx,
|
.conf_tx = rtl8187_conf_tx,
|
||||||
.rfkill_poll = rtl8187_rfkill_poll
|
.rfkill_poll = rtl8187_rfkill_poll,
|
||||||
|
.get_tsf = rtl8187_get_tsf,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void rtl8187_eeprom_register_read(struct eeprom_93cx6 *eeprom)
|
static void rtl8187_eeprom_register_read(struct eeprom_93cx6 *eeprom)
|
||||||
|
|
Loading…
Add table
Reference in a new issue