Gráfico de commits

1840 Commits

Autor SHA1 Mensaje Fecha
Linux Build Service Account
1e7f66ac00 Merge "qca-wifi: Correcting the Stats decrement logic" 2020-08-11 21:37:37 -07:00
Linux Build Service Account
9d9f55737e Merge "qcawifi: Process full mon via nr_frags" 2020-08-11 19:37:03 -07:00
Linux Build Service Account
ebb3f586b5 Merge "qca-wifi: Add support to set DCS wideband policy" 2020-08-11 11:06:10 -07:00
Linux Build Service Account
d8c0ea1da3 Merge "qca-wifi: Define radar found action on agile channel" 2020-08-11 06:43:00 -07:00
Aditya Sathish
a0e771746c qca-wifi: Add support to set DCS wideband policy
Add support to set the DCS wideband policy through
cfg80211tool.

CRs-Fixed: 2750494
Change-Id: If6c8b5a32f9af6f41adb752b19a2a3d7b0221a65
2020-08-11 01:48:00 -07:00
Ankit Kumar
3976ff66ae qca-wifi: Correcting the Stats decrement logic
Correcting cp stats macro to call decrement api to do
decrement stats operation.

Change-Id: I3202ed20974cadde6dce27e2cf5ba187ec538ce0
2020-08-11 14:07:28 +05:30
Linux Build Service Account
cef47fb1c8 Merge "qca-wifi: Add cmd support to MSCS Procedures" 2020-08-07 14:36:07 -07:00
Linux Build Service Account
41523bb610 Merge "qca-wifi: use dp_vdev_bss_peer_get API to get bss peer" 2020-08-07 04:36:26 -07:00
Vignesh U
84f43ea5df qca-wifi: Define radar found action on agile channel
The radar found action on a agile channel is a WIN specific action. It was
combined with the current channel radar detection making the function huge
and difficult to read.

Separate the WIN specific agile radar action and define in it as WIN
specific.

Change-Id: I79ed61ae80a2870dff9775b9435069c50584ca83
CRs-fixed: 2738015
2020-08-07 02:30:48 -07:00
Ankit Kumar
f7e514b4df qcawifi: Process full mon via nr_frags
process mon destination buffer via nr_frags if
RX_MON_MEM_FRAG is enabled.

Change-Id: I3c191a13a3a3be01ad4205702f5dcaebe02f9270
CRs-Fixed: 2741793
2020-08-07 01:48:17 -07:00
Linux Build Service Account
2c3cc885c5 Merge "qca-wifi-oss: Fix compilation for 16M flash profile" 2020-08-06 19:07:51 -07:00
Linux Build Service Account
cc33811c9f Merge "qca-wifi-oss: Adapt Agile DFS for Wideband (5G-6G)" 2020-08-06 15:06:54 -07:00
Ramanathan Choodamani
7c51af3006 qca-wifi: Add cmd support to MSCS Procedures
Adds support to enable/disable Mirrored Streaming
Classification Service Procedure in vap level.

Change-Id: I2e27f0be294e1792ba9a6ad7a0354515c5ee6cc0
CRs-Fixed: 2687735
2020-08-06 11:04:39 -07:00
Ananya Barat
20960a62c4 qca-wifi-oss: Adapt Agile DFS for Wideband (5G-6G)
In case of a current channel being a 5GHz DFS channel, a channel change
may be triggered by a radar detection. The next channel is automatically
selected by a random channel selection algorithm in this case. However,
if the current channel is a 6GHz channel and we need to switch to a 5GHz
channel then 5GHz channel should be provided a user or another channel
selection algorithm. At the time, when the device is starting its
operation on a 6GHz channel , the next 5GHz channel that a user
(or another another channel selection algorithm) is going to select
is unknown. Therefore, the probability that the next channel selected
by a user (or another channel selection algorithm) will match the RCAC
channel returned by random channel selection, is very low. Therefore,
do not select a random channel for RCAC if the current operating channel
is a 6G channel for now.

Change-Id: I9aef64cea1d442fc31b2314da08baba7769650f2 has the following
change :
The macro WLAN_IS_CHAN_MODE_x(_c) checked if mode is 'x' as well as if
the channel was a 5G channel. However with wideband changes this macro
will return true if mode is 'x' for both 5G and 6G channels. Hence adding
a separate 5G check for functions where the channel must be a 5G channel.

With WLAN_IS_CHAN_MODE_x(_c) now a 6G channel will pass
the checks in dfs_is_precac_done which would cause regression. Hence a
5G check has been added to prevent this.

Change-Id: Iee5e965f0bc99565cb5ea77d88998d5530f24153
2020-08-06 03:57:52 -07:00
Linux Build Service Account
3266f2044c Merge "qca-wifi: Introduce enums for DFS postNOL frequency and mode" 2020-08-06 03:36:43 -07:00
Ananya Barat
9df9627c7e qca-wifi-oss: Fix compilation for 16M flash profile
For the 16M low memory profile a few feature macros were disabled which
led to unavailability of a few APIs.

Add empty definitions for these APIs when the corresponding feature
macros are disabled.

Change-Id: I1f7790196ae8383eac40f5869992fd06ede3e5dc
2020-08-06 02:51:38 -07:00
Chaithanya Garrepalli
a578134de9 qca-wifi: use dp_vdev_bss_peer_get API to get bss peer
Use dp_vdev_bss_peer_get to get the BSS peer instead of
using backpointer in vdev

Change-Id: Ic824b4a2bab044fb4f729bf507ac74f3a7e973a9
2020-08-06 10:33:53 +05:30
Linux Build Service Account
45a75f3aa5 Merge "qca-wifi: FR47702 TWT stats, add TWT stats in control path stats" 2020-08-05 06:06:20 -07:00
Vignesh Mohan
42c8cdafef qca-wifi: Introduce enums for DFS postNOL frequency and mode
Introduce enums for set DFS postNOL frequency and mode and add
the corresponding members in the set and get command structure.

Change-Id: I3e25ee3aaf0c165a2923667a3210f2cc8af0af4a
2020-08-05 16:16:20 +05:30
Linux Build Service Account
b39ac13e75 Merge "qca-wifi-oss: Design a unified SM for Agile PreCAC and RCAC" 2020-08-04 08:07:37 -07:00
Linux Build Service Account
e9e33d66c2 Merge "qca-wifi: Add a command to enable additional triplets" 2020-08-04 06:07:32 -07:00
Linux Build Service Account
cad01dda7d Merge "qca-wifi: add fix to send ppdu in sequential" 2020-08-03 18:40:24 -07:00
Hariharan Basuthkar
5173da1af5 qca-wifi: Add a command to enable additional triplets
The requirement is to provide a user configurable command to enable 6G
additional operating triplets within the Country IE.

The user can set the maximum bandwidth by applying the following
algorithm:

1) To enable only opclass 131, set the maximum bandwidth value as 20.
2) To enable upto opclass 132, set the maximum bandwidth value as 40.
3) To enable upto opclass 133, set the maximum bandwidth value as 80.
4) To enable upto opclass 134, set the maximum bandwidth value as 160.

The above requirement is configurable via a cfg80211tool
command:
cfg80211tool wifix enable_additional_triplets <max_bw value>

Command to fetch the max_bw set:
cfg80211tool wifix g_enable_additional_triplets.

Change-Id: I38d60afa5c6fd888b418eec29448bca661554659
CRs-Fixed: 2731637
2020-08-03 05:35:12 -07:00
Linux Build Service Account
8ca90b589a Merge "qca-wifi: Send HMWDS ast add status WDI event" 2020-08-03 02:05:18 -07:00
Linux Build Service Account
927b392754 Merge "qca-wifi: Rename the RCAC State Machine events, states & APIs" 2020-08-02 13:05:24 -07:00
Linux Build Service Account
9c522d5141 Merge "qca-wifi: Avoid duplication of ppdu_id for full monitor mode" 2020-08-02 08:08:37 -07:00
Ananya Barat
9fe151a881 qca-wifi-oss: Design a unified SM for Agile PreCAC and RCAC
Following is the list of changes :-

1. Add an API dfs_agile_precac_cleanup to reset all dfs variables
   while going from running to init state.
2. Add a parameter is_chan_found to dfs_prepare_agile_precac_chan and
   make it true if a channel is available for PrCAC/RCAC.
3. Post event done to Agile SM when firmware returns ocac complete for
   a particular agile channel.
4. Post event done if preCAC timer expires from driver for a particular
   agile channel.
