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
5ba4af92
Commit
5ba4af92
authored
Jul 01, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o wl3501: implement get power wireless extension
Now to study how to enable power management.
parent
6188ae6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
drivers/net/wireless/wl3501.h
drivers/net/wireless/wl3501.h
+1
-1
drivers/net/wireless/wl3501_cs.c
drivers/net/wireless/wl3501_cs.c
+18
-0
No files found.
drivers/net/wireless/wl3501.h
View file @
5ba4af92
...
...
@@ -27,7 +27,7 @@ enum wl3501_signals {
WL3501_SIG_DISASSOC_IND
,
WL3501_SIG_GET_CONFIRM
,
WL3501_SIG_JOIN_CONFIRM
,
WL3501_SIG_P
OWERMG
T_CONFIRM
,
WL3501_SIG_P
WR_MGM
T_CONFIRM
,
WL3501_SIG_REASSOC_CONFIRM
,
WL3501_SIG_REASSOC_IND
,
WL3501_SIG_SCAN_CONFIRM
,
...
...
drivers/net/wireless/wl3501_cs.c
View file @
5ba4af92
...
...
@@ -2142,6 +2142,23 @@ static int wl3501_get_encode(struct net_device *dev,
return
rc
;
}
static
int
wl3501_get_power
(
struct
net_device
*
dev
,
struct
iw_request_info
*
info
,
union
iwreq_data
*
wrqu
,
char
*
extra
)
{
u8
pwr_state
;
struct
wl3501_card
*
this
=
(
struct
wl3501_card
*
)
dev
->
priv
;
int
rc
=
wl3501_get_mib_value
(
this
,
WL3501_MIB_ATTR_CURRENT_PWR_STATE
,
&
pwr_state
,
sizeof
(
pwr_state
));
if
(
rc
)
goto
out
;
wrqu
->
power
.
disabled
=
!
pwr_state
;
wrqu
->
power
.
flags
=
IW_POWER_ON
;
out:
return
rc
;
}
static
const
iw_handler
wl3501_handler
[]
=
{
[
SIOCGIWNAME
-
SIOCIWFIRST
]
=
wl3501_get_name
,
[
SIOCSIWFREQ
-
SIOCIWFIRST
]
=
wl3501_set_freq
,
...
...
@@ -2164,6 +2181,7 @@ static const iw_handler wl3501_handler[] = {
[
SIOCGIWRTS
-
SIOCIWFIRST
]
=
wl3501_get_rts_threshold
,
[
SIOCGIWFRAG
-
SIOCIWFIRST
]
=
wl3501_get_frag_threshold
,
[
SIOCGIWENCODE
-
SIOCIWFIRST
]
=
wl3501_get_encode
,
[
SIOCGIWPOWER
-
SIOCIWFIRST
]
=
wl3501_get_power
,
};
static
const
struct
iw_handler_def
wl3501_handler_def
=
{
...
...
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