mac80211: Fix mesh-related build breakage...
authorYogesh Ashok Powar <yogeshp@marvell.com>
Thu, 12 May 2011 13:32:17 +0000 (09:32 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 12 May 2011 13:32:17 +0000 (09:32 -0400)
net/mac80211/cfg.c: In function ‘sta_apply_parameters’:
net/mac80211/cfg.c:746: error: ‘struct sta_info’ has no member named ‘plink_state’
make[1]: *** [net/mac80211/cfg.o] Error 1
make: *** [net/mac80211/mac80211.ko] Error 2

Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c

index a2ff47493e0a2563608d969d333aa6d42d26fc21..ed3400cd7a5af66a0456c360368713ffcd80a47e 100644 (file)
@@ -738,6 +738,7 @@ static void sta_apply_parameters(struct ieee80211_local *local,
                                                  &sta->sta.ht_cap);
 
        if (ieee80211_vif_is_mesh(&sdata->vif)) {
+#ifdef CONFIG_MAC80211_MESH
                if (sdata->u.mesh.security & IEEE80211_MESH_SEC_SECURED)
                        switch (params->plink_state) {
                        case PLINK_LISTEN:
@@ -758,6 +759,7 @@ static void sta_apply_parameters(struct ieee80211_local *local,
                                mesh_plink_block(sta);
                                break;
                        }
+#endif
        }
 }