diff options
author | Sergey Matyukevich | 2018-10-05 10:11:41 +0000 |
---|---|---|
committer | Kalle Valo | 2018-10-05 14:01:33 +0300 |
commit | 6d85930f265393cde7dba5637eeaa60c2c7c72c8 (patch) | |
tree | ffe6d10059b2c205fd00af6449a61099266b90e5 /drivers/net/wireless/quantenna/qtnfmac/commands.c | |
parent | 35da3fe63b8647ce3cc52fccdf186a60710815fb (diff) |
qtnfmac: add support for scan flush
Notify firmware to flush cache before scanning when needed.
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/commands.c')
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/commands.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c index 8dbd6c45c233..8fb15cbf5005 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -2197,6 +2197,12 @@ int qtnf_cmd_send_scan(struct qtnf_wmac *mac) scan_req->mac_addr_mask); } + if (scan_req->flags & NL80211_SCAN_FLAG_FLUSH) { + pr_debug("MAC%u: flush cache before scan\n", mac->macid); + + qtnf_cmd_skb_put_tlv_tag(cmd_skb, QTN_TLV_ID_SCAN_FLUSH); + } + ret = qtnf_cmd_send(mac->bus, cmd_skb); if (ret) goto out; |