All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miles Hu <milehu@codeaurora.org>
To: ath11k@lists.infradead.org
Cc: Miles Hu <milehu@codeaurora.org>
Subject: [PATCH v5 0/6] ath11k: add monitor mode support
Date: Mon, 15 Apr 2019 17:12:50 -0700	[thread overview]
Message-ID: <1555373576-4771-1-git-send-email-milehu@codeaurora.org> (raw)

Adding monitor mode in ath11k. It can be enabled
 by commands below:

  ifconfig wlan0 down
  iw wlan0 set type monitor
  ifconfig wlan0 up

change channel:
  iw wlan0 set freq 5805 80 5775

Change summary:
1. create monitor status/destination/buffer/link descriptor rings.
2. enable these rings and push ring filters to buffer/status rings.
3. add napi entry point for monitor status and destination rings process.
4. implement monitor status/buffer rings replenish.
5. process entries from the status ring to get ppdu id and tlv status.
6. process entries from the destination ring by comparing ppdu id to build
    msdu list.
7. merge msdu list to mpdu and copy rx status to cb.
8. deliver mpdu to upper layer.

Known issues:
 - Coexist with other interface type (AP/STA) not fully supported.
 - higher data rates (11ax) not supported. radiotap needs proper info.
 - signal strength and rate idx not accurate in some packets.

-Miles Hu

Miles Hu (6):
  ath11k: init/deinit monitor rings
  ath11k: monitor filter set function
  ath11k: htt setup monitor rings
  ath11k: monitor mode attach/detach
  ath11k: enable/disable monitor mode and destination ring entry process
  ath11k: merge msdu tlv process and status/destination ring process

V2:
 - correct wrong indent and style.
 - change function return value to bool.
 - remove redundent code.
 - correct warn message style and remove __func__ and __LINE__.
 - remove likely and unlikely functions.

V3:
 - create common ring reap function for peer-stats and monitor mode.

V4:
 - change bool to atomic_t to add protection
 - remove unnecessary print

V5:
 - replace atomic_t by atomic bitmask

 drivers/net/wireless/ath/ath11k/core.h     |   8 +-
 drivers/net/wireless/ath/ath11k/dp.c       | 110 ++--
 drivers/net/wireless/ath/ath11k/dp.h       | 189 +++++-
 drivers/net/wireless/ath/ath11k/dp_rx.c    | 917 ++++++++++++++++++++++++++---
 drivers/net/wireless/ath/ath11k/dp_rx.h    |  61 +-
 drivers/net/wireless/ath/ath11k/dp_tx.c    | 193 +++---
 drivers/net/wireless/ath/ath11k/dp_tx.h    |   1 +
 drivers/net/wireless/ath/ath11k/hal.c      |   2 +-
 drivers/net/wireless/ath/ath11k/hal_desc.h |   3 +
 drivers/net/wireless/ath/ath11k/hal_rx.c   |  28 +
 drivers/net/wireless/ath/ath11k/hal_rx.h   |  17 +
 drivers/net/wireless/ath/ath11k/mac.c      |  40 +-
 drivers/net/wireless/ath/ath11k/rx_desc.h  |   1 +
 13 files changed, 1360 insertions(+), 210 deletions(-)

-- 
2.7.4


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

             reply	other threads:[~2019-04-16  0:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-16  0:12 Miles Hu [this message]
2019-04-16  0:12 ` [PATCH v5 1/6] ath11k: init/deinit monitor rings Miles Hu
2019-04-16  0:12 ` [PATCH v5 2/6] ath11k: monitor filter set function Miles Hu
2019-04-16  0:12 ` [PATCH v5 3/6] ath11k: htt setup monitor rings Miles Hu
2019-04-16  0:12 ` [PATCH v5 4/6] ath11k: monitor mode attach/detach Miles Hu
2019-04-16  0:12 ` [PATCH v5 5/6] ath11k: enable/disable monitor mode and destination ring entry process Miles Hu
2019-04-16  0:12 ` [PATCH v5 6/6] ath11k: merge msdu tlv process and status/destination ring process Miles Hu
2019-04-23 14:05 ` [PATCH v5 0/6] ath11k: add monitor mode support Kalle Valo

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=1555373576-4771-1-git-send-email-milehu@codeaurora.org \
    --to=milehu@codeaurora.org \
    --cc=ath11k@lists.infradead.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.