* Re: [PATCH] wireless: build failure if !CONFIG_MAC80211_MESH [not found] ` <20081013084503.66cca9f9@extreme> @ 2008-10-13 16:36 ` John W. Linville 0 siblings, 0 replies; 2+ messages in thread From: John W. Linville @ 2008-10-13 16:36 UTC (permalink / raw) To: Stephen Hemminger; +Cc: David Miller, linux-wireless, netdev I think Dave already merged a patch from Ingo to resolve this issue? On Mon, Oct 13, 2008 at 08:45:03AM -0700, Stephen Hemminger wrote: > 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. > > Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> > > --- > Also needed to stub out mpp_path_lookup > > --- a/net/mac80211/mesh.h 2008-10-13 07:57:46.000000000 -0700 > +++ b/net/mac80211/mesh.h 2008-10-13 08:42:31.000000000 -0700 > @@ -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); > -- John W. Linville Linux should be at the core linville@tuxdriver.com of your literate lifestyle. ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] wireless: build failure if !CONFIG_MAC80211_MESH @ 2008-10-13 16:36 ` John W. Linville 0 siblings, 0 replies; 2+ messages in thread From: John W. Linville @ 2008-10-13 16:36 UTC (permalink / raw) To: Stephen Hemminger Cc: David Miller, linux-wireless-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA I think Dave already merged a patch from Ingo to resolve this issue? On Mon, Oct 13, 2008 at 08:45:03AM -0700, Stephen Hemminger wrote: > 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. > > Signed-off-by: Stephen Hemminger <shemminger-ZtmgI6mnKB3QT0dZR+AlfA@public.gmane.org> > > --- > Also needed to stub out mpp_path_lookup > > --- a/net/mac80211/mesh.h 2008-10-13 07:57:46.000000000 -0700 > +++ b/net/mac80211/mesh.h 2008-10-13 08:42:31.000000000 -0700 > @@ -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); > -- John W. Linville Linux should be at the core linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org of your literate lifestyle. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-13 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20081013081238.2755bd25@extreme>
[not found] ` <20081013084503.66cca9f9@extreme>
2008-10-13 16:36 ` [PATCH] wireless: build failure if !CONFIG_MAC80211_MESH John W. Linville
2008-10-13 16:36 ` John W. Linville
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.