Search Linux Wireless

Re: [PATCH] rtl8187: Add callback for get_tsf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 27, 2010 at 12:45 AM, Larry Finger
<Larry.Finger@xxxxxxxxxxxx> wrote:
> Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
> ---
>
> 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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux