Grafik Komit

2126 Melakukan

Penulis SHA1 Pesan Tanggal
phadiman
ad27a51809 qca-wifi: Host Static Memory Optimization (in NSS offload mode)
Low memory profiles like 256M and 16M profiles support
only NSS Wi-Fi offload mode and HOST data path APIs are
not used.

Disable HOST data path APIs which are not used in both
NSS Wi-Fi offload mode and in HOST mode (in NSS offload mode)

Change-Id: I44bcbf65771c131a839fb13906e9bbd59fd8545b
2020-12-13 23:29:10 +05:30
Vijay Krishnan
48c59f9c03 qca-wifi: Move QCA_SUPPORT_DFS_CHAN_POSTNOL to WIN
The macro QCA_SUPPORT_DFS_CHAN_POSTNOL is specific to WIN alone.
Therefore move the macro QCA_SUPPORT_DFS_CHAN_POSTNOL and
associated code from common-code to Component dev repository.

CRs-Fixed: 2829535
Change-Id: I208a499cba1912ddd06c2b43dfcd9fc78732dac9
2020-12-12 18:13:37 -08:00
Vijay Krishnan
d3dc1a400d qca-wifi: Move DFS_BANGRADAR from common code to WIN code
Bangradar is used to simulate actual radar. For partial-offlload the
simulation happens within the host itself. For full-offload a WMI
command is sent to the FW and it responds with radar found event.

CRs-Fixed: 2829436
Change-Id: I5a2c7e50df2ee06d236e45a47608c9c53f57ba99
2020-12-12 18:11:24 -08:00
Linux Build Service Account
220d421f90 Merge "qca-wifi: Replace the blacklist manager enum" 2020-12-12 01:36:49 -08:00
Linux Build Service Account
28f7811391 Merge "qca-wifi: Add cfg80211tool support to print CM SM history" 2020-12-11 05:06:54 -08:00
nobelj
968aa5d1a5 qca-wifi: add fix for peer mismatch and xretry mpdu
added fix for below issue

peer derived from peer_id for a radio return peer
from different radio which cause corruption in the queue

current we store xretry mpdu queue to ppdu desc user
which live for short time. added fix to use
xretry mpdu queue from peer user.

Change-Id: I320e3aae9f3df25aff5a6769acc4c037f40ced5c
2020-12-11 02:03:36 -08:00
Santosh Anbu
1c6b4c25cf qca-wifi: Replace the blacklist manager enum
With changes in the enum definition due to introduction of force
rejecting a candidate, replace the blacklist manager return value
to force removal

Change-Id: I3c7d77fd541ff4eb164dc2acb430eb182d5a0eb8
2020-12-10 23:06:12 -08:00
Shreedhar Parande
2a6d9d7bfa qca-wifi: Enhancement of auto channel zerowait using RCAC
If user configures DFS channel, use intermediate channel to
bring up VAPs. Parallely start RCAC on configured DFS channel.
Once minimal RCAC run is done on configured RCAC channel, switch
channel from intermediate channel to DFS channel using CSA.
When user configures new channel using iwconfig, start the RCAC
state machine if newly configured channel is DFS by staying in
current channel until RCAC minimal run is complete on newly
configured DFS channel. Once the minimal RCAC is complete,
switch to the user configured channel using CSA.

Change-Id: I4a54344fddeb49534a78d70a377a6393d26140d6
2020-12-09 00:54:24 -08:00
Shashikala Prabhu
b122b5b3e3 qca-wifi: Copy RTT host-FW common structures to host
Copy RTT Host-Firmware common structures to host file.

Change-Id: If18576ac226ce333379ad06ec30a2d45525e856a
CRs-Fixed: 2832113
2020-12-07 19:13:48 +05:30
nobelj
f86496baad qca-wifi: add fix to use peer id from tx tid
During peer unmap handler peer id is set to invalid peer
but is not deleted as reference is held.
On excess retries, peer id is reference from peer which is inactive
for a ppdu descriptor leading to assert.

added fix to use peer id from tx tid.

