OSDN Git Service

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)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 19 Apr 2017 14:09:26 +0000 (17:09 +0300)
commitc0c345d4cacc6a1f39d4856f37dcf6e34f51a5e4
tree37a38e94a7dc35c61b592bb8b8dd60abefcd8ce0
parentb90189759a7ff92aa47e8878f6b5a9f868e19895
ath: Fix updating radar flags for coutry code India

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>
drivers/net/wireless/ath/regd.c