From: "Gábor Stefanik" <netrolller.3d@gmail.com>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: John W Linville <linville@tuxdriver.com>,
Herton Ronaldo Krzesinski <herton@mandriva.com.br>,
Hin-Tak Leung <htl10@users.sourceforge.net>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] rtl8187: Add callback for get_tsf
Date: Wed, 27 Jan 2010 00:57:14 +0100 [thread overview]
Message-ID: <69e28c911001261557q39a17b75oa8d46538144ce12d@mail.gmail.com> (raw)
In-Reply-To: <4b5f7e98.WueiIRrKwMIrtoob%Larry.Finger@lwfinger.net>
On Wed, Jan 27, 2010 at 12:45 AM, Larry Finger
<Larry.Finger@lwfinger.net> wrote:
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> ---
>
> Index: wireless-testing/drivers/net/wireless/rtl818x/rtl8187_dev.c
> ===================================================================
> --- wireless-testing.orig/drivers/net/wireless/rtl818x/rtl8187_dev.c
> +++ wireless-testing/drivers/net/wireless/rtl818x/rtl8187_dev.c
> @@ -1265,6 +1265,14 @@ static int rtl8187_conf_tx(struct ieee80
> 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 = {
> .tx = rtl8187_tx,
> .start = rtl8187_start,
> @@ -1276,7 +1284,8 @@ static const struct ieee80211_ops rtl818
> .prepare_multicast = rtl8187_prepare_multicast,
> .configure_filter = rtl8187_configure_filter,
> .conf_tx = rtl8187_conf_tx,
> - .rfkill_poll = rtl8187_rfkill_poll
> + .rfkill_poll = rtl8187_rfkill_poll,
> + .get_tsf = rtl8187_get_tsf
Please put a comma at the end of this line. It doesn't really matter,
but this is the accepted kernel coding style.
> };
>
> static void rtl8187_eeprom_register_read(struct eeprom_93cx6 *eeprom)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
next prev parent reply other threads:[~2010-01-26 23:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 23:45 [PATCH] rtl8187: Add callback for get_tsf Larry Finger
2010-01-26 23:57 ` Gábor Stefanik [this message]
2010-01-27 0:27 ` Hin-Tak Leung
2010-01-27 0:17 ` Hin-Tak Leung
2010-01-27 0:28 ` Larry Finger
2010-01-27 9:17 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=69e28c911001261557q39a17b75oa8d46538144ce12d@mail.gmail.com \
--to=netrolller.3d@gmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=herton@mandriva.com.br \
--cc=htl10@users.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox