From patchwork Thu Apr 14 21:55:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Rodriguez X-Patchwork-Id: 709781 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 p3ELthx4001701 for ; Thu, 14 Apr 2011 21:55:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753783Ab1DNVzm (ORCPT ); Thu, 14 Apr 2011 17:55:42 -0400 Received: from mail.atheros.com ([12.19.149.2]:51074 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752901Ab1DNVzl (ORCPT ); Thu, 14 Apr 2011 17:55:41 -0400 Received: from mail.atheros.com ([10.10.20.105]) by sidewinder.atheros.com for ; Thu, 14 Apr 2011 14:55:15 -0700 Received: from tux (10.10.11.58) by SC1EXHC-01.global.atheros.com (10.10.20.106) with Microsoft SMTP Server (TLS) id 8.2.213.0; Thu, 14 Apr 2011 14:55:39 -0700 Received: by tux (sSMTP sendmail emulation); Thu, 14 Apr 2011 14:55:37 -0700 From: "Luis R. Rodriguez" To: CC: , "Luis R. Rodriguez" , David Quan , Senthil Balasubramanian Subject: [PATCH] ath: fix 0x6C for beaconing/passive scan flags based on country IE Date: Thu, 14 Apr 2011 14:55:36 -0700 Message-ID: <1302818137-17938-1-git-send-email-lrodriguez@atheros.com> X-Mailer: git-send-email 1.7.4.15.g7811d MIME-Version: 1.0 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.6 (demeter1.kernel.org [140.211.167.41]); Thu, 14 Apr 2011 21:55:43 +0000 (UTC) The 0x6C regulatory domain is just like the 0x6A regulatory domain but differs in that 0x6C will allow adhoc and active scan on its channels only if we are associated to an AP with a country IE that allows those channels. The ath_reg_apply_beaconing_flags() does just this -- we respect the manufacturer's intent on only enabling beaconing modes of operation if and only if blessed by the country IE. Cc: David Quan Cc: Senthil Balasubramanian Signed-off-by: Luis R. Rodriguez --- drivers/net/wireless/ath/regd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/regd.c b/drivers/net/wireless/ath/regd.c index 14952f0..028310f 100644 --- a/drivers/net/wireless/ath/regd.c +++ b/drivers/net/wireless/ath/regd.c @@ -334,6 +334,7 @@ static void ath_reg_apply_world_flags(struct wiphy *wiphy, case 0x63: case 0x66: case 0x67: + case 0x6C: ath_reg_apply_beaconing_flags(wiphy, initiator); break; case 0x68: