Commit Graph

1632 Commits

Author SHA1 Message Date
Priyadarshnee S
0beec74ee3 Revert "qca-wifi: Remove duplicate invoke of restart clear API"
This reverts commit 93fd212313864b5a2e693cefadc0b48763d522af.

CRs-Fixed: 2604433
Change-Id: I0ddf7971c1438650f28a0e0bf1d1f3ffb4aa9bc1
2020-01-25 21:30:00 +05:30
Linux Build Service Account
49bc88672c Merge "qca-wifi: legacy rx ack frames generation" 2020-01-24 09:42:18 -08:00
Kai Chen
b49539b149 qca-wifi: fix the issue in block ack/ack for tx capture mode
1. Hanndle BAR frame.
2. set rate for ACK frame.
3. Check block ack session and use block ack if block
ack session is established.
4. no ACK for broadcast probe request.
5. no ack if the ack policy is set to no ack in qos control.

Change-Id: Id42b0e95fc7ea043d35c8d7d5686f15140acdea6
2020-01-23 17:41:41 -08:00
Linux Build Service Account
f5915b72b4 Merge "qca-wifi: dequeue peer tid queue on flush tlv and fix out of bound crash" 2020-01-23 10:29:31 -08:00
Linux Build Service Account
7cc24830df Merge "qca-wifi: Correct the condition for dump_lut in CFR" 2020-01-23 10:29:28 -08:00
Ruben Columbus
7059791eb2 qca-wifi: legacy rx ack frames generation
use resp_type to identify packets with HTT_PPDU_STATS_ACK_EXPECTED_E.
this condition triggers rx legacy ack frame.

Change-Id: I17b2ce428692da655580a9365d1c3d920ac360fc
2020-01-22 23:43:07 -08:00
nobelj
f184e7c299 qca-wifi: N -1 probe response retry count fix
for probe response with missing payload is not handled properly
causing N -1 probe response count compared to sniffer.

Change-Id: I13b00b35be78b67f2242c84a8a9978814d097a21
2020-01-22 17:40:49 -08:00
Debasis Das
ecd593e474 Revert "qca-wifi: Support extended multi-vdev restart cmd"
This reverts commit 918c7107153cda4208e818789bb0dc2f04528a9d

Change-Id: I6dbb03732d70863041ed0f2c334399a21163f253
2020-01-22 06:55:58 -08:00
Linux Build Service Account
a6b99bd079 Merge "qca-wifi: Support extended multi-vdev restart cmd" 2020-01-21 01:37:41 -08:00
Linux Build Service Account
6276687465 Merge "qca-wifi: umac-dp decoupling changes in ctrl_ops for datapath" 2020-01-21 01:37:32 -08:00
Linux Build Service Account
adc677d01c Merge "qca-wifi: remove fw headers in init_deinit component" 2020-01-20 07:11:12 -08:00
Debasis Das
4830f1f867 qca-wifi: Support extended multi-vdev restart cmd
Support variable param-list in multi-vdev-restart
by adding a new command.

Change-Id: I99a90d419a49cbb0a0cfa2244fe07f958d071ac5
2020-01-20 14:45:38 +05:30
Linux Build Service Account
a8800bf0ac Merge "qca-wifi: Send phymode in multi-vdev-restart params" 2020-01-19 11:35:48 -08:00
Linux Build Service Account
b70ec9f585 Merge "qca-wifi: Modified return type not to break existing feature handling" 2020-01-19 07:38:21 -08:00
Linux Build Service Account
325630ccc7 Merge "qca-wifi: Support multivdev restart response handling for TLV" 2020-01-18 04:11:38 -08:00
Linux Build Service Account
4da189b8a1 Merge "qca-wifi: Support multivdev restart response for non-TLV" 2020-01-18 04:11:38 -08:00
Nandha Kishore Easwaran
2b70a2a324 qca-wifi: Replace 8074_VP with WIFI_EMULATION_3_0
Replace QCA_WIFI_QCA8074_VP with CONFIG_WIFI_EMULATION_WIFI_3_0
since VP platform is not being used anymore.
Most of the parameters present inside QCA_WIFI_QCA8074_VP are related
to emulation timeouts. Hence replacing it with a more meaningful flag.

