From patchwork Thu Dec 2 20:09:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Cardona X-Patchwork-Id: 375791 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB2K9bQB009465 for ; Thu, 2 Dec 2010 20:09:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757677Ab0LBUJf (ORCPT ); Thu, 2 Dec 2010 15:09:35 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:52085 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752829Ab0LBUJf convert rfc822-to-8bit (ORCPT ); Thu, 2 Dec 2010 15:09:35 -0500 Received: by mail-qw0-f46.google.com with SMTP id 7so8770859qwb.19 for ; Thu, 02 Dec 2010 12:09:34 -0800 (PST) Received: by 10.224.187.197 with SMTP id cx5mr348569qab.365.1291320574347; Thu, 02 Dec 2010 12:09:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.76.5 with HTTP; Thu, 2 Dec 2010 12:09:14 -0800 (PST) In-Reply-To: <1291279510.3481.17.camel@jlt3.sipsolutions.net> References: <20101201205939.009530439@sipsolutions.net> <20101201210226.159495600@sipsolutions.net> <1291279510.3481.17.camel@jlt3.sipsolutions.net> From: Javier Cardona Date: Thu, 2 Dec 2010 12:09:14 -0800 Message-ID: Subject: Re: [RFC 5/5 v2] cfg80211/mac80211: add mesh join/leave commands To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Steve Derosier , devel@lists.open80211s.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Dec 2010 20:09:37 +0000 (UTC) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 107a0cb..b1242b6 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -246,7 +246,6 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, !!sdata->u.ibss.presp; break; case NL80211_IFTYPE_MESH_POINT: - sdata->vif.bss_conf.enable_beacon = true; break; default: /* not reached */ diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index d814fab..cc458dd 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -522,6 +522,7 @@ void ieee80211_start_mesh(struct ieee80211_sub_if_data *sdata) ieee80211_mesh_root_setup(ifmsh); ieee80211_queue_work(&local->hw, &sdata->work); sdata->vif.bss_conf.beacon_int = MESH_DEFAULT_BEACON_INTERVAL; + sdata->vif.bss_conf.enable_beacon = true; ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON | BSS_CHANGED_BEACON_ENABLED |