Commit Graph

2021 Commits

Author SHA1 Message Date
Naga
3d1c4ee4a0 qcacmn: Add support for peer create response event
Add WMI support to extract data received from fw
for WMI_PEER_CREATE_CONF_EVENTID event id.

Change-Id: Ifcf4c3e2f21be1433b96079405650a3448e0652e
CRs-Fixed: 2797202
2020-10-29 03:01:39 -07:00
Linux Build Service Account
e24ab81ff3 Merge "qca-wifi: Fix infinite loop condition in peer_update_rx_rate_stats" 2020-10-28 21:06:32 -07:00
Linux Build Service Account
1265b34293 Merge "qca-wifi: Change return type to QDF_STATUS" 2020-10-28 08:08:35 -07:00
Shiva Krishna Pittala
ec6462e41f qca-wifi: Fix infinite loop condition in peer_update_rx_rate_stats
The loop counter is not incremented in an error path where the peer rate
stats ctx is NULL. As a result, if this error path is exercised,
backpressure is seen on the monitor status ring. Fix it.

CRs-Fixed: 2798226
Change-Id: Iaffc14ad14fb29909459e395c0dfd6811c42ebc1
2020-10-28 00:01:01 -07:00
Linux Build Service Account
4207ea2ebb Merge "qca-wifi: Multi-Link Repeater Enhancements" 2020-10-27 03:07:42 -07:00
Linux Build Service Account
e67282bc26 Merge "qca-wifi: Add ADFS compile-time macros" 2020-10-25 06:36:05 -07:00
Linux Build Service Account
eefea63c00 Merge "qca-wifi: Add host definition for target thermal throttle level" 2020-10-23 12:36:45 -07:00
Vignesh U
692f5fc7ee qca-wifi: Add ADFS compile-time macros
For a 16-MB profile, while insmoding "umac.ko" unknown symbol error for
function "dfs_translate_radar_params_for_agile_chan" is seen.

The actual definition of function
"dfs_translate_radar_params_for_agile_chan" is present in the
dfs_zero_cac.c which is not compiled for a 16-MB profile. Therefore,
the unknown symbol error is seen.

Add ADFS compile-time macros
QCA_SUPPORT_AGILE_DFS and QCA_SUPPORT_ADFS_RCAC to the declaration of the
ADFS specific function dfs_translate_radar_params_for_agile_chan().
As the macros are not present in 16-MB profile, the function becomes an
empty function in the zero_cac.h and definition of the function
dfs_translate_radar_params_for_agile_chan() is present (though empty)
in the umac.ko.

Change-Id: I873231c703796c4ff17ec9a15fe2df7ddde1b8dc
CRs-Fixed: 2801858
2020-10-22 20:16:51 +05:30
Linux Build Service Account
80e25722aa Merge "qca-wifi: fix mpdu_tried_ucast issue" 2020-10-21 13:06:26 -07:00
Srinivas Pitla
c83d9a7536 qca-wifi: fix mpdu_tried_ucast issue
It is found that mpdu_tried_ucast is less than last ba bitmap set,
this is leading inconsistency with mpdus[] array and failed_bitmap.

To address this, on failed_bitmap prep, if mpdu_tried_ucast is less
than last ba bit set, then mpdu_tried_ucast is updated with last ba
bit set.

CRs-Fixed: 2793967
Change-Id: I381b462d0418527dd11ca2c8ae3dc4c8d4bfdba8
2020-10-20 11:28:37 -07:00
Linux Build Service Account
25125317dd Merge "qca-wifi: Remove DA/unused code which is a part of ATF" 2020-10-20 10:08:31 -07:00
Subhranil Choudhury
b7c3f57402 qca-wifi: Multi-Link Repeater Enhancements
1. Remove the  fdb entry linear search.
2. Store the station vap pointers.
3. Add or refresh the secondary Client bridge entries
 to not make them get expired even though traffic is bypassing
 the bridge.

Change-Id: I11a7883d0437794ad8afeb24fc94d77223cf3ad3
2020-10-20 09:53:44 -07:00
Adwait Nayak
5532bbacd9 qca-wifi: Change return type to QDF_STATUS
Maintain harmony in return type as "QDF_STATUS"
for CFR related APIs.

Change-Id: I02378c9818b4282f8d874d8655bc9e2178a2479c
2020-10-19 08:17:09 -07:00
Kiran Venkatappa
619b2fa3f5 qca-wifi: Add host definition for target thermal throttle level
update extract routine to use new enum defines.

