Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d2bb8e02
Commit
d2bb8e02
authored
Jan 26, 2010
by
John W. Linville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtl8180: implement get_tsf op for mac80211
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
d3d5621a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
drivers/net/wireless/rtl818x/rtl8180_dev.c
drivers/net/wireless/rtl818x/rtl8180_dev.c
+9
-0
No files found.
drivers/net/wireless/rtl818x/rtl8180_dev.c
View file @
d2bb8e02
...
...
@@ -761,6 +761,14 @@ static void rtl8180_configure_filter(struct ieee80211_hw *dev,
rtl818x_iowrite32
(
priv
,
&
priv
->
map
->
RX_CONF
,
priv
->
rx_conf
);
}
static
u64
rtl8180_get_tsf
(
struct
ieee80211_hw
*
dev
)
{
struct
rtl8180_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
rtl8180_ops
=
{
.
tx
=
rtl8180_tx
,
.
start
=
rtl8180_start
,
...
...
@@ -771,6 +779,7 @@ static const struct ieee80211_ops rtl8180_ops = {
.
bss_info_changed
=
rtl8180_bss_info_changed
,
.
prepare_multicast
=
rtl8180_prepare_multicast
,
.
configure_filter
=
rtl8180_configure_filter
,
.
get_tsf
=
rtl8180_get_tsf
,
};
static
void
rtl8180_eeprom_register_read
(
struct
eeprom_93cx6
*
eeprom
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment