aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJavier Cardona <javier@cozybit.com>2010-12-07 13:41:47 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-07 17:08:09 -0500
commit7659a193f94c0003dd06e9e874d19bade1a8c952 (patch)
treea7f69f67f61f21ee7733f943ecedd1dceaac1a2e /net
parentcae6b74d907e2abd22d496fe30417b088d3302cf (diff)
mac80211: Fix compilation error when mesh is disabled
Wrap mesh sections inside CONFIG_MAC80211_MESH to fix compilation problems reported by Stephen Rothwell, Larry Finger and Bruno Randolf. Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 2de69766c6aa..973fee9f7d69 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,
245 sdata->vif.bss_conf.enable_beacon = 245 sdata->vif.bss_conf.enable_beacon =
246 !!sdata->u.ibss.presp; 246 !!sdata->u.ibss.presp;
247 break; 247 break;
248#ifdef CONFIG_MAC80211_MESH
248 case NL80211_IFTYPE_MESH_POINT: 249 case NL80211_IFTYPE_MESH_POINT:
249 sdata->vif.bss_conf.enable_beacon = 250 sdata->vif.bss_conf.enable_beacon =
250 !!sdata->u.mesh.mesh_id_len; 251 !!sdata->u.mesh.mesh_id_len;
251 break; 252 break;
253#endif
252 default: 254 default:
253 /* not reached */ 255 /* not reached */
254 WARN_ON(1); 256 WARN_ON(1);