Change-Id: I058dec46138ebc10f8d97eb0145458737149309c
2020-12-05 22:18:22 -08:00
Linux Build Service Account
3d9d00c3aa Merge "qca-wifi: Deliver PreCAC events to the user space" 2020-12-05 07:37:13 -08:00
nobelj
be22a25dba qca-wifi: Modify tx capture bottom half to single thread
Modify tx capture work queue to single thread and added
more debug print in assert case.

Change-Id: If6546240984f4d2142089f06a8323b481d319623
2020-12-04 14:10:56 -08:00
Vignesh U
3dc03f2b08 qca-wifi: Deliver PreCAC events to the user space
Deliver the PreCAC event PRECAC_STARTED when the zero cac timer and
the ADFS timer are started.

Deliver the PreCAC event PRECAC_COMPLETED when the dfs channels are
marked as PreCAC Done in the PreCAC tree.

Change-Id: I47b2ab6914df0bdaad7d426a88ae05b65155eeb0
CRs-Fixed: 2823532
2020-12-03 14:51:56 +05:30
Linux Build Service Account
41d6602fa6 Merge "qca-wifi: Move QCA_DFS_RCSA_SUPPORT macro to component-dev" 2020-12-02 21:08:42 -08:00
Linux Build Service Account
9fc3cab1a6 Merge "qca-wifi: Split dfs_zero_cac.c into multiple files" 2020-12-02 21:08:41 -08:00
Vijay Krishnan
7a27a3dc97 qca-wifi: Move QCA_DFS_RCSA_SUPPORT macro to component-dev
The macro QCA_DFS_RCSA_SUPPORT is WIN specific. Hence moving the macro
and associated code to a new file named dfs_rcsa.c to the component-dev
git repository.

CRs-Fixed: 2822597
Change-Id: Ie99a62c934937c5ff7bf528ecdc37eb7efdb6b50
2020-12-01 15:23:03 +05:30
Vijay Krishnan
6ee85bd7d4 qca-wifi: Split dfs_zero_cac.c into multiple files
To enhance code-readability, split dfs_zero_cac.c file into multiple
smaller and logically coherent files. The new files are:
dfs_agile_sm.c, dfs_precac_list.c, dfs_precac_forest.h

CRs-Fixed: 2822588
Change-Id: If3e599cc3d895b3fbc6b114de6b69dd3afff3b6f
2020-12-01 15:22:50 +05:30
Shashikala Prabhu
f7e0de5282 qca-wifi: Move CSA extract API to cmndev
Move CSA extract API to common code.

Change-Id: I27925f3dd21a33cf36ff6fd3bd1b836ac950c794
CRs-Fixed: 2826991
2020-11-30 22:11:22 -08:00
Linux Build Service Account
2b8a916ce6 Merge "qca-wifi: Introduce regulatory APIs to access channel information" 2020-11-30 13:11:07 -08:00
Linux Build Service Account
144e8d38be Merge "qca-wifi: Initialize user retry mpdu queue" 2020-11-30 10:41:39 -08:00
Mainak Sen
79f0560140 qca-wifi: Correct CLI string for tx mode select
Correct cfg80211 CLI string
Change-Id: I81007d20e13d61be3d5207543807b70a953ee628
2020-11-28 19:44:14 +05:30
Manoj Ekbote
1328ea0195 qca-wifi: Initialize user retry mpdu queue
Intialize the retry mpdu queue and add debug prints
to get more useful info

Change-Id: I7dda9d6ddf6e39531911d2e7340c67bb67ac865a
2020-11-27 08:50:53 -08:00
Linux Build Service Account
e8d6678014 Merge "qca-wifi: WMI support for Tx Mode Select" 2020-11-27 07:10:17 -08:00
Vignesh Mohan
a9b8585838 qca-wifi: Introduce regulatory APIs to access channel information
As part of the componentization of channel lists across WIN
components, the existing version of channel list in WIN umac is
removed. Introduce APIs in the regulatory that provide the
required information directly from the regulatory
channel lists.

Introduce the following APIs:
1. wlan_reg_get_txpow_ant_gain
    To get the txpower and antenna gain specified in the regulatory,
    for a given channel.
2. wlan_reg_get_chan_flags
    To get the channel flags (if channel DFS for example), from
    regulatory for the given channel.
3. wlan_reg_get_max_phymode_and_chwidth
    To get the maximum 80211 mode and channel width supported
    by the channel in the given regulatory.