5. Remove the zero second timer mechanism of starting of Agile PreCAC,
   instead regulate it completely using the Agile SM.
6. Add API dfs_is_agile_cac_enabled which checks if either PreCAC/RCAC
   is enabled. Events are not posted to the Agile SM if none of these
   are enabled.
7. Add API dfs_abort_agile_precac used to send abort to F/W for that
   specific DFS index.
8. Add API dfs_init_agile_start_evt_handler to handle the start event in
   init state of Agile SM. This checks if a channel is available for
   PreCAC/RCAC.
9. In init and running state of the SM handle events for both PreCAC and
   RCAC, while complete state is for RCAC alone.

10. Following is the algorithm implemented in the  Agile SM :

   The Agile SM is per psoc, create it when the psoc is created.
				|
   On receiving the VAP start resp, send a start event to the SM in
   init state. In the start event handler check if a PreCAC/RCAC channel
   is available and if found configure the agile channel params and send
   a WMI to F/W.
				|
   A OCAC complete is received on completion of CAC by F/W or the host
   timer might expire. In either case mark the channel as CAC done.
   Check if interCAC was running and the channel is the des chan, if so
   a primary channel change is automatically triggered.
				|
   In the event of mode switch/scan start/VAP down/primary channel change
   while PreCAC is running a stop event is received. Clear all dfs
   structures and go to init state.
			        |
   On receiving a radar in the Agile channel, go to the init state and
   set event as start. Radar in primary channel is taken care of by
   ensuing VAP down up.
				|
   When no other channels are pending PreCAC, clean all dfs structures
   and remain in the init state. PreCAC uses only init and running
   states of the SM.

Change-Id: I231c79d381c7c3e192bea8ebff1ee6b5dc4a3cfa
2020-08-02 10:20:30 +05:30
Ananya Barat
490187bdcd qca-wifi: Rename the RCAC State Machine events, states & APIs
Both (ETSI) PreCAC and RCAC are going to use use the same state
machine. The state machine drives the Agile engine and not very specific
to RCAC or PreCAC, therefore let the state machine be called agile state
machine and change the names of all the associated variables accordingly.

In this preparatory change, modify names of all APIs, states and events
to make them common to Agile RCAC and Agile PreCAC

Change-Id: I83835e0295bc97e1099c0e01fc6b2fce62437872
2020-08-01 15:36:55 +05:30
Jeevan Kukkalli
2ddb03c7cb qca-wifi: Send HMWDS ast add status WDI event
Function to notify HMWDS ast add status to upper layers via
newly added WDI event WDI_EVENT_HMWDS_AST_ADD_STATUS

Change-Id: Ib6fad7a48425ce7de16d94bb401af0c428c8e556
CRs-Fixed: 2745460
2020-07-31 18:53:39 +05:30
Amir
5312b6e1e6 qca-wifi: Avoid duplication of ppdu_id for full monitor mode
While monitor ring processing, do not assign ppdu_id to
pdev->com_info.ppdu_id in order to avoid duplication at HAL layer
processing

Change-Id: I2ab8e955bba7494c2fca45d8be9dbf2a5eb8c4bc
CRs-Fixed: 2740395
2020-07-30 14:28:03 +05:30
Linux Build Service Account
d17b128635 Merge "qca-wifi: Fix channel sync issue in RESTART sequence" 2020-07-30 01:11:04 -07:00
Linux Build Service Account
94f663adac Merge "qca-wifi: Multi-Link Fast-lane switch fix" 2020-07-29 04:06:28 -07:00
nobelj
f1dd0b06ed qca-wifi: add fix to send ppdu in sequential
add support to send ppdu info in sequential ordered

Change-Id: I5ca9a7e8d8ca9d18712bce811676cbb1fb485a1e
2020-07-28 19:42:51 -07:00
Srinivas Pitla
a985c9974e qca-wifi: Fix channel sync issue in RESTART sequence
If START request is deferred due to RESTART pending logic, in few cases
it is leading to configuring two channels to FW.

This change checks desired channel of START req deferred VDEVs and updates
the desired channel with RESTART VDEV's desired channel

