Skip to contentSkip to conversation

build error without CONFIG_MAC80211_MESH

PATCH Bruno Randolf 3 participants 3 messages Dec 7, 2010 mac80211

lore
Share & tools
lore
#0 lore raw

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
index 40bd12e..3d988ca 100644
@@ -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

#1 lore raw
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 2

It needs something like:

net/mac80211/main.c +2 -0
index 40bd12e..3d988ca 100644
@@ -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

maintainer
#2 lore raw
In reply to Bruno Randolf
Quoted 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 2

It needs something like:

net/mac80211/main.c +0 -0
index 40bd12e..3d988ca 100644

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