Change-Id: I50092be4fcbc014cf451ef82cc56144b87d76487
CRs-Fixed: 2800398
2020-10-17 22:40:58 +05:30
Linux Build Service Account
e24d6eed2d Merge "qca-wifi: Check for initialized tid" 2020-10-16 10:07:36 -07:00
Linux Build Service Account
c68544cb65 Merge "qca-wifi: unmap buffer before free" 2020-10-16 05:06:08 -07:00
Linux Build Service Account
4f4050f404 Merge "qca-wifi: Replace WMI_LOGE() with wmi_err()" 2020-10-16 02:10:05 -07:00
Linux Build Service Account
e2bf7969cb Merge "qca-wifi: Replace WMI_LOGD() with wmi_debug()" 2020-10-16 02:10:04 -07:00
Linux Build Service Account
ef2b8cb764 Merge "qca-wifi: WMI_LOGI() with wmi_* appropriate log level" 2020-10-16 02:10:04 -07:00
Linux Build Service Account
3ce30d000b Merge "qca-wifi: WMI_LOGP() with wmi_* appropriate log level" 2020-10-16 02:10:04 -07:00
Linux Build Service Account
8bbe4d4c54 Merge "qca-wifi: Replace WMI_LOGW() with wmi_* appropriate log level" 2020-10-15 23:38:16 -07:00
Linux Build Service Account
0f6ddc876b Merge "qca-wifi: Handle fraglist in full monitor path" 2020-10-15 21:36:16 -07:00
aloksing
6221d1ae5b qca-wifi: Replace WMI_LOGD() with wmi_debug()
Replace WMI_LOGD() with wmi_debug().

Change-Id: I01de40a278b2e3657362fca901b81ab48999102a
CRs-Fixed: 2779913
2020-10-15 06:34:09 -07:00
aloksing
2dac47ad6d qca-wifi: Replace WMI_LOGE() with wmi_err()
Replace WMI_LOGE() with wmi_err()

Change-Id: I2cf78a048e456923b5c5d384544ec8b332380f6d
CRs-Fixed: 2779913
2020-10-15 18:54:58 +05:30
aloksing
ce32547de4 qca-wifi: WMI_LOGI() with wmi_* appropriate log level
Replace WMI_LOGI() with  with wmi_* appropriate log level.

Change-Id: I31e488527ec250496fc1a84703198df45df3128a
CRs-Fixed: 2779913
2020-10-15 03:29:49 -07:00
aloksing
10d15a7a58 qca-wifi: Replace WMI_LOGW() with wmi_* appropriate log level
Replace WMI_LOGW() with  with wmi_* appropriate log level.

Change-Id: I6172eb9b7c5aabecad56cd1c066f1ff26ae1df8f
CRs-Fixed: 2779913
2020-10-15 03:29:41 -07:00
aloksing
22b4f80ac9 qca-wifi: WMI_LOGP() with wmi_* appropriate log level
Replace WMI_LOGP() with  with wmi_* appropriate log level.

Change-Id: I45d15cef78e35ff3fd32ec34dab267c8dd410bff
CRs-Fixed: 2779913
2020-10-15 03:26:42 -07:00
Aakanksha Doda
c8119bf49c qca-wifi: Remove DA/unused code which is a part of ATF
As part of DA code removal, remove any redundant code
related to ATF.

Change-Id: I9314d6865051cb9ac8fc1e590d3d7bacc3c5f1b0
2020-10-15 12:14:08 +05:30
Amir
418e9f663e qca-wifi: unmap buffer before free
unmap buffer before free in case of status buffer DMA not done
WAR is hit.

Change-Id: I190d6188865cd0a58ad661bad0e512191ae7e753
CRs-Fixed: 2797458
2020-10-14 23:05:50 +05:30
Manoj Ekbote
74aa631600 qca-wifi: Check for initialized tid
Add check to know if tid is still in initialized state while
delivering a ppdu with flush bit set.

Change-Id: I6f0fbbdb616ba4b6c98787d389b7bf16d6c5f165
2020-10-14 09:54:46 -07:00
Ankit Kumar
888cb7fccd qca-wifi: Handle fraglist in full monitor path
Handle fraglist in full monitor path.

Change-Id: If808c49654a62d84d60de0b3511424a43d1e7375
2020-10-14 17:57:48 +05:30
Srinivas Pitla
065a6e13f2 qca-wifi: enhance current debug print in issue scenario
The current debug print is not sufficient to look at
peer, tid. So enhanced current print

CRs-Fixed: 2794519
Change-Id: If531f1892cfc53c308b1913891a54f4a9350d02c
2020-10-13 13:51:40 -07:00
Linux Build Service Account
e25ad9bdad Merge "qca-wifi: Add support for user defined probe-resp retry limit" 2020-10-11 22:41:03 -07:00
Linux Build Service Account
2ffb194f4f Merge "qca-wifi: Remove the redundant radar on Agile Detector check" 2020-10-09 07:36:13 -07:00
Linux Build Service Account
77a5cbc8a8 Merge "qca-wifi: Move gpio config/output tlv to cmn code" 2020-10-08 16:36:11 -07:00
Linux Build Service Account
303a9f7a0d Merge "qca-wifi: Introduce radar param translation for 160/165Mhz Agile channel" 2020-10-08 12:06:50 -07:00
Shaakir Mohamed
0fd47e6106 qca-wifi: Add support for user defined probe-resp retry limit
Add support for user defined probe-resp retry limit.

