Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
f75459e6
Commit
f75459e6
authored
Jul 13, 2005
by
Liu Hong
Committed by
James Ketrenos
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug 339] Fix ipw2100 iwconfig set/get txpower.
Signed-off-by:
James Ketrenos
<
jketreno@linux.intel.com
>
parent
25b645be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
drivers/net/wireless/ipw2100.c
drivers/net/wireless/ipw2100.c
+6
-7
No files found.
drivers/net/wireless/ipw2100.c
View file @
f75459e6
...
...
@@ -5102,6 +5102,10 @@ static int ipw2100_set_tx_power(struct ipw2100_priv *priv, u32 tx_power)
};
int
err
=
0
;
if
(
tx_power
!=
IPW_TX_POWER_DEFAULT
)
tx_power
=
(
tx_power
-
IPW_TX_POWER_MIN_DBM
)
*
16
/
(
IPW_TX_POWER_MAX_DBM
-
IPW_TX_POWER_MIN_DBM
);
cmd
.
host_command_parameters
[
0
]
=
tx_power
;
if
(
priv
->
ieee
->
iw_mode
==
IW_MODE_ADHOC
)
...
...
@@ -7523,8 +7527,7 @@ static int ipw2100_wx_set_txpow(struct net_device *dev,
wrqu
->
txpower
.
value
>
IPW_TX_POWER_MAX_DBM
)
return
-
EINVAL
;
value
=
(
wrqu
->
txpower
.
value
-
IPW_TX_POWER_MIN_DBM
)
*
16
/
(
IPW_TX_POWER_MAX_DBM
-
IPW_TX_POWER_MIN_DBM
);
value
=
wrqu
->
txpower
.
value
;
}
down
(
&
priv
->
action_sem
);
...
...
@@ -7564,11 +7567,7 @@ static int ipw2100_wx_get_txpow(struct net_device *dev,
}
else
{
wrqu
->
power
.
disabled
=
0
;
wrqu
->
power
.
fixed
=
1
;
wrqu
->
power
.
value
=
(
priv
->
tx_power
*
(
IPW_TX_POWER_MAX_DBM
-
IPW_TX_POWER_MIN_DBM
))
/
(
IPW_TX_POWER_MAX
-
IPW_TX_POWER_MIN
)
+
IPW_TX_POWER_MIN_DBM
;
wrqu
->
power
.
value
=
priv
->
tx_power
;
}
wrqu
->
power
.
flags
=
IW_TXPOW_DBM
;
...
...
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