Change-Id: I066cd86fe6ee15a1c3e8d7d656d3cf7d4a4b9d1b
2020-01-17 09:09:59 -08:00
nobelj
922a0db454 qca-wifi: dequeue peer tid queue on flush tlv and fix out of bound crash
a. On flush tlv from firmware, dequeue msdu from peer tid queue.
b. Fix msdus out of bound crash.
c. Fix non qos tid excess retries.

Change-Id: Iac50ec2e74762138b78ec78ada8c62c58601536e
2020-01-16 14:44:20 -08:00
syed touqeer pasha
a8273c8335 qca-wifi: Extract msdu end TLV information into structure
Rather than extracting msdu end TLV information per field basis,
extract needed msdu end TLV information into local structure.

Change-Id: Iff8eea6c88a11ab588f6f4d8f11acb6faa4d513d
2020-01-16 21:43:18 +05:30
Pavankumar Nandeshwar
5ccd5a8727 qca-wifi: umac-dp decoupling changes in ctrl_ops for datapath
Modify datapath APIs to make sure they do not need
to receive dp handles from umac interface.

Change-Id: I0979795a6356a29394daa2719dfbd36cdde3d0e2
2020-01-16 12:59:04 +05:30
Ankit Kumar
38e0f2b90b qca-wifi: Modified return type not to break existing feature handling
At present, there is not check while calling multipass processing
and hence no packet gets dropped.
Adding check will drop packet in case of returning return type as
false. Hence modified return type as true so that no packet gets
dropped and existing flow doesn't break.

Change-Id: I49089f155b1b78adb533ca23f3b0f3cad9543135
CRs-Fixed: 2599782
2020-01-16 12:06:06 +05:30
Himanshu Batra
005412e1c8 qca-wifi: Componentize Multicast Enhancement
Remove dependency of ME on VAP layer and radio(ic) layer data
structures

Change-Id: Ic1e93204e02083fb90e879a7c5f41c8ee7376c14
CRs-Fixed: 2580389
2020-01-16 09:42:19 +05:30
Linux Build Service Account
86679bd69e Merge "qca-wifi: Fix tx capture issue" 2020-01-14 14:31:50 -08:00
Debasis Das
99600986cf qca-wifi: Send phymode in multi-vdev-restart params
In multi-vdev-restart command, phymode is being added
to the params list.

Change-Id: I85897cb6667b97141ab2b92ab42cf1bd87b5a7b9
2020-01-13 22:22:26 -08:00
Linux Build Service Account
14745c711d Merge "qca-wifi: Check peer capture enable while enqueuing MSDUS" 2020-01-13 21:36:42 -08:00
Linux Build Service Account
eb1f5d0e2a Merge "qca-wifi: CFR: Update channel capture status counters" 2020-01-13 13:39:06 -08:00
Linux Build Service Account
fe39b24b66 Merge "qca-wifi: CFR: Remove dp_handle references in CFR" 2020-01-13 13:39:06 -08:00
Linux Build Service Account
84b905d059 Merge "qca-wifi: Display CFR debug counters in default loglevel of CFR module" 2020-01-13 13:39:05 -08:00
Linux Build Service Account
6e44717a85 Merge "qca-wifi: CFR: Fixes in error handling path" 2020-01-13 13:39:05 -08:00
Linux Build Service Account
f26251a485 Merge "qca-wifi-oss: Reinit DFS after HW mode switch (phase 2)" 2020-01-12 19:35:58 -08:00
Santosh Anbu
d32205615d qca-wifi: Support multivdev restart response handling for TLV
Add WMI change to support extraction of consolidated multi vdev
response handling from TLV.

Change-Id: I5b9697b130ec38ac64de5a63ad8e491b9b786604
CRs-Fixed: 2601729
2020-01-12 17:54:02 +05:30
Santosh Anbu
30bd6249ae qca-wifi: Support multivdev restart response for non-TLV
Add change to support consolidated multi vdev restart response
handling for non-TLV based platforms.