Change-Id: I09b6b2cc1f5e2750238646a776d8c32ed2ee09a1
CRs-Fixed: 2790345
2020-10-07 13:15:58 -07:00
Linux Build Service Account
53567b4c99 Merge "qca-wifi: Use agile width to calculate desired RCAC channel" 2020-10-07 07:08:12 -07:00
Linux Build Service Account
3f7ed7f88c Merge "qca-wifi: MSCS module implementation" 2020-10-05 18:35:14 -07:00
Mainak Sen
29417fc9d2 qca-wifi: MSCS module implementation
Implement a new driver module for Mirrored stream classification
signalling(MSCS) feature. This module which register to NSS MSCS client
to provide callback for peer lookup and priority update based on MSCS
parameters associated with a peer

Change-Id: I7aa465446cb22f0198459193fa04dd66fc903cc7
2020-10-02 17:35:09 +05:30
Linux Build Service Account
33a105ae33 Merge "qca-wifi: Remove DA-Specific 'C' source files in DFS" 2020-10-02 04:05:58 -07:00
Linux Build Service Account
7c09ce8259 Merge "qca-wifi: Fix tx capture mpdu tried less than acked mpdu" 2020-10-01 19:37:18 -07:00
Vignesh U
75d8aabc74 qca-wifi: Remove the redundant radar on Agile Detector check
The following sanity check for processing the radar on agile channel
(dfs_process_radar_ind_on_agile_chan) is already present in the caller,
(dfs_process_radar_ind) where the radar action is classified based on
radar found params:
i) is dfs agile precac enabled?
ii) is rcac enabled?
iii) is a valid agile channel configured?

These checks are not enough when radar is detected on Zero Wait DFS
channel. But this is taken care in the parent function

Remove these redundant checks as they are already present in the parent
function flow dfs_is_radarsource_agile().

CRs-Fixed: 2764058
Change-Id: Ia67d6ee28f5f04e149c1049bd5642f04e6a4bc70
2020-10-01 15:21:21 +05:30
Linux Build Service Account
808ac77447 Merge "qca-wifi: Relay failure status to userspace" 2020-09-30 21:06:24 -07:00
Vignesh Mohan
a556ec02b6 qca-wifi: Use agile width to calculate desired RCAC channel
If user configured frequency is provided for RCAC, instead of using
the current channel width to determine the channel, use the mapped
agile channel width instead. This is because, incases of the current
channel width being 165MHz for example, agile channel can only be
160MHz (indicated by the agile_chwidth variable).

Change-Id: I4634a4baf25efa3341ed0232ccf5c55b300bbbe7
2020-10-01 05:04:18 +05:30
Vignesh U
3a9b82683c qca-wifi: Introduce radar param translation for 160/165Mhz Agile channel
The radar parameter received from FW for Pine is based on the 160MHz
channel center. In Host a preprocessing to convert this radar parameters
based on 160MHz channel center into parameters based on 80MHz channel
center is done. This translation is present for the current channel but is
absent for the agile channel.

Also, for the 165MHz agile channel, the radar parameters are always sent
to host based on the left 80MHz center frequency 5690MHz.

Introduce a radar parameter translation function for 160/165MHz Agile
channel such that

1) If the radar hit frequency is left to the center of 160MHz center
frequency, then the segment id should be primary segment. The offset
frequeny that was with respect to the 160MHz channel center should be
converted into offset frequency based on the left 80MHz center by adding
40MHz on the offset received.

2) If the radar hit frequency is right to the center of 160MHz center
frequency, then the segment id should besecondary segment. The offset
frequeny that was with respect to the 160MHz channel center should be
converted offset frequency based on the right 80MHz center by subtracting
40MHz on the offset received.

3) If the radar hit frequency is on the left 80MHz segment of the
165MHz channel then do nothing because, the radar paramters are sent by
FW with respect to the left 80MHz center frequency of the 165MHz channel.

4) If the radar hit frequency is on the right 80MHz segment of the
165MHz channel then the segment id should be secondary segment id and the
offset should be converted to be based on the right 80MHz center frequency
5775MHz by subtracting 85MHz.

Change-Id: I47471e65c5831c0aa9c2c36338021a55d4dc7c7b
CRs-Fixed: 2784515
2020-09-30 12:59:28 +05:30
Suresh Velagapudi
92801f2593 qca-wifi: Remove DA-Specific 'C' source files in DFS
Remove DA-Specific 'C' source files in DFS feature.

Change-Id: Ie9bfdf891fcc6a7069b7c1167def51f193a2d5f4
2020-09-28 23:23:35 -07:00
nobelj
3b78c64a1c qca-wifi: Fix tx capture mpdu tried less than acked mpdu
tx capture does not capture mpdu, which missed due to
block ack failure. with subsequent retries it recieve block ack for
all the previous transmitted mpdu in a ppdu was handled.

Change-Id: I23d1bfd7ba05edaec934379fbc036b164a45ceb6
2020-09-28 12:11:08 -07:00
Linux Build Service Account
c54ea45ed5 Merge "qca-wifi: SKB Frag changes for TX Capture" 2020-09-25 06:02:05 -07:00
nobelj
61e1b5c9b1 qca-wifi: Add fix for user after free
user field is updated before allocated memory is free.

Change-Id: I120cb4abab1a010b38dddc8aedc710b77671ac58
2020-09-24 22:28:50 -07:00