projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5dc164
)
mac80211: Remove superfluous is_multicast_ether_addr() call
author
Sergey Ryazanov
<
[email protected]
>
Thu, 29 Aug 2013 21:35:09 +0000
(
01:35
+0400)
committer
Johannes Berg
<
[email protected]
>
Thu, 26 Sep 2013 11:21:39 +0000
(13:21 +0200)
Remove superfluous call and use locally stored previous result.
Signed-off-by: Sergey Ryazanov <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
net/mac80211/tx.c
patch
|
blob
|
history
diff --git
a/net/mac80211/tx.c
b/net/mac80211/tx.c
index 3456c0486b482bfb44a6f797ebaff5d70bde4940..102ce8adf2d1aac80f92ba2c33cb7ad207d2ffda 100644
(file)
--- a/
net/mac80211/tx.c
+++ b/
net/mac80211/tx.c
@@
-1981,7
+1981,7
@@
netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
* EAPOL frames from the local station.
*/
if (unlikely(!ieee80211_vif_is_mesh(&sdata->vif) &&
- !
is_multicast_ether_addr(hdr.addr1)
&& !authorized &&
+ !
multicast
&& !authorized &&
(cpu_to_be16(ethertype) != sdata->control_port_protocol ||
!ether_addr_equal(sdata->vif.addr, skb->data + ETH_ALEN)))) {
#ifdef CONFIG_MAC80211_VERBOSE_DEBUG