4. wlan_reg_is_phymode_chwidth_allowed
    To check if the given 80211 mode and channel width is supported
    by the channel in the given regulatory.
5. reg_update_max_phymode_chwidth_for_pdev
    To update the maximum 80211 mode and channel width for the
    regulatory, inside regulatory object.
6. reg_modify_chan_list_for_max_chwidth
    Update the regulatory channel list with maximum bandwidth
    for each channel based on the availability of it's
    adjacent channels.

Change-Id: Idb390c10d8901d9e21d4642481168704d7e36333
2020-11-26 14:37:59 +05:30
Mainak Sen
6c990c0cbf qca-wifi: WMI support for Tx Mode Select
When MSCS feature is enabled, Host sends WMI command to
FW to enable Tx Mode switch

Change-Id: Ida559f8972ef8de609578c0e9aa3016116e8a46a
2020-11-25 12:28:04 +05:30
Shashikala Prabhu
68adb6aa00 qca-wifi: Pass vdev_id to FW as part of CHAN_WIDTH_SWITCH command
Populate vdev_id and set vdev_id is valid in WMI_PEER_CHAN_WIDTH_SWITCH_CMDID.

Change-Id: I6c92a595768f0aa8c5f221688d2ceac9c7800329
CRs-Fixed: 2812110
2020-11-24 02:42:40 -08:00
Himanshu Batra
bcb1b4ca77 qca-wifi: Add cfg80211tool support to print CM SM history
Add cfg80211tool support to print CM SM history

Change-Id: I1afc80febce0de306699fcf8d9bebe9aad972285
2020-11-24 09:55:24 +05:30
Linux Build Service Account
0dbb451fca Merge "qca-wifi: Add check for FW generated action frames in tx capture" 2020-11-22 22:46:42 -08:00
Linux Build Service Account
b98854c9fc Merge "qca-wifi: Set threshold for WMI diag event queue length" 2020-11-19 20:37:13 -08:00
Padma Raghunathan
675a9a87a8 qca-wifi: Set threshold for WMI diag event queue length
Limit DIAG queue length to avoid memory lockup.

In use-cases where all the cores are busy executing interrupt
handlers and tasklets, work/processes might starve.

To avoid memory being locked up in wmi buf queue which is processed
in work ctxt, it is essential to limit the queue length.

Since highest proportion of the WMI events processed in work ctxt
are FW diag events, to avoid memory lock up, drop FW diag events
when queue length threshold is reached.

Change-Id: I1982eff5bea6b49c0e0b0987c439d2b7af04922e
CRs-Fixed: 2785768
2020-11-19 03:38:52 -08:00
Linux Build Service Account
9e984e1b34 Merge "qca-wifi: no backhaul packet to bridge" 2020-11-19 02:37:49 -08:00
Christopher Chopp
ea10246813 qca-wifi: Add check for FW generated action frames in tx capture
Extend the current check for action frames in tx capture
to include more types of FW generated action frames.
This change adds a generic function to check where action
frames are generated that is easily extended to account
for more types in the future.

Change-Id: I23bb37c5a81b02d2c095060bac909298d1b2283f
CRs-Fixed: 2807802
2020-11-17 10:29:18 -08:00
Nitin Shetty
ba26b63e5b qca-wifi: no backhaul packet to bridge
send received packet to bridge if no backhaul is
enabled for the radio

Change-Id: I07cdf10223e868fe2692efde9909c4c99a3e0fd9
2020-11-16 21:32:55 +05:30
Linux Build Service Account
8773c8c4ba Merge "qca-wifi: Add support for 5-7 channel switch with mode compatibility" 2020-11-16 01:39:35 -08:00
Linux Build Service Account
e569508375 Merge "qca-wifi: Add counter for 11k/v action frames" 2020-11-16 01:39:34 -08:00
Linux Build Service Account
f05788e968 Merge "qca-wifi: Pass 11k/v action frames to Hostapd" 2020-11-16 01:39:33 -08:00
Gyanranjan Hazarika
b0ebda8504 qca-wifi: Add support for 5-7 channel switch with mode compatibility
Add command support to meet the customer use case for switching
channel from 5Ghz to 6Ghz in wideband radio. The switch should
happen conforming to target-band multi-bss mode requirement which
is EMA in 6Ghz

