Return-path: Received: from mail-ob0-f174.google.com ([209.85.214.174]:51581 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750791Ab2DCEVc (ORCPT ); Tue, 3 Apr 2012 00:21:32 -0400 Received: by obbtb18 with SMTP id tb18so3046594obb.19 for ; Mon, 02 Apr 2012 21:21:31 -0700 (PDT) From: Ashok Nagarajan To: linux-wireless@vger.kernel.org Cc: javier@cozybit.com, thomas@cozybit.com, johannes@sipsolutions.net, devel@lists.open80211s.org, linville@tuxdriver.com, Ashok Nagarajan Subject: [PATCH v3 1/4] mac80211: Use mandatory rates as basic rates when starting mesh Date: Mon, 2 Apr 2012 21:21:19 -0700 Message-Id: <1333426882-22948-1-git-send-email-ashok@cozybit.com> (sfid-20120403_062155_944744_E02DC1FA) Sender: linux-wireless-owner@vger.kernel.org List-ID: Signed-off-by: Ashok Nagarajan Signed-off-by: Thomas Pedersen --- net/mac80211/mesh.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index e5fbb7c..0c89707 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -579,8 +579,12 @@ 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.basic_rates = + ieee80211_mandatory_rates(sdata->local, + sdata->local->hw.conf.channel->band); ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON | BSS_CHANGED_BEACON_ENABLED | + BSS_CHANGED_BASIC_RATES | BSS_CHANGED_BEACON_INT); } -- 1.7.5.4