Return-path: Received: from packetmixer.de ([79.140.42.25]:52480 "EHLO mail.mail.packetmixer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbdCPPVz (ORCPT ); Thu, 16 Mar 2017 11:21:55 -0400 From: Simon Wunderlich To: ath10k@lists.infradead.org, ath9k-devel@qca.qualcomm.com Cc: linux-wireless@vger.kernel.org, Simon Wunderlich Subject: [PATCH 0/3] Channels in licensed bands, noise floor override Date: Thu, 16 Mar 2017 16:13:34 +0100 Message-Id: <20170316151337.24163-1-sw@simonwunderlich.de> (sfid-20170316_162718_719123_A6A81806) Sender: linux-wireless-owner@vger.kernel.org List-ID: This series contains two patches to enable channels in licensed bands. Note that there are quite a few requirements to enable those: * channels must be explicitly enabled using a licensed band kernel config which contains a warning * it depends on CFG80211_CERTIFICATION_ONUS * users must install a custom regdb, since channels in those licensed bands are not included in the standard regdb The ath9k patch has been proposed two times and rejected, but it also included some channels on fractional center frequencies, which is not the case this time (this would require more changes in mac80211 and also userspace). The other concern about useres accidently tuning should not be a problem based on the requirements mentioned above. I've added another patch doing the same thing for ath10k. Here is some more info on our need/background: "We are working on a project that involves the use of Public Safety channels (4.9x GHz). It is typical 'First Responder' scenario where a communication network infrastructure should be set up in catastrophe situations. As this is a controlled and managed network, the organization setting up the network has control over the channels that are being used, when and for how long and in which geographical area. The enforcement of such a temporary license is a major requirement in this project. To reduce the cost for the equipment (compared to commercial offerings in the 4k USD range), the outdoor devices run on hardened, but standard embedded hardware with a recent linux kernel and use Atheros radios. We believe, that driver support for 4.9GHz channels should be included in the Linux kernel, as the driver just exposes specified hardware features which are disabled by default via a) a separate compile-time flag. This is similar to the code used for compliance testing. b) The default CRDA should (and does) not enable such channels. Those two safeguards seem sufficient to protect against accidental misuse." The third patch is adding an experimental debug option to override the noise floor level, which is usually calibrated automatically. Cheers, Simon Ben Greear (1): ath9k: Support channels in licensed bands Simon Wunderlich (2): ath10k: add support for channels in licensed bands ath9k: add noise floor override option drivers/net/wireless/ath/ath10k/Kconfig | 20 +++++++++ drivers/net/wireless/ath/ath10k/core.h | 4 ++ drivers/net/wireless/ath/ath10k/mac.c | 9 ++++ drivers/net/wireless/ath/ath10k/wmi.c | 7 +++- drivers/net/wireless/ath/ath9k/Kconfig | 20 +++++++++ drivers/net/wireless/ath/ath9k/ath9k.h | 2 +- drivers/net/wireless/ath/ath9k/calib.c | 5 ++- drivers/net/wireless/ath/ath9k/common-init.c | 35 ++++++++++++---- drivers/net/wireless/ath/ath9k/debug.c | 62 ++++++++++++++++++++++++++++ drivers/net/wireless/ath/ath9k/hw.h | 5 ++- 10 files changed, 155 insertions(+), 14 deletions(-) -- 2.11.0