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
354b4f04
Commit
354b4f04
authored
Apr 29, 2010
by
John W. Linville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
b43: Added get_survey callback in order to get channel noise
Signed-off-by:
John W. Linville
<
linville@tuxdriver.com
>
parent
91639c76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
drivers/net/wireless/b43/main.c
drivers/net/wireless/b43/main.c
+18
-0
No files found.
drivers/net/wireless/b43/main.c
View file @
354b4f04
...
...
@@ -4570,6 +4570,23 @@ static void b43_op_sw_scan_complete_notifier(struct ieee80211_hw *hw)
mutex_unlock
(
&
wl
->
mutex
);
}
static
int
b43_op_get_survey
(
struct
ieee80211_hw
*
hw
,
int
idx
,
struct
survey_info
*
survey
)
{
struct
b43_wl
*
wl
=
hw_to_b43_wl
(
hw
);
struct
b43_wldev
*
dev
=
wl
->
current_dev
;
struct
ieee80211_conf
*
conf
=
&
hw
->
conf
;
if
(
idx
!=
0
)
return
-
ENOENT
;
survey
->
channel
=
conf
->
channel
;
survey
->
filled
=
SURVEY_INFO_NOISE_DBM
;
survey
->
noise
=
dev
->
stats
.
link_noise
;
return
0
;
}
static
const
struct
ieee80211_ops
b43_hw_ops
=
{
.
tx
=
b43_op_tx
,
.
conf_tx
=
b43_op_conf_tx
,
...
...
@@ -4589,6 +4606,7 @@ static const struct ieee80211_ops b43_hw_ops = {
.
sta_notify
=
b43_op_sta_notify
,
.
sw_scan_start
=
b43_op_sw_scan_start_notifier
,
.
sw_scan_complete
=
b43_op_sw_scan_complete_notifier
,
.
get_survey
=
b43_op_get_survey
,
.
rfkill_poll
=
b43_rfkill_poll
,
};
...
...
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