From patchwork Fri Nov 19 11:40:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helmut Schaa X-Patchwork-Id: 339151 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 oAJBemii017104 for ; Fri, 19 Nov 2010 11:40:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753662Ab0KSLkr (ORCPT ); Fri, 19 Nov 2010 06:40:47 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:65219 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753543Ab0KSLkq (ORCPT ); Fri, 19 Nov 2010 06:40:46 -0500 Received: by mail-bw0-f46.google.com with SMTP id 15so3773153bwz.19 for ; Fri, 19 Nov 2010 03:40:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=bPzyFQazuI5P1pqNB82Azc+bfZ826ysPaBLGW4TQ0GM=; b=AJOFBYmI3D+FcZ9UkddjA8EfJVT7eZo9/ejT3cOBbFXX133KsRQjfoQKHe4javlfV9 OjYBOdt3s3ZgZASljBCY8V+lo+9LDpMTL+Wi5rVR2FKWa6QXkfl5RSEYKg1Sr5FSAQpJ 3J+AJqs6Y4KTswZP3b6taFJrCoVv6H8CShai8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=qQ/1r30rdIl5XS2QtFilSVMX/fCfdEuKP8R0Nznc0YXEEawaZx4q5X/miNqkcb3gB1 kDC1Ao4zdZoUC9ZCkKWg9jtbY0mZoaB3aKP0ZfHLB3FwxjjvhuX10BISEEpiscKDtzB6 DN3o0766NHgU1f4ECQ7SZAGHkC1V/m3BGDrt0= Received: by 10.204.62.203 with SMTP id y11mr1873387bkh.11.1290166842790; Fri, 19 Nov 2010 03:40:42 -0800 (PST) Received: from localhost.localdomain (p5495FCE2.dip.t-dialin.net [84.149.252.226]) by mx.google.com with ESMTPS id d12sm793856bkw.19.2010.11.19.03.40.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Nov 2010 03:40:42 -0800 (PST) From: Helmut Schaa To: "John W. Linville" Cc: linux-wireless@vger.kernel.org, Helmut Schaa , Johannes Berg Subject: [PATCH 2/2] mac80211: Apply ht_opmode changes in ieee80211_change_bss Date: Fri, 19 Nov 2010 12:40:26 +0100 Message-Id: <1290166826-27063-2-git-send-email-helmut.schaa@googlemail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1290166826-27063-1-git-send-email-helmut.schaa@googlemail.com> References: <1290166826-27063-1-git-send-email-helmut.schaa@googlemail.com> 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]); Fri, 19 Nov 2010 11:40:48 +0000 (UTC) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 0c54407..e907604 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1108,6 +1108,12 @@ static int ieee80211_change_bss(struct wiphy *wiphy, sdata->flags &= ~IEEE80211_SDATA_DONT_BRIDGE_PACKETS; } + if (params->ht_opmode >= 0) { + sdata->vif.bss_conf.ht_operation_mode = + (u16) params->ht_opmode; + changed |= BSS_CHANGED_HT; + } + ieee80211_bss_info_change_notify(sdata, changed); return 0;