Change-Id: I58445fb66465b987906d23c079813b010976b380
CRs-Fixed: 2593073
2020-01-12 16:33:29 +05:30
Adwait Nayak
a58487f97b qca-wifi: CFR: Fixes in error handling path
1. In CFR RCC mode, when ucode aborts DMA of CFR data, 2 (or)
more PPDU status TLVs are likely to have same phy_addr+cookie in
RX location TLV, so the host will be flushing out the older PPDU
status TLV events instead of DBR events in LUT table,
since DBR events signify the actual DMA completion.

2. Same fix has been made for LUT entry ageout logic.

Change-Id: Ifc0717e97d21ba3463cc2f5ceb2f22a657177002
2020-01-10 12:54:25 +05:30
Padma Raghunathan
82cc8e46d8 qca-wifi: Display CFR debug counters in default loglevel of CFR module
Change log level of CFR debug counters from QDF_TRACE_LEVEL_INFO to
QDF_TRACE_LEVEL_ERROR

Change-Id: Ib0d36ec458de2d8d562d34a80ab8128f934ad459
2020-01-10 11:38:16 +05:30
Abhiram Jogadenu
fe2c3b839b qca-wifi: Correct the condition for dump_lut in CFR
Earlier, CFR's LUT was dumped when difference between dbr count
and release count is greater than 1. This might be agrressive.
Modified the condition to reflect the worst case where LUT has
no empty entry.

Change-Id: I010431b446ddb66364505f0c8d9a70dd181eb8b1
2020-01-09 10:44:27 +05:30
nobelj
dd3213d1e8 qca-wifi: Fix tx capture issue
Fix tx capture issue
a. update tx capture debug stats
b. store ppdu_desc before sending to stack

Change-Id: I006ebf3504d045d88d6e87963bbb681d568d2e92
2020-01-08 06:27:34 -08:00
Ruben Columbus
6829a32527 qca-wifi: Check peer capture enable while enqueuing MSDUS
this is done to queue frames when filtering and eventually free them
when the feature is disabled

Change-Id: I2dcaa1b354e8e2a0403cf438526a545669ed84e6
2020-01-08 06:24:57 -08:00
Padma Raghunathan
1a8dfb04ef qca-wifi: CFR: Remove dp_handle references in CFR
This changes removes references to dp_handle in CFR component, to ensure
consistency with FR#56622.

Change-Id: I3539e958ed3fe4ef68f22adf473349b5639cb4b1
2020-01-07 23:57:43 +05:30
Padma Raghunathan
b12a4fea57 qca-wifi: CFR: Update channel capture status counters
PHY may not be able to capture the CFR data in certain cases.
Ucode will update the reason due to which CFR capture did not
happen in PHYRX_PKT_END TLV.

Channel capture status -
	0 - CAPTURE_IDLE
	1 - CAPTURE_BUSY
	2 - CAPTURE_ACTIVE
	3 - CAPTURE_NO_BUFFER

Originally, ucode updated channel capture status only for PPDUs,
for which PHY was able to capture CFR data successfully. Ucode is
making a change to report channel capture status in PPDUs for which
PHY was unable to capture CFR data.

Re-positioning the counters in host to handle this new change in
ucode.

Change-Id: I915fe7c4969649754936cab624343e044b397a0c
2020-01-07 23:57:04 +05:30
Ankit Kumar
8eb01eccb1 qca-wifi: Wmi interface to send hw vlan accel info to fw
wmi interface to sned hw vlan acceleration command to fw.

Change-Id: I6702da276fa89471d327a64810cf7fc85ab66d44
CRs-Fixed: 2596307
2020-01-06 09:41:38 +05:30
Neha Bisht
8dc92aff36 qca-wifi: remove fw headers in init_deinit component
Avoid direct fw headers usage in init_deinit component

Change-Id: Ibdf8ea663fb9406217b56e0806d8c332ad3a1504
CRs-Fixed: 2568438
2020-01-03 11:56:19 +05:30
Vignesh Mohan
29948edda0 qca-wifi-oss: Reinit DFS after HW mode switch (phase 2)
Supported dynamic HW mode switches:
DBS (full band 5G and 2G) <-> DBS_SBS (low band 5G, high band 5G and 2G)