Change-Id: Id55577eb7d0b3424e3b07bcfec054ce9a6556c26
2020-11-13 02:14:24 -08:00
Linux Build Service Account
36b5c09b3b Merge "qca-wifi: Add sens_level cfg80211tool support" 2020-11-12 10:06:47 -08:00
Linux Build Service Account
96ff74b49e Merge "qca-wifi: Disable radar detection after radar found on precac chan" 2020-11-11 01:11:24 -08:00
Srinivas Pitla
4d05abaf4a qca-wifi: fix issue in mpdu_tried_ucast WAR
The earlier WAR was not handling a corner case, where
ba_size equal to mpdu_tried_ucast -1.

This fix updates the check to handle it.

CRs-Fixed: 2813082
Change-Id: Ib69f8232e40ee31bc4a4a2b35ec9e8917195d123
2020-11-09 09:25:55 -08:00
Vignesh U
b8e1892a63 qca-wifi: Disable radar detection after radar found on precac chan
When radar is detected on a zero-wait-precac channel, the precac channel
changes but the phyerror buffers for the previous precac channel keep
coming, affecting the newly configured precac channel and creating false
detects.

Consider, a Cascade AP operating in home channel 36VHT80 and the precac
channel is 52VHT80. When the radar is injected on channel 52VHT80, the
precac channel changes to the next precac channel 100VHT80 but still
continues to receive the queued phyerror buffers, causing radar detects
on channel 100VHT80(false detects with respect to channel 100VHT80).

Disable radar detection after radar got detected on the precac channel.

CRs-Fixed: 2812335
Change-Id: I1e06c53f00e596d9142f3aeb25a00b9da088538b
2020-11-07 11:56:56 +05:30
Neha Bisht
bba089a855 qca-wifi: Change log level of print to dp_info
Change log level of print from qdf_info to dp_info during
rate stats flush to avoid console flooding and backpressure issue.

Change-Id: Ic8a067f989047be1a223af83a2d6d0485dd10ebd
2020-11-06 16:42:59 +05:30
Anirban Sirkhell
73b25de419 qca-wifi: Add counter for 11k/v action frames
Add counters for 11k/v frames sent and received

Change-Id: I738846f914fcd1c84555f00a3bbac0149b0fa21e
2020-11-05 01:35:48 +05:30
Anirban Sirkhell
a646d3ba9d qca-wifi: Pass 11k/v action frames to Hostapd
Pass BTM Query, Response and Neighbor Report Request
to Hostapd if corresponding flag is enabled. By default
handling will be in driver.

Change-Id: Ic7fc1acf26329a48695b3daa40afe04c9e2040b8
2020-11-04 19:56:41 +05:30
Linux Build Service Account
aa4b3c83ee Merge "qca-wifi: Replace WMI_LOGE() with wmi_err()" 2020-11-04 05:37:02 -08:00
aloksing
b1f4cc7f8b qca-wifi: Replace WMI_LOGE() with wmi_err()
Replace WMI_LOGE() with wmi_err()

Change-Id: I875684601dde3a751ad21533f3d284f36affa553
CRs-Fixed: 2810924
2020-11-03 10:16:32 +05:30
narayan
f190983dfe qca-wifi: Add sens_level cfg80211tool support
Add support for configuring RXSOP sensitivity level
using cfg80211tool from userspace.

Change-Id: Ie181737251c73a97863ae29d7dfd34d0d43c35aa
2020-11-02 07:02:49 -08:00
Santosh Anbu
ecc59f3524 qca-wifi: Increase restart request timer to 20s
In independent repeater scenario where STA vdev takes longer for
auth/assoc, and the AP vdevs are waiting on restart request may lead
to restart timeout.

Hence increase restart timeout to 20s which is higher than auth/assoc
timeout.

Change-Id: I5d2a0859e368feda4e1c6d3824eefdbc248b9bac
2020-10-31 01:45:16 -07:00
Linux Build Service Account
2ceba179e4 Merge "qca-wifi: Add support to check NSS WiFi offload status" 2020-10-30 06:38:11 -07:00
Linux Build Service Account
7136ab5e18 Merge "qca-wifi: Add peer authorization command per vap" 2020-10-30 03:09:12 -07:00