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
c6b6eedc
Commit
c6b6eedc
authored
Aug 23, 2012
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-john' of
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
parents
ea2d2183
27f01124
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
22 deletions
+16
-22
net/mac80211/tx.c
net/mac80211/tx.c
+16
-22
No files found.
net/mac80211/tx.c
View file @
c6b6eedc
...
...
@@ -1811,37 +1811,31 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
meshhdrlen
=
ieee80211_new_mesh_header
(
&
mesh_hdr
,
sdata
,
NULL
,
NULL
);
}
else
{
int
is_mesh_mcast
=
1
;
const
u8
*
mesh_da
;
if
(
is_multicast_ether_addr
(
skb
->
data
))
/* DA TA mSA AE:SA */
mesh_da
=
skb
->
data
;
else
{
static
const
u8
bcast
[
ETH_ALEN
]
=
{
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
};
if
(
mppath
)
{
/* RA TA mDA mSA AE:DA SA */
/* DS -> MBSS (802.11-2012 13.11.3.3).
* For unicast with unknown forwarding information,
* destination might be in the MBSS or if that fails
* forwarded to another mesh gate. In either case
* resolution will be handled in ieee80211_xmit(), so
* leave the original DA. This also works for mcast */
const
u8
*
mesh_da
=
skb
->
data
;
if
(
mppath
)
mesh_da
=
mppath
->
mpp
;
is_mesh_mcast
=
0
;
}
else
if
(
mpath
)
{
else
if
(
mpath
)
mesh_da
=
mpath
->
dst
;
is_mesh_mcast
=
0
;
}
else
{
/* DA TA mSA AE:SA */
mesh_da
=
bcast
;
}
}
rcu_read_unlock
();
hdrlen
=
ieee80211_fill_mesh_addresses
(
&
hdr
,
&
fc
,
mesh_da
,
sdata
->
vif
.
addr
);
rcu_read_unlock
();
if
(
is_mesh_mcast
)
if
(
is_multicast_ether_addr
(
mesh_da
))
/* DA TA mSA AE:SA */
meshhdrlen
=
ieee80211_new_mesh_header
(
&
mesh_hdr
,
sdata
,
skb
->
data
+
ETH_ALEN
,
NULL
);
else
/* RA TA mDA mSA AE:DA SA */
meshhdrlen
=
ieee80211_new_mesh_header
(
&
mesh_hdr
,
sdata
,
...
...
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