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
9a98979e
Commit
9a98979e
authored
Mar 30, 2013
by
Rafał Miłecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b43: N-PHY: use defines for (re)storing VCM config
Signed-off-by:
Rafał Miłecki
<
zajec5@gmail.com
>
parent
78ae7532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
drivers/net/wireless/b43/phy_n.c
drivers/net/wireless/b43/phy_n.c
+14
-5
No files found.
drivers/net/wireless/b43/phy_n.c
View file @
9a98979e
...
...
@@ -1748,8 +1748,13 @@ static void b43_nphy_rev3_rssi_cal(struct b43_wldev *dev)
rssical_radio_regs
=
nphy
->
rssical_cache
.
rssical_radio_regs_5G
;
rssical_phy_regs
=
nphy
->
rssical_cache
.
rssical_phy_regs_5G
;
}
rssical_radio_regs
[
0
]
=
b43_radio_read
(
dev
,
0x602B
);
rssical_radio_regs
[
0
]
=
b43_radio_read
(
dev
,
0x702B
);
if
(
dev
->
phy
.
rev
>=
7
)
{
}
else
{
rssical_radio_regs
[
0
]
=
b43_radio_read
(
dev
,
B2056_RX0
|
B2056_RX_RSSI_MISC
);
rssical_radio_regs
[
1
]
=
b43_radio_read
(
dev
,
B2056_RX1
|
B2056_RX_RSSI_MISC
);
}
rssical_phy_regs
[
0
]
=
b43_phy_read
(
dev
,
B43_NPHY_RSSIMC_0I_RSSI_Z
);
rssical_phy_regs
[
1
]
=
b43_phy_read
(
dev
,
B43_NPHY_RSSIMC_0Q_RSSI_Z
);
rssical_phy_regs
[
2
]
=
b43_phy_read
(
dev
,
B43_NPHY_RSSIMC_1I_RSSI_Z
);
...
...
@@ -3899,9 +3904,13 @@ static void b43_nphy_restore_rssi_cal(struct b43_wldev *dev)
rssical_phy_regs
=
nphy
->
rssical_cache
.
rssical_phy_regs_5G
;
}
/* TODO use some definitions */
b43_radio_maskset
(
dev
,
0x602B
,
0xE3
,
rssical_radio_regs
[
0
]);
b43_radio_maskset
(
dev
,
0x702B
,
0xE3
,
rssical_radio_regs
[
1
]);
if
(
dev
->
phy
.
rev
>=
7
)
{
}
else
{
b43_radio_maskset
(
dev
,
B2056_RX0
|
B2056_RX_RSSI_MISC
,
0xE3
,
rssical_radio_regs
[
0
]);
b43_radio_maskset
(
dev
,
B2056_RX1
|
B2056_RX_RSSI_MISC
,
0xE3
,
rssical_radio_regs
[
1
]);
}
b43_phy_write
(
dev
,
B43_NPHY_RSSIMC_0I_RSSI_Z
,
rssical_phy_regs
[
0
]);
b43_phy_write
(
dev
,
B43_NPHY_RSSIMC_0Q_RSSI_Z
,
rssical_phy_regs
[
1
]);
...
...
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