build error without CONFIG_MAC80211_MESH
Hi!
Building current wireless-testing (master-2010-12-06) without the Mesh option is broken:
CC [M] net/mac80211/main.o/home/br1/ath/wireless-testing/net/mac80211/main.c: In function ‘ieee80211_bss_info_change_notify’:/home/br1/ath/wireless-testing/net/mac80211/main.c:250: error: ‘union <anonymous>’ has no member named ‘mesh’
make[3]: *** [net/mac80211/main.o] Error 1
make[2]: *** [net/mac80211] Error 2
make[1]: *** [net] Error 2
make: *** [sub-make] Error 2
It needs something like:
net/mac80211/main.c +0 -0
@@ -245,10 +245,12 @@ void ieee80211_bss_info_change_notify(struct
ieee80211_sub_if_data *sdata,
sdata->vif.bss_conf.enable_beacon =
!!sdata->u.ibss.presp;
break;
+#ifdef CONFIG_MAC80211_MESH
case NL80211_IFTYPE_MESH_POINT:
sdata->vif.bss_conf.enable_beacon =
!!sdata->u.mesh.mesh_id_len;
break;
+#endif
default:
/* not reached */
WARN_ON(1);bruno
Quoted 34 lines · Bruno Randolf
Hi!
Building current wireless-testing (master-2010-12-06) without the Mesh option is broken:
CC [M]
net/mac80211/main.o/home/br1/ath/wireless-testing/net/mac80211/main.c: In function ‘ieee80211_bss_info_change_notify’:/home/br1/ath/wireless-testing/net/mac80211/main.c:250: error: ‘union <anonymous>’ has no member named ‘mesh’
make[3]: *** [net/mac80211/main.o] Error 1
make[2]: *** [net/mac80211] Error 2
make[1]: *** [net] Error 2
make: *** [sub-make] Error 2It needs something like:
net/mac80211/main.c +2
-0@@ -245,10 +245,12 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, sdata->vif.bss_conf.enable_beacon = !!sdata->u.ibss.presp;break ; +#ifdef CONFIG_MAC80211_MESH case NL80211_IFTYPE_MESH_POINT : sdata->vif.bss_conf.enable_beacon = !!sdata->u.mesh.mesh_id_len;break ; +#endif default :/* not reached */
Quoted 1 line
WARN_ON(1);
Happens here too.
Larry
Johannes Berg
maintainerQuoted 22 lines · Bruno Randolf
Hi!
Building current wireless-testing (master-2010-12-06) without the Mesh option is broken:
CC [M]
net/mac80211/main.o/home/br1/ath/wireless-testing/net/mac80211/main.c: In function ‘ieee80211_bss_info_change_notify’:/home/br1/ath/wireless-testing/net/mac80211/main.c:250: error: ‘union <anonymous>’ has no member named ‘mesh’
make[3]: *** [net/mac80211/main.o] Error 1
make[2]: *** [net/mac80211] Error 2
make[1]: *** [net] Error 2
make: *** [sub-make] Error 2It needs something like:
net/mac80211/main.c +0
-0
net/mac80211/main.c void ieee80211_bss_info_change_notify(struct · line 249
Quoted 5 lines
net/mac80211/main.c +1
-0@@ -245,10 +245,12 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, sdata->vif.bss_conf.enable_beacon = !!sdata->u.ibss.presp;break ; +#ifdef CONFIG_MAC80211_MESH
Indeed, care to submit a patch?
thx,
johannes