All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
To: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Cc: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Subject: [PATCH v2 03/13] qtnfmac: request userspace to do OBSS scanning if FW can not
Date: Fri, 5 Oct 2018 10:11:30 +0000	[thread overview]
Message-ID: <20181005101114.3013-4-sergey.matyukevich.os@quantenna.com> (raw)
In-Reply-To: <20181005101114.3013-1-sergey.matyukevich.os@quantenna.com>

From: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>

In case firmware reports that it can not do OBSS scanning for 40MHz
2.4GHz channels itself, tell userpsace to do that instead by setting
NL80211_FEATURE_NEED_OBSS_SCAN flag.

Signed-off-by: Igor mitsyanko <igor.mitsyanko.os@quantenna.com>
---
 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 3 +++
 drivers/net/wireless/quantenna/qtnfmac/qlink.h    | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
index 87f48b7fb673..c4961e16d91a 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
@@ -1099,6 +1099,9 @@ int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac)
 	if (hw_info->hw_capab & QLINK_HW_CAPAB_SCAN_RANDOM_MAC_ADDR)
 		wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR;
 
+	if (!(hw_info->hw_capab & QLINK_HW_CAPAB_OBSS_SCAN))
+		wiphy->features |= NL80211_FEATURE_NEED_OBSS_SCAN;
+
 #ifdef CONFIG_PM
 	if (macinfo->wowlan)
 		wiphy->wowlan = macinfo->wowlan;
diff --git a/drivers/net/wireless/quantenna/qtnfmac/qlink.h b/drivers/net/wireless/quantenna/qtnfmac/qlink.h
index 99d37e3efba6..c5ae4ea9a47a 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/qlink.h
+++ b/drivers/net/wireless/quantenna/qtnfmac/qlink.h
@@ -71,6 +71,7 @@ struct qlink_msg_header {
  * @QLINK_HW_CAPAB_DFS_OFFLOAD: device implements DFS offload functionality
  * @QLINK_HW_CAPAB_SCAN_RANDOM_MAC_ADDR: device supports MAC Address
  *	Randomization in probe requests.
+ * @QLINK_HW_CAPAB_OBSS_SCAN: device can perform OBSS scanning.
  */
 enum qlink_hw_capab {
 	QLINK_HW_CAPAB_REG_UPDATE		= BIT(0),
@@ -78,6 +79,7 @@ enum qlink_hw_capab {
 	QLINK_HW_CAPAB_DFS_OFFLOAD		= BIT(2),
 	QLINK_HW_CAPAB_SCAN_RANDOM_MAC_ADDR	= BIT(3),
 	QLINK_HW_CAPAB_PWR_MGMT			= BIT(4),
+	QLINK_HW_CAPAB_OBSS_SCAN		= BIT(5),
 };
 
 enum qlink_iface_type {
-- 
2.11.0


  parent reply	other threads:[~2018-10-05 10:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-05 10:11 [PATCH v2 00/13] qtnfmac: fixes and cleanups for STA mode Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 01/13] qtnfmac: do not track STA states in driver Sergey Matyukevich
2018-10-05 11:04   ` Kalle Valo
2018-10-05 10:11 ` [PATCH v2 02/13] qtnfmac: generate local disconnect event in disconnect callback Sergey Matyukevich
2018-10-05 10:11 ` Sergey Matyukevich [this message]
2018-10-05 10:11 ` [PATCH v2 04/13] qtnfmac: do not initialize per-MAC data multiple times Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 05/13] qtnfmac: cleanup and unify command error handling Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 06/13] qtnfmac: do not cancel scan in disconnect callback Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 07/13] qtnfmac: pass sgi rate info flag to wireless core Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 08/13] qtnfmac: inform wireless core about supported extended capabilities Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 09/13] qtnfmac: drop error reports for out-of-bounds key indexes Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 10/13] qtnfmac: add support for scan flush Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 11/13] qtnfmac: add support for scan dwell time configuration Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 12/13] qtnfmac: drop redundant data copy in control path Sergey Matyukevich
2018-10-05 10:11 ` [PATCH v2 13/13] qtnfmac: implement dump_station support for STA mode Sergey Matyukevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181005101114.3013-4-sergey.matyukevich.os@quantenna.com \
    --to=sergey.matyukevich.os@quantenna.com \
    --cc=igor.mitsyanko.os@quantenna.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.