diff options
author | Pradeep Kumar Chitrapu <pradeepc@codeaurora.org> | 2020-06-09 08:31:03 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-06-11 07:05:14 +0200 |
commit | d387503df0cd7f7d5a3b1366f6a40664465e090c (patch) | |
tree | 0ea6c711d471d30d000a62c9efcaf45b2e8f4488 /drivers/net/wireless/ath/ath11k/reg.c | |
parent | ath11k: extend peer_assoc_cmd for 6GHz band (diff) | |
download | linux-d387503df0cd7f7d5a3b1366f6a40664465e090c.tar.xz linux-d387503df0cd7f7d5a3b1366f6a40664465e090c.zip |
ath11k: set psc channel flag when sending channel list to firmware.
If 6 ghz channel is a Preferred Scanning Channel(PSC), mark
the channel flag accordingly when updating channel list to firmware.
This will be used when making scanning decision in 6GHz channels.
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200603001724.12161-6-pradeepc@codeaurora.org
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/reg.c')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/reg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/reg.c b/drivers/net/wireless/ath/ath11k/reg.c index 453aa9c06969..7c9dc91cc48a 100644 --- a/drivers/net/wireless/ath/ath11k/reg.c +++ b/drivers/net/wireless/ath/ath11k/reg.c @@ -161,6 +161,10 @@ int ath11k_reg_update_chan_list(struct ath11k *ar) else ch->phy_mode = MODE_11A; + if (channel->band == NL80211_BAND_6GHZ && + cfg80211_channel_is_psc(channel)) + ch->psc_channel = true; + ath11k_dbg(ar->ab, ATH11K_DBG_WMI, "mac channel [%d/%d] freq %d maxpower %d regpower %d antenna %d mode %d\n", i, params->nallchans, |