From patchwork Mon Nov 9 23:46:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Paulo X-Patchwork-Id: 58902 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA9NlkMQ015253 for ; Mon, 9 Nov 2009 23:47:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755765AbZKIXrj (ORCPT ); Mon, 9 Nov 2009 18:47:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755726AbZKIXrj (ORCPT ); Mon, 9 Nov 2009 18:47:39 -0500 Received: from mail-ew0-f207.google.com ([209.85.219.207]:46271 "EHLO mail-ew0-f207.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755747AbZKIXri (ORCPT ); Mon, 9 Nov 2009 18:47:38 -0500 Received: by mail-ew0-f207.google.com with SMTP id 3so3717715ewy.37 for ; Mon, 09 Nov 2009 15:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=1vuft7MlDOEVngihThIRkYTKXU1k0ikqScGW5gT+Y5o=; b=hbX6UEOOyjBIa50pMv0mZZxbiimDoPc1RswRQQy0zCEsAHANEzSUqiGxQ7kan01wIa P/B9oKIz1WZrkUs3iVadwmWAOMZy/1yerSSjWkOnyHNMDaz6fyxMbHS3Bd1jDKe+vduR Z+Kx0o1yYLnIDTWNtaMDbIqPLpMBX8jPNb+zc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=C6ypWb8toXPRY7jr2i8fBvKlHzG+CRXB8SmGAjusKkSwkf50zuz6PB/XUw18hgkFyJ b0nBdOXHBnDDDBPEdDzj2Cl/x6YoODgb4FgKpno5j1NPNnypbO+I6DUvns4Tp9E/O85z XdkfwiKe0aquv1I2m6+z/9q3ysU07BAySeyyQ= Received: by 10.213.104.10 with SMTP id m10mr117871ebo.62.1257810461297; Mon, 09 Nov 2009 15:47:41 -0800 (PST) Received: from localhost (bl5-227-167.dsl.telepac.pt [82.154.227.167]) by mx.google.com with ESMTPS id 24sm437158eyx.45.2009.11.09.15.47.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Nov 2009 15:47:40 -0800 (PST) From: Rui Paulo To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Johannes Berg , Rui Paulo , Javier Cardona Subject: [PATCH v2 16/20] mac80211: add the DS params to the beacon Date: Mon, 9 Nov 2009 23:46:54 +0000 Message-Id: <1257810418-30075-17-git-send-email-rpaulo@gmail.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1257810418-30075-1-git-send-email-rpaulo@gmail.com> References: <1257810418-30075-1-git-send-email-rpaulo@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 63427d9..222a313 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -247,6 +247,13 @@ void mesh_mgmt_ies_add(struct sk_buff *skb, struct ieee80211_sub_if_data *sdata) } } + if (sband->band == IEEE80211_BAND_2GHZ) { + pos = skb_put(skb, 2 + 1); + *pos++ = WLAN_EID_DS_PARAMS; + *pos++ = 1; + *pos++ = ieee80211_frequency_to_channel(local->hw.conf.channel->center_freq); + } + pos = skb_put(skb, 2 + sdata->u.mesh.mesh_id_len); *pos++ = WLAN_EID_MESH_ID; *pos++ = sdata->u.mesh.mesh_id_len;