Re: [ath9k-devel] [PATCH v2 6/8] cfg80211: reg: Add NL80211_RRF_USER_REGD_NEEDED flag

2015-12-14 Thread Michal Sojka
On Fri, Nov 27 2015, Johannes Berg wrote: > On Mon, 2015-11-23 at 19:27 +0100, Michal Sojka wrote: >>  >> The NL80211_RRF_USER_REGD_NEEDED flag introduced in this commit >> allows >> drivers to specify that certain band is enabled only if it is >> additionally en

Re: [ath9k-devel] [PATCH v2 7/8] cfg80211: Add Kconfig option for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
On Fri, Nov 27 2015, Johannes Berg wrote: > On Thu, 2015-11-26 at 22:10 +0100, Michal Sojka wrote: >>  >> Because in [1] Jouni said that >> >>    "kernel config option + custom regdb would certainly be much >> closer to what I'd like to see from the reg

[ath9k-devel] [PATCH v2 6/8] cfg80211: reg: Add NL80211_RRF_USER_REGD_NEEDED flag

2015-12-14 Thread Michal Sojka
band is not present there, the channels are simply disabled. Signed-off-by: Michal Sojka --- include/net/cfg80211.h | 3 +++ include/uapi/linux/nl80211.h | 4 net/wireless/reg.c | 15 +++ 3 files changed, 22 insertions(+) diff --git a/include/net/cfg80211.h b

Re: [ath9k-devel] [PATCH v2 5/8] cfg80211: Add support for OCB-only channels

2015-12-14 Thread Michal Sojka
On Fri, Nov 27 2015, Johannes Berg wrote: > On Mon, 2015-11-23 at 19:27 +0100, Michal Sojka wrote: > >>  #define NL80211_RRF_PASSIVE_SCANNL80211_RRF_NO_IR >> diff --git a/net/wireless/chan.c b/net/wireless/chan.c >> index 59cabc9..b1ab77a 100644 >> --- a/ne

Re: [ath9k-devel] [PATCH v2 7/8] cfg80211: Add Kconfig option for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
On Thu, Nov 26 2015, Johannes Berg wrote: > On Mon, 2015-11-23 at 19:27 +0100, Michal Sojka wrote: >> This option is meant for use by drivers and other subsystems to >> enable >> support for the Intelligent Transportation System (ITS-G5) band. The >> option depends on

[ath9k-devel] [PATCH v2 3/8] cfg80211: reg: Refactor calculation of bandwidth flags

2015-12-14 Thread Michal Sojka
The same piece of code appears at two places. Make a function from it. Signed-off-by: Michal Sojka --- net/wireless/reg.c | 91 ++ 1 file changed, 37 insertions(+), 54 deletions(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index

[ath9k-devel] [PATCH v2] ath9k: Add support for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
From: Jan Kaisrlik The patch adds support for Intelligent Transportation System (ITS-G5) band to the ath9k driver. Signed-off-by: Jan Kaisrlik Cc: Michal Sojka --- Hi all, in this second version of the patch we removed dependency on CFG80211_CERTIFICATION_ONUS as suggested by Johannes. We

[ath9k-devel] [PATCH v2 4/8] cfg80211: reg: Properly handle rules for 5 and 10 MHz channels

2015-12-14 Thread Michal Sojka
12 in the US regulatory domain. I have checked that this is not possible with this change: # iw reg set US # iw dev wlan0 interface add wlan0_ap type __ap # iw dev wlan0_ap set channel 12 command failed: Invalid argument (-22) Cc: Felix Fietkau Signed-off-by: Michal Sojka --- net/wir

[ath9k-devel] [PATCH v2 8/8] ath9k: Add support for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
: Michal Sojka --- drivers/net/wireless/ath/ath9k/common-init.c | 19 +++ drivers/net/wireless/ath/ath9k/hw.h | 2 +- drivers/net/wireless/ath/regd.c | 23 ++- 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/drivers/net

Re: [ath9k-devel] [PATCH v2] ath9k: Add support for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
On Mon, Nov 02 2015, Jouni Malinen wrote: > On Mon, Nov 02, 2015 at 06:33:45PM +0100, Michal Sojka wrote: >> Can this be solved by having proper/new regulatory flags on these >> channels that would prohibit running AP or scanning on these channels? > > I'm not sure tha

[ath9k-devel] [PATCH v2 5/8] cfg80211: Add support for OCB-only channels

2015-12-14 Thread Michal Sojka
which modes to use, we limit the mode to OCB in order to prevent accidental use of the band by other applications. Signed-off-by: Michal Sojka --- include/net/cfg80211.h | 2 ++ include/uapi/linux/nl80211.h | 2 ++ net/wireless/chan.c | 6 -- net/wireless/ibss.c

[ath9k-devel] [PATCH v2 7/8] cfg80211: Add Kconfig option for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
certification. Signed-off-by: Michal Sojka --- net/wireless/Kconfig | 27 +++ 1 file changed, 27 insertions(+) diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig index da72ed3..faa0ab1 100644 --- a/net/wireless/Kconfig +++ b/net/wireless/Kconfig @@ -132,6 +132,33 @@ config

[ath9k-devel] [PATCH v2 2/8] cfg80211: Remove unused cfg80211_can_use_iftype_chan()

2015-12-14 Thread Michal Sojka
Last caller of this function was removed in 3.17 in commit 97dc94f1d933c9df2c0b327066ea130c0e92083f. Signed-off-by: Michal Sojka --- net/wireless/core.h | 7 net/wireless/util.c | 114 2 files changed, 121 deletions(-) diff --git a

[ath9k-devel] [PATCH v2 0/8] Regulatory and ath9k support for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
patch 8 adds support for ITS-G5 to the ath9k driver. [1]: http://www.mail-archive.com/ath9k-devel@lists.ath9k.org/msg13795.html Michal Sojka (8): cfg80211: reg: Remove unused function parameter cfg80211: Remove unused cfg80211_can_use_iftype_chan() cfg80211: reg: Refactor calculation of

[ath9k-devel] [PATCH v2 1/8] cfg80211: reg: Remove unused function parameter

2015-12-14 Thread Michal Sojka
Signed-off-by: Michal Sojka --- net/wireless/reg.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 2e8d6f3..43b3e57 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -1052,7 +1052,7 @@ static u32 map_regdom_flags

Re: [ath9k-devel] [PATCH v2] ath9k: Add support for ITS-G5 band (5.9 GHz)

2015-12-14 Thread Michal Sojka
Hi Jouni, thanks for quick reply. On Mon, Nov 02 2015, Jouni Malinen wrote: > On Mon, Nov 02, 2015 at 11:22:57AM +0100, Michal Sojka wrote: >> The patch adds support for Intelligent Transportation System (ITS-G5) >> band to the ath9k driver. > > NAK. This would enable us