Change-Id: Ic69c10c08fd4d83aafcab97a71ce906564ab51f6
CRs-Fixed: 2713931
2020-07-28 14:59:55 -07:00
Linux Build Service Account
d8fbb4ff60 Merge "qca-wifi: Avoid processing of PPDU USER multiple times in Tx capture" 2020-07-28 14:37:33 -07:00
Subhranil Choudhury
ac9c2d3346 qca-wifi: Multi-Link Fast-lane switch fix
The change is to take care of primary radio setting
when STA/AP vaps of fast-lane radios switch.

Change-Id: Iee6815a73f5e95e48887e3dc683ede1d2b2091c7
2020-07-28 13:25:01 -07:00
nwzhao
2df9df50d1 qca-wifi: FR47702 TWT stats, add TWT stats in control path stats
Add TWT stats in control path stats

Change-Id: If41c13c4d11cf237bfd58a74d79326e32ed609be
CRs-Fixed: 2609943
2020-07-27 20:58:17 -07:00
Linux Build Service Account
fba80373cc Merge "qca-wifi: Fix tx capture tid init issues" 2020-07-27 13:37:05 -07:00
Linux Build Service Account
039426874a Merge "qca-wifi: Add 80p80_enabled flag while finding RCAC channel" 2020-07-27 13:37:04 -07:00
Linux Build Service Account
c4aaaef829 Merge "qca-wifi: Memory optimization for PPDU stats" 2020-07-26 23:49:36 -07:00
Linux Build Service Account
1a240b4b61 Merge "qca-wifi: Do not add peer to vdev multipass list" 2020-07-26 09:36:08 -07:00
Amir
faed50508a qca-wifi: Do not add peer to vdev multipass list
Do not add peer to vdev multipass list if it is already part of
vdev list

Change-Id: Ifa61cd49a9fd5a84fc751782673ba7afeaa2f00f
CRs-Fixed: 2716723
2020-07-26 13:15:53 +05:30
Linux Build Service Account
131969a76c Merge "qca-wifi: Modify rawsim_debug to support debug levels" 2020-07-25 11:14:06 -07:00
Linux Build Service Account
05984e7f5f Merge "qca-wifi: Remove references to CHAN_NUM_API" 2020-07-25 04:37:10 -07:00
Shwetha G K
0e164ad61f qca-wifi: Modify rawsim_debug to support debug levels
Modify rawsim_debug command to support levels of rawmode
simulation. level 0: Disable logging 1:Header logging 2:full
packet logging. Also add encap and decap frame count support.

Change-Id: Ia24994ecaf14da1fa1c303b69278fad27c18c75e
2020-07-25 10:41:55 +05:30
Linux Build Service Account
e9537e9a2a Merge "qca-wifi: Enable ATF stats feature commands" 2020-07-24 08:06:49 -07:00
Vignesh Mohan
8b5ce9a790 qca-wifi: Add 80p80_enabled flag while finding RCAC channel
While finding RCAC frequency, if you're current bandwidth is 165MHz
(pine 80p80MHz), add 80p80_enabled flag for Rolling CAC random
channel selection, which allows the channel selection logic to
fallback to 160MHz bandwidth and find a channel.

CRs-Fixed: 2738917
Change-Id: I70add1b2a3c3252b1bd6bf99cffc9b9727be4f56
2020-07-24 00:13:30 -07:00
Linux Build Service Account
367318a930 Merge "qcawifi: resolve issue on updating protocol tag." 2020-07-23 23:39:35 -07:00
Manoj Ekbote
2d96374ca3 qca-wifi: Memory optimization for PPDU stats
Currently, per-user information in Tx PPDU completion is allocated for
37 users though FW may send information for fewer number of users. In
new scheme, FW provides number of users in USERS_INFO TLV and host can
allocate the per-user struct based on this number. This can save memory
while processing each completion message.
Make related changes in tx capture files to use pointer instead of fixed
size member.

CRs-Fixed: 2730933
Change-Id: I8709665a481d64dc4ab086ce9b27e8837c38b53f
2020-07-23 23:21:21 -07:00
Subrat Mishra
8c9a192cd4 qca-wifi: Enable ATF stats feature commands
Enable ATF stats fearure commands and remove get_atf_stats.
Get ATF Stats command will be added as IOCTL command to use in
wlanconfig.

Change-Id: Ib029abf5401d9002151bbaa9eef1c199df3daa0c
2020-07-23 03:28:59 -07:00