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
Kirill Smelkov
linux
Commits
9cfc17cb
Commit
9cfc17cb
authored
Mar 16, 2013
by
Rafał Miłecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b43: HT-PHY: finish calculating values for idle TSSI
Signed-off-by:
Rafał Miłecki
<
zajec5@gmail.com
>
parent
9a0bc41e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
drivers/net/wireless/b43/phy_ht.c
drivers/net/wireless/b43/phy_ht.c
+18
-2
No files found.
drivers/net/wireless/b43/phy_ht.c
View file @
9cfc17cb
...
...
@@ -529,9 +529,21 @@ static void b43_phy_ht_tx_power_ctl(struct b43_wldev *dev, bool enable)
static
void
b43_phy_ht_tx_power_ctl_idle_tssi
(
struct
b43_wldev
*
dev
)
{
struct
b43_phy_ht
*
phy_ht
=
dev
->
phy
.
ht
;
static
const
u16
base
[]
=
{
0x840
,
0x860
,
0x880
};
u16
save_regs
[
3
][
3
];
s32
rssi_buf
[
6
];
int
core
;
/* TODO */
for
(
core
=
0
;
core
<
3
;
core
++
)
{
save_regs
[
core
][
1
]
=
b43_phy_read
(
dev
,
base
[
core
]
+
6
);
save_regs
[
core
][
2
]
=
b43_phy_read
(
dev
,
base
[
core
]
+
7
);
save_regs
[
core
][
0
]
=
b43_phy_read
(
dev
,
base
[
core
]
+
0
);
b43_phy_write
(
dev
,
base
[
core
]
+
6
,
0
);
b43_phy_mask
(
dev
,
base
[
core
]
+
7
,
~
0xF
);
/* 0xF? Or just 0x6? */
b43_phy_set
(
dev
,
base
[
core
]
+
0
,
0x0400
);
b43_phy_set
(
dev
,
base
[
core
]
+
0
,
0x1000
);
}
b43_phy_ht_tx_tone
(
dev
);
udelay
(
20
);
...
...
@@ -543,7 +555,11 @@ static void b43_phy_ht_tx_power_ctl_idle_tssi(struct b43_wldev *dev)
phy_ht
->
idle_tssi
[
1
]
=
rssi_buf
[
2
]
&
0xff
;
phy_ht
->
idle_tssi
[
2
]
=
rssi_buf
[
4
]
&
0xff
;
/* TODO */
for
(
core
=
0
;
core
<
3
;
core
++
)
{
b43_phy_write
(
dev
,
base
[
core
]
+
0
,
save_regs
[
core
][
0
]);
b43_phy_write
(
dev
,
base
[
core
]
+
6
,
save_regs
[
core
][
1
]);
b43_phy_write
(
dev
,
base
[
core
]
+
7
,
save_regs
[
core
][
2
]);
}
}
static
void
b43_phy_ht_tx_power_ctl_setup
(
struct
b43_wldev
*
dev
)
...
...
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