linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bruno Randolf <br1@einfach.org>
To: "linux-wireless" <linux-wireless@vger.kernel.org>
Cc: linville@tuxdriver.com, Johannes Berg <johannes@sipsolutions.net>
Subject: build error without  CONFIG_MAC80211_MESH
Date: Tue, 7 Dec 2010 11:23:03 +0900	[thread overview]
Message-ID: <201012071123.03046.br1@einfach.org> (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:

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 40bd12e..3d988ca 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -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

             reply	other threads:[~2010-12-07  2:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07  2:23 Bruno Randolf [this message]
2010-12-07  2:36 ` build error without CONFIG_MAC80211_MESH Larry Finger
2010-12-07 10:05 ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201012071123.03046.br1@einfach.org \
    --to=br1@einfach.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).