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
acfaf10b
Commit
acfaf10b
authored
Feb 27, 2006
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream-fixes'
parents
c45ae87e
4832843d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
net/ieee80211/ieee80211_rx.c
net/ieee80211/ieee80211_rx.c
+5
-11
No files found.
net/ieee80211/ieee80211_rx.c
View file @
acfaf10b
...
...
@@ -1394,7 +1394,7 @@ static void update_network(struct ieee80211_network *dst,
/* dst->last_associate is not overwritten */
}
static
inline
int
is_beacon
(
int
fc
)
static
inline
int
is_beacon
(
__le16
fc
)
{
return
(
WLAN_FC_GET_STYPE
(
le16_to_cpu
(
fc
))
==
IEEE80211_STYPE_BEACON
);
}
...
...
@@ -1443,9 +1443,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
escape_essid
(
info_element
->
data
,
info_element
->
len
),
MAC_ARG
(
beacon
->
header
.
addr3
),
is_beacon
(
le16_to_cpu
(
beacon
->
header
.
frame_ctl
))
?
is_beacon
(
beacon
->
header
.
frame_ctl
)
?
"BEACON"
:
"PROBE RESPONSE"
);
return
;
}
...
...
@@ -1496,9 +1494,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
escape_essid
(
network
.
ssid
,
network
.
ssid_len
),
MAC_ARG
(
network
.
bssid
),
is_beacon
(
le16_to_cpu
(
beacon
->
header
.
frame_ctl
))
?
is_beacon
(
beacon
->
header
.
frame_ctl
)
?
"BEACON"
:
"PROBE RESPONSE"
);
#endif
memcpy
(
target
,
&
network
,
sizeof
(
*
target
));
...
...
@@ -1509,9 +1505,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
escape_essid
(
target
->
ssid
,
target
->
ssid_len
),
MAC_ARG
(
target
->
bssid
),
is_beacon
(
le16_to_cpu
(
beacon
->
header
.
frame_ctl
))
?
is_beacon
(
beacon
->
header
.
frame_ctl
)
?
"BEACON"
:
"PROBE RESPONSE"
);
update_network
(
target
,
&
network
);
network
.
ibss_dfs
=
NULL
;
...
...
@@ -1519,7 +1513,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
spin_unlock_irqrestore
(
&
ieee
->
lock
,
flags
);
if
(
is_beacon
(
le16_to_cpu
(
beacon
->
header
.
frame_ctl
)
))
{
if
(
is_beacon
(
beacon
->
header
.
frame_ctl
))
{
if
(
ieee
->
handle_beacon
!=
NULL
)
ieee
->
handle_beacon
(
dev
,
beacon
,
&
network
);
}
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