a. Add attach and detach for full monitor resources
b. Read 'sw_monitor_ring' descriptor and pop MPDU
c. Replenish buffers and link descriptors back to HW
d. Form a MPDU queue per-ppdu and all MPDUs per-PPDU to upper layer
Change-Id: I5abff75354dd3686491d4fee3c3c4612a3ca3e15
1. MAC does not really consider the expect TA and the
expect RA when the expect TA mask and expect RA mask is 0.
Basically, it checks for the subtype, bandwidth and NSS
as the filter criteria.
2. In the other scenario, if the RA matches with expect
RA and TA matches with expect TA then it does not really
consider the expect TA MASK and expect RA MASK.
With the current default config, since the expect address
mask is 00:00:00:00:00:00 it falls under case 1 and it is
written based on the MAC recipe.
But actual MAC logic is different from what is mentioned
in the recipe. MAC works on below logic:
TA & TA MASK = Expect TA & expect TA mask
RA & RA MASK = Expect RA & expect RA mask
As an additional precaution, we need to modify default
subtype as 0 so that if user enables any group by mistake
and does not give any input for the other RCC
configurations, we can block the RCC to capture CFR data.
Change-Id: Ic79fde2a23126b6cdca84df0091e1df23fb487e4
FW may limit the interval and duration during which HW may
use user provided values and attempt to capture.
These values range from 1 us to roughly 16.8 sec.
Max value is 0xFFFFFF which is 16.777215 sec.
Add check to make sure that capture duration cannot exceed
capture interval.
Change-Id: If6f75c737f8ac8cda527eee60f0e67d75e3b5420
The FW has updated the wmi command wmi_vdev_adfs_ch_cfg_cmd_fixed_param so
as to configure the restricted 80p80 channel as the Agile channel.
Add support in ADFS parameter to enable the 165MHz channel as the Agile
channel.
Change-Id: I757bbd9b209118f19e51b7a95881124000f362c8
CRs-Fixed: 2642555
Rebuild the precac tree with 160MHz root channels. Add support to mark the
160MHz precac channel nodes as CAC done and NOL.
Go through the list of available channels to find the unique PreCAC Tree
roots. Find the root channels that are not part of the 160MHz channel.
Example, consider a case where a country supports only until channel 144,
then the precac tree will have two 160MHz root nodes(36HT160, 100HT160) and
one 80MHz root node(132HT80).
Add support include the 165MHz channel to the precac tree for Pine by
considering the 165MHz channel as a 80p80MHz channel with a center channel
number 146. Adjust the channel frequency offset to mark the 165MHz
channel as precac done and NOL.
When a 160MHz or the 165MHz channel encloses a nonDFS channel, mark that
nonDFS channel as precac done.
Change-Id: Ia9bb2cc5c845c4d636e35329cdf76ace2eb63c72
CRs-Fixed: 2628373
Protect access to cfr lookup table, since error handling
mechanism attempts to cleanup CFR entries in timer context,
this leads to contention between bottom-half and timer.
Change-Id: I6a414e0da883250a90451824367c12fcca33c27e
1. Clear cfr_timer_enable flag during wifi down
2. Similar to one-shot capture, report RSSI in metadata for RCC.
Convert SNR in rxtlv to RSSI.
Change-Id: Ib7c9875049f4cf3114bbb8b0851a35ad5928325c
Beacon frames are FW generated frames, FW indicated them as DATA_SU,
with this, frame is not marked as self gen. It gets added to retry_q.
Check ppdu frame type and subtype to mark frame as selfgen if it beacon
Change-Id: If0bfd9bf2cc321afe207a4db7529e24baebfd376
CRs-Fixed: 2643848
if last_msdu is not received then allocated
mpdu_nbuf and mpdu_q is not freed,
This change frees the buffers in last_msdu not seen case.
Change-Id: Icaaa6e227f3ea1d314c6d15a9f76c2f622d5d93f
CRs-Fixed: 2643848
If tx_capture is disabled, the frames notified to tx_capture
module needs to be freed.
This change frees mgmt frames in tx capture module, in case feature
is disabled
Change-Id: I71f102ba2f25f23bdcef63dddb525d5f7b0a692a
CRs-Fixed: 2643848
1) Avoid removing wrong nbuf from queue
In corner case, the current flow can remove first nbuf instead of
actual nbuf from queue, this can lead to having the actual pointer
stored at two array indexs.
2) tsf wraparound handling for mgmt frame
3) Mpdu tried is higher than ba_sisze
mpdus[] is allocated with ba_size, it is observed that mpdu_tried
is higher than ba_size, which can lead to buffer overlow.
Added the check of ba_size along with mpdu_tried.
To avoid it, copied nbuf in the corner case, and left the actual nbuf
in the xretries queue.
Change-Id: Ifa57eaf62cf50aa2c356a6d1f41ef4b7283be52e
CRs-Fixed: 2643848
For Pine, the agile channel width needs to be 160MHz when the current
channel width is 160MHz or restricted 80+80MHz.
Change-Id: Id1339400c6e86daf9febe364de62be42c9732f14
CRs-Fixed: 2628370
Remove redundant data structure at wmi for vdev start
response extraction, instead use mlme host data structure.
Change-Id: Icc28493722546f3c37e8a90d3182becb3af6557b
CRs-Fixed: 2641083
In the response event for multi-vdev restart request, target pdev id
needs to be converted to host pdev id since pdev id mapping can change
based on HW mode and primary interface when dynamic HW mode feature is
used.
When feature is not used, regular conversion will be applied.
CRs-fixed:2631763
Change-Id: I5f0ce37ca2d3f138c25fa6e84f00da222ae72222
For Pine chip, where true 160MHz (single detector for 160MHz)
is supported, the agile detector ID is 1 (instead of 2 for
chipsets like Hawkeye with two primary 80MHz detectors).
Assign the dfs_agile_detector_id to the proper value based on
true 160MHz capability.
Introduce a new API to get the agile_detector_id based on the
chip's capability. Use the new API to get the agile_detector_id
instead of using the existing enum.
CRs-Fixed: 2637793
Change-Id: I8033e541c09632a9e4c7be1a5067d1dbcedd0d48
Remove redundant data structure at wmi for vdev delete all peer
response extraction, instead use mlme host data structure.
Change-Id: I5dbd86a6ab64477830dd8ae2e69b75e6f9e623fa
CRs-Fixed: 2641263
Hold peer_ref while adding peer to multipass_list
which will be released during the removal from the list.
Change-Id: I37ada3fd433dc9a8858dedb82dc9caee151fc88a
Fix compilation warning:
format '%u' expects argument of type 'unsigned int',
but argument 2 has type 'long unsigned int' [-Wformat=]
Change-Id: I59b616b946ad9548379e7350b346c7688fbcf37c
Fix to support Tx capture for below issues
a. intermittent change to drops all MU frames in Tx capture.
b. Fix to support, FW indicates enqueue bitmap with more bits than
actual MPDUs tried by HW tx capture holds more pending PPDUs, it causes
higher memory usage.
c. holding peer reference on get and release reference on delete
during tx capture.
Change-Id: I0ac5dce7995413585164b6c15dd8b647f0886fb1
TA retrieved from freeze TLV was being over-written by macaddr
from AST search during RXTLV processing.
MACADDR from AST search is essential only for MU PPDUs.
Change-Id: If38fd198fb196397298ed4ab646eb3257b1113b0
Currently, there is no check for QoS NULL when
handling data frames in the TX Cap feature. This
leads to QoS NULL frames not being seen OTA. Add
a check in dp_tx_ppdu_stats_process to ensure data
frame is not a QoS NULL data frame before handling,
since QoS NULL payload comes in management path.
Change-Id: I9fa2e68115327a283b241214ff62534bcb1ed74a
CRs-Fixed: 2632712