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
418e8b68
Commit
418e8b68
authored
Mar 17, 2013
by
Rafał Miłecki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b43: HT-PHY: store TX power state before disabling it
Signed-off-by:
Rafał Miłecki
<
zajec5@gmail.com
>
parent
fc6ab1e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
drivers/net/wireless/b43/phy_ht.c
drivers/net/wireless/b43/phy_ht.c
+6
-4
No files found.
drivers/net/wireless/b43/phy_ht.c
View file @
418e8b68
...
@@ -497,15 +497,17 @@ static void b43_phy_ht_tx_power_ctl(struct b43_wldev *dev, bool enable)
...
@@ -497,15 +497,17 @@ static void b43_phy_ht_tx_power_ctl(struct b43_wldev *dev, bool enable)
static
const
u16
cmd_regs
[
3
]
=
{
B43_PHY_HT_TXPCTL_CMD_C1
,
static
const
u16
cmd_regs
[
3
]
=
{
B43_PHY_HT_TXPCTL_CMD_C1
,
B43_PHY_HT_TXPCTL_CMD_C2
,
B43_PHY_HT_TXPCTL_CMD_C2
,
B43_PHY_HT_TXPCTL_CMD_C3
};
B43_PHY_HT_TXPCTL_CMD_C3
};
static
const
u16
status_regs
[
3
]
=
{
B43_PHY_HT_TX_PCTL_STATUS_C1
,
B43_PHY_HT_TX_PCTL_STATUS_C2
,
B43_PHY_HT_TX_PCTL_STATUS_C3
};
int
i
;
int
i
;
if
(
!
enable
)
{
if
(
!
enable
)
{
if
(
b43_phy_read
(
dev
,
B43_PHY_HT_TXPCTL_CMD_C1
)
&
en_bits
)
{
if
(
b43_phy_read
(
dev
,
B43_PHY_HT_TXPCTL_CMD_C1
)
&
en_bits
)
{
/* We disable enabled TX pwr ctl, save it's state */
/* We disable enabled TX pwr ctl, save it's state */
/*
for
(
i
=
0
;
i
<
3
;
i
++
)
* TODO: find the registers. On N-PHY they were 0x1ed
phy_ht
->
tx_pwr_idx
[
i
]
=
* and 0x1ee, we need 3 such a registers for HT-PHY
b43_phy_read
(
dev
,
status_regs
[
i
]);
*/
}
}
b43_phy_mask
(
dev
,
B43_PHY_HT_TXPCTL_CMD_C1
,
~
en_bits
);
b43_phy_mask
(
dev
,
B43_PHY_HT_TXPCTL_CMD_C1
,
~
en_bits
);
}
else
{
}
else
{
...
...
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