summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/quantenna/qtnfmac/event.c
diff options
context:
space:
mode:
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>2017-12-19 14:28:48 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-01-09 14:11:17 +0200
commit5bf374ab91ad361276cf902dbf1e642b4816f490 (patch)
tree1ffb90f045c83759cfa277b903b16274c9b65325 /drivers/net/wireless/quantenna/qtnfmac/event.c
parent4fd045cdb2396bfe315dbffd97157da711c7fa7f (diff)
downloadblackbird-op-linux-5bf374ab91ad361276cf902dbf1e642b4816f490.tar.gz
blackbird-op-linux-5bf374ab91ad361276cf902dbf1e642b4816f490.zip
qtnfmac: pass complete channel data between driver and firmware
Center frequency is not enough to describe the channel in HT and VHT modes. For 40MHz and 80MHz channels both primary channel and center frequency should be specified in order to qualify channel completely. This change adds primary channel info into qlink_chandef structure. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/quantenna/qtnfmac/event.c')
-rw-r--r--drivers/net/wireless/quantenna/qtnfmac/event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/event.c b/drivers/net/wireless/quantenna/qtnfmac/event.c
index 4abc6d9ed560..a3a18d8469ae 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/event.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/event.c
@@ -369,7 +369,8 @@ qtnf_event_handle_freq_change(struct qtnf_wmac *mac,
qlink_chandef_q2cfg(wiphy, &data->chan, &chandef);
if (!cfg80211_chandef_valid(&chandef)) {
- pr_err("MAC%u: bad channel f1=%u f2=%u bw=%u\n", mac->macid,
+ pr_err("MAC%u: bad channel freq=%u cf1=%u cf2=%u bw=%u\n",
+ mac->macid, chandef.chan->center_freq,
chandef.center_freq1, chandef.center_freq2,
chandef.width);
return -EINVAL;
OpenPOWER on IntegriCloud