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
90700fd9
Commit
90700fd9
authored
Aug 26, 2005
by
Peter Jones
Committed by
James Ketrenos
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed is_network_packet() to include checking for broadcast packets.
Signed-off-by:
James Ketrenos
<
jketreno@linux.intel.com
>
parent
24a47dbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
drivers/net/wireless/ipw2200.c
drivers/net/wireless/ipw2200.c
+7
-5
No files found.
drivers/net/wireless/ipw2200.c
View file @
90700fd9
...
...
@@ -8096,21 +8096,23 @@ static inline int is_network_packet(struct ipw_priv *priv,
if
(
!
memcmp
(
header
->
addr2
,
priv
->
net_dev
->
dev_addr
,
ETH_ALEN
))
return
0
;
/* multicast packets to our IBSS go through */
if
(
is_multicast_ether_addr
(
header
->
addr1
))
/* {broad,multi}cast packets to our BSSID go through */
if
(
is_multicast_ether_addr
(
header
->
addr1
)
||
is_broadcast_ether_addr
(
header
->
addr1
))
return
!
memcmp
(
header
->
addr3
,
priv
->
bssid
,
ETH_ALEN
);
/* packets to our adapter go through */
return
!
memcmp
(
header
->
addr1
,
priv
->
net_dev
->
dev_addr
,
ETH_ALEN
);
case
IW_MODE_INFRA
:
/* Header: Dest. |
AP{BSSID}
| Source */
case
IW_MODE_INFRA
:
/* Header: Dest. |
BSSID
| Source */
/* packets from our adapter are dropped (echo) */
if
(
!
memcmp
(
header
->
addr3
,
priv
->
net_dev
->
dev_addr
,
ETH_ALEN
))
return
0
;
/* {broad,multi}cast packets to our IBSS go through */
if
(
is_multicast_ether_addr
(
header
->
addr1
))
/* {broad,multi}cast packets to our BSS go through */
if
(
is_multicast_ether_addr
(
header
->
addr1
)
||
is_broadcast_ether_addr
(
header
->
addr1
))
return
!
memcmp
(
header
->
addr2
,
priv
->
bssid
,
ETH_ALEN
);
/* packets to our adapter go through */
...
...
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