Description of the changes:

1. NOL conversion:
  a. Introduce a temporary NOL list copy structure in DFS psoc obj.
  b. When mode switch is triggered:
    i.   Stop the NOL timers and clear the data, to avoid processing NOL
	 expiry during mode switch.
    ii.  Allocate the psoc NOL copy for the target num_radios.
    iii. Store the NOL data of each radio to the target pdev ID
	 (pdev ID after mode switch) in the psoc NOL copy,
	 using a unified mux/demux API.
  c. After mode switch is completed:
    i.   Resume NOL by re-initializing the list from the temporary psoc
         copy.
    ii.  Free the psoc copy after mode switch is complete.
    iii. Note: changes are made to support pause and resume of NOL,
	 increasing NOL timeout by a few milliseconds.

2. PreCAC list conversion:
  a. When mode switch is triggered:
    i. Stop the existing preCAC timer and send ADFS abort command to FW.
  b. When mode switch is completed:
    i.  Unify/separate the preCAC list if the target mode is DBS/DBS_SBS
	respectively, using a single API.
    ii. Start ADFS again.

3. Radar detection lock:
  a. While detecting radar, acquire a lock to avoid handling user triggered
     mode_switch during this process. Release the lock once radar
     processing is completed and CSA start is triggered.

4. Radar detection/CAC completion defer during mode switch:
  a. While detecting radar or CAC completion, check if mode switch is
     in progress. If yes, wait for mode switch to complete before
     handling the events.
  b. Note: Precedence is Radar over CAC, i.e., if CAC processing is waiting
     and radar is received, CAC completion is no longer handled.

CRs-Fixed: 2535058
Change-Id: I55e03dae9da994c21b1aafe7b7686f5299221a40
2020-01-02 22:01:42 -08:00
Linux Build Service Account
6012551d92 Merge "qca-wifi: Enhanced channel capture UCFG framework" 2019-12-27 20:11:08 -08:00
Linux Build Service Account
fa53ee5b15 Merge "qca-wifi: cmn_ops changes for umac-dp decoupling" 2019-12-27 20:11:08 -08:00
Adwait Nayak
1a4ad8923f qca-wifi: Enhanced channel capture UCFG framework
Framework to accumulate RCC configurations until user issues commit
command. Once commit command is issued, all the gathered configurations
are sent to FW through WMI fixed and variable TLVs.

Change-Id: I84fec42d22a3b4eceb710b72d89a7c3047fed1f6
CRs-Fixed: 2582833
2019-12-26 20:14:00 -08:00
Padma Raghunathan
5df9a9481d qca-wifi: CFR: Implementation of CFR for QCA6018 platforms
Channel Frequency Response(CFR) captures FFT bins corresponding to a PPDU
received and this is relayed to user space application along with
additional information about the PPDU gathered in the host. Usecases of
this feature include location sensing, motion detection.

Change-Id: If0da492bc1fcc0fc2b6e42339c56f9a54ee813f7
CRs-Fixed: 2541307
2019-12-26 20:13:08 -08:00
Pavankumar Nandeshwar
0759dd94d5 qca-wifi: cmn_ops changes for umac-dp decoupling
Equivalent changes in component dev data path APIs
implementation for changes in cmn_ops interface APIs.

Change-Id: I1d9c43607bfa699dded771fe9aea87f4ec5a70b9
2019-12-24 23:51:09 -08:00
Kai Chen
0c218ff57a qca-wifi: Add block ack and ack frame in tx capture feature
Block ack and ack frame is composed and sent to up
layer after a unicast packet to AP is received for
tx capture feature

Change-Id: I512519de7eaf4f524825b854b33dedc4caf90e0e
2019-12-23 12:37:53 -08:00
Linux Build Service Account
4a20b29c53 Merge "qca-wifi: support dummy frame for rts success, mprot_type" 2019-12-23 02:28:06 -08:00
Linux Build Service Account
11feee0eba Merge "qca-wifi: support 64 bits timestamp in wmi mgmt completion" 2019-12-23 02:28:05 -08:00