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
1b2fb7dc
Commit
1b2fb7dc
authored
May 03, 2010
by
John W. Linville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p54: Added get_survey callback in order to get channel noise
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
800f65bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
drivers/net/wireless/p54/main.c
drivers/net/wireless/p54/main.c
+17
-0
No files found.
drivers/net/wireless/p54/main.c
View file @
1b2fb7dc
...
...
@@ -507,6 +507,22 @@ static int p54_set_key(struct ieee80211_hw *dev, enum set_key_cmd cmd,
return
ret
;
}
static
int
p54_get_survey
(
struct
ieee80211_hw
*
dev
,
int
idx
,
struct
survey_info
*
survey
)
{
struct
p54_common
*
priv
=
dev
->
priv
;
struct
ieee80211_conf
*
conf
=
&
dev
->
conf
;
if
(
idx
!=
0
)
return
-
ENOENT
;
survey
->
channel
=
conf
->
channel
;
survey
->
filled
=
SURVEY_INFO_NOISE_DBM
;
survey
->
noise
=
clamp_t
(
s8
,
priv
->
noise
,
-
128
,
127
);
return
0
;
}
static
const
struct
ieee80211_ops
p54_ops
=
{
.
tx
=
p54_tx_80211
,
.
start
=
p54_start
,
...
...
@@ -523,6 +539,7 @@ static const struct ieee80211_ops p54_ops = {
.
configure_filter
=
p54_configure_filter
,
.
conf_tx
=
p54_conf_tx
,
.
get_stats
=
p54_get_stats
,
.
get_survey
=
p54_get_survey
,
};
struct
ieee80211_hw
*
p54_init_common
(
size_t
priv_data_len
)
...
...
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