diff options
author | Tamizh chelvam | 2017-02-23 14:18:22 +0100 |
---|---|---|
committer | Kalle Valo | 2017-03-16 09:53:49 +0100 |
commit | 523f6701dbabbe63b35d16bb676d35212b22e204 (patch) | |
tree | 92ca6ff1130b6ca02c3201d2450cc304f2b07c3f /drivers/net/wireless/ath/ath10k/core.h | |
parent | ath10k: disallow DFS simulation if DFS channel is not enabled (diff) | |
download | kernel-qcow2-linux-523f6701dbabbe63b35d16bb676d35212b22e204.tar.gz kernel-qcow2-linux-523f6701dbabbe63b35d16bb676d35212b22e204.tar.xz kernel-qcow2-linux-523f6701dbabbe63b35d16bb676d35212b22e204.zip |
ath10k: update available channel list for 5G radio
If a 5 GHz radio is calibrated for operation in both
the low band (channels 36 to 64) and high band(channels 100 to 169),
hardware allows operations in all the listed channels. However,
if the chip has been calibrated only for the low/high band and
a high/low band channel is configured, due to lack of calibration
there will be potentially invalid signal on those non calibrated channels.
To avoid this problem this patch sets IEEE80211_CHAN_DISABLED flag for
those non calibrated channels by using low_5ghz_chan and high_5ghz_chan
values which we get from target through wmi service ready event.
Driver initialized flags are getting re initialized in handle_channel
in cfg80211. So calling the function to disable the non supported channel
from reg_notifier().
Signed-off-by: Tamizh chelvam <c_traja@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/core.h')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index 88d14be7fcce..d4b9a0ec1bdc 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++ b/drivers/net/wireless/ath/ath10k/core.h @@ -775,6 +775,8 @@ struct ath10k { u32 num_rf_chains; u32 max_spatial_stream; /* protected by conf_mutex */ + u32 low_5ghz_chan; + u32 high_5ghz_chan; bool ani_enabled; bool p2p; |