]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath10k: update available channel list for 5G radio
authorTamizh chelvam <c_traja@qti.qualcomm.com>
Thu, 23 Feb 2017 13:18:22 +0000 (18:48 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 16 Mar 2017 08:53:49 +0000 (10:53 +0200)
commit523f6701dbabbe63b35d16bb676d35212b22e204
tree92ca6ff1130b6ca02c3201d2450cc304f2b07c3f
parentca07baab0b1e627ae1d4a55d190fb1c9d32a3445
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>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wmi.c
drivers/net/wireless/ath/ath10k/wmi.h