]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
mac80211: Put some code under MESH macro
authorYuri Ershov <ext-yuri.ershov@nokia.com>
Tue, 29 Jun 2010 11:08:06 +0000 (15:08 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Jul 2010 20:24:01 +0000 (16:24 -0400)
In the function ieee80211_subif_start_xmit the logic related with
meshdrlen is under CONFIG_MAC80211_MESH macro, but in one place it isn't.
This is some update for this

Signed-off-by: Yuri Ershov <ext-yuri.ershov@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c

index 2f8182dc94a16ea98a63c0725ce3944cd9687255..c54db966926b455dc3d72ae0f71b7c71d3204861 100644 (file)
@@ -1935,11 +1935,13 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
                h_pos += encaps_len;
        }
 
+#ifdef CONFIG_MAC80211_MESH
        if (meshhdrlen > 0) {
                memcpy(skb_push(skb, meshhdrlen), &mesh_hdr, meshhdrlen);
                nh_pos += meshhdrlen;
                h_pos += meshhdrlen;
        }
+#endif
 
        if (ieee80211_is_data_qos(fc)) {
                __le16 *qos_control;