Skip to contentSkip to conversation

wireless: build failure if !CONFIG_MAC80211_MESH

PATCH John W. Linville 1 participant 1 message Oct 13, 2008 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

I think Dave already merged a patch from Ingo to resolve this issue?

Quoted 33 lines · Stephen Hemminger

If mac80211 is configured, but MAC80211_MESH is not, then the build fails because mesh_path_lookup and mesh_path_add are not defined. Compile tested only, fixes the build, but no idea if breaks something else.

---
Also needed to stub out mpp_path_lookup

net/mac80211/mesh.h +9 -0
@@ -225,11 +225,20 @@ void ieee80211_stop_mesh(struct ieee8021
 int mesh_nexthop_lookup(struct sk_buff *skb,
 		struct ieee80211_sub_if_data *sdata);
 void mesh_path_start_discovery(struct ieee80211_sub_if_data *sdata);
+#ifdef CONFIG_MAC80211_MESH
 struct mesh_path *mesh_path_lookup(u8 *dst,
 		struct ieee80211_sub_if_data *sdata);
 struct mesh_path *mpp_path_lookup(u8 *dst,
 				  struct ieee80211_sub_if_data *sdata);
+#else
+#define mesh_path_lookup(dst,sdata) (NULL)
+#define mpp_path_lookup(dst,sdata) (NULL)
+#endif
+#ifdef CONFIG_MAC80211_MESH
 int mpp_path_add(u8 *dst, u8 *mpp, struct ieee80211_sub_if_data *sdata);
+#else
+#define mpp_path_add(dst, mpp, sdata) (-ENOTSUPP)
+#endif
 struct mesh_path *mesh_path_lookup_by_idx(int idx,
 		struct ieee80211_sub_if_data *sdata);
 void mesh_path_fix_nexthop(struct mesh_path *mpath, struct sta_info *next_hop);
Signature · 6 lines
John W. Linville		Linux should be at the core
[email protected]			of your literate lifestyle.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html