aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/tx.c
diff options
context:
space:
mode:
authorJoel A Fernandes <agnel.joel@gmail.com>2011-01-10 01:44:23 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-01-19 11:36:07 -0500
commit9d52501b421450ddd9e000c9788ac3be0e44ef1c (patch)
treee0a1c5a7b9fc179a5fd4822e4a7dff954084e56a /net/mac80211/tx.c
parent04cf53f465049c7c509aac7b776f75d38ef68e69 (diff)
mac80211: Rewrote code for checking if destinations are proxied.
Rewrote code for checking if the destination is proxied by a mesh portal, to facilitate better understanding of the functionality. Signed-off-by: Joel A Fernandes <agnel.joel@gmail.com> Acked-by: Javier Cardona <javier@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r--net/mac80211/tx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 5950e3abead9..dc261bbba522 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1815,19 +1815,19 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
1815 mppath = mpp_path_lookup(skb->data, sdata); 1815 mppath = mpp_path_lookup(skb->data, sdata);
1816 1816
1817 /* 1817 /*
1818 * Do not use address extension, if it is a packet from 1818 * Use address extension if it is a packet from
1819 * the same interface and the destination is not being 1819 * another interface or if we know the destination
1820 * proxied by any other mest point. 1820 * is being proxied by a portal (i.e. portal address
1821 * differs from proxied address)
1821 */ 1822 */
1822 if (compare_ether_addr(sdata->vif.addr, 1823 if (compare_ether_addr(sdata->vif.addr,
1823 skb->data + ETH_ALEN) == 0 && 1824 skb->data + ETH_ALEN) == 0 &&
1824 (!mppath || !compare_ether_addr(mppath->mpp, skb->data))) { 1825 !(mppath && compare_ether_addr(mppath->mpp, skb->data))) {
1825 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, 1826 hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc,
1826 skb->data, skb->data + ETH_ALEN); 1827 skb->data, skb->data + ETH_ALEN);
1827 meshhdrlen = ieee80211_new_mesh_header(&mesh_hdr, 1828 meshhdrlen = ieee80211_new_mesh_header(&mesh_hdr,
1828 sdata, NULL, NULL); 1829 sdata, NULL, NULL);
1829 } else { 1830 } else {
1830 /* packet from other interface */
1831 int is_mesh_mcast = 1; 1831 int is_mesh_mcast = 1;
1832 const u8 *mesh_da; 1832 const u8 *mesh_da;
1833 1833