]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath: Fix updating radar flags for coutry code India
authorMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Wed, 12 Apr 2017 17:49:37 +0000 (23:19 +0530)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:33:49 +0000 (21:33 -0400)
commit64be122127f93839867963fb3ab84f7ea7075df2
tree2c9f5822b409ff099ad8004588ec0f377d22ed34
parent6057cc8646ea50afc63824c56d8be5965c8c20b6
ath: Fix updating radar flags for coutry code India

[ Upstream commit c0c345d4cacc6a1f39d4856f37dcf6e34f51a5e4 ]

As per latest regulatory update for India, channel 52, 56, 60, 64
is no longer restricted to DFS. Enabling DFS/no infra flags in driver
results in applying all DFS related restrictions (like doing CAC etc
before this channel moves to 'available state') for these channels
even though the country code is programmed as 'India' in he hardware,
fix this by relaxing the frequency range while applying RADAR flags
only if the country code is programmed to India. If the frequency range
needs to modified based on different country code, ath_is_radar_freq
can be extended/modified dynamically.

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/net/wireless/ath/regd.c