Commit graph

22,329 commits

Author SHA1 Message Date
Liangwei Dong
006fa3ea70 qcacld-3.0: Use target BW 80Mhz for Pre CAC on 5G
At present the pre CAC is done based on original SAP's BW,
but usually the original SAP is on 2G and BW <= 40Mhz. The
requirement from user is to have higher BW on 5G. Hence, select
higher BW supported by SAP phymode to do pre CAC and move 2G
SAP to 5G pre CAC channel when pre CAC done successfully.
Also set the default MAX bw pre CAC to 80Mhz based on current user
request.

Change-Id: I3115da8eb649238da50b223c2587db96125ec813
CRs-Fixed: 2984084
2021-07-08 10:43:57 +08:00
Madan Koyyalamudi
177ca8e1a7 Release 2.0.8.20X
Release 2.0.8.20X

Change-Id: Ib5346c0da887b4673fae03b8d6f7c65ca6fd15d3
CRs-Fixed: 774533
2021-07-07 00:28:26 -07:00
Vevek Venkatesan
19e26bf064 Revert "qcacld-3.0: enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support"
This reverts the change to do the memset of SW2TCL desc consumed by
HW to zero.

Change-Id: Ie56207cf483643f6e294df23f5445ca853a75d51
CRs-Fixed: 2984818
2021-07-07 00:28:25 -07:00
Madan Koyyalamudi
0d453a86dd Release 2.0.8.20W
Release 2.0.8.20W

Change-Id: I20dafc0e5b86d1724144d053dcc3e1fc22dc13ca
CRs-Fixed: 774533
2021-07-06 22:39:26 -07:00
Deeksha Gupta
082661a585 qcacld-3.0: update the BW correctly for SAP channel_switch
In wlansap_get_csa_chanwidth_from_phymode(), update the
channel width correctly incase when SAP starts on 2.4GHz
and channel switch happens on 5GHz channel with BW 80 MHz.
Currently host modify the BW according to the original BW
20MHz is incorrect, it should be changed to 80MHz.

Update the BW correctly, it should not be limited to orig BW.

Change-Id: I9baf89d89eeb6407c7cda931b332bced38cc2154
CRs-Fixed: 2974565
2021-07-06 22:39:26 -07:00
Madan Koyyalamudi
c4eccc928c Release 2.0.8.20V
Release 2.0.8.20V

Change-Id: I89ae116b3d417b401483b8284ca1ff210f1e138f
CRs-Fixed: 774533
2021-07-06 15:02:36 -07:00
Srinivas Dasari
728f758def qcacld-3.0: Let IOT APs recover by avoiding back to back DELBA
Station sends the BA and upgrades to the next possible BA window
size upon receiving all frames successfully from the current
window. Some IOT APs go out of sync from BA window size of the
station when AP fails to receive the BA sent from station. AP
transmits the frames again with previous window sequence number
and won't be ack'ed by station hardware as BA window has already
moved ahead. So, station deletes the upgraded BA and tries
to fallback.

Ideally, AP is supposed to consider the fact that "the previous
window transmission was successful when station upgrades to next
window size". But some APs take little longer time to
recover/upgrade to next window size. Don't delete the BA
immediately and have some tolerance(3 seconds) as the previous
negotiated BA just got deleted.

Change-Id: I6b277223f02dac521316cec20bd5d958785cc2e9
CRs-Fixed: 2970714
2021-07-06 15:02:36 -07:00
Vevek Venkatesan
e0d4866db6 qcacld-3.0: add DP reason code support for send_delba
Add DP reason code support for sending DELBA request,
so protocol layer can make decisions for special cases.

Change-Id: I4eeba3513820a98a15682190e40a06ce178d9441
CRs-Fixed: 2983544
2021-07-06 15:02:31 -07:00
Madan Koyyalamudi
3c9d2e49c3 Release 2.0.8.20U
Release 2.0.8.20U

Change-Id: I39aa7d40abdffa57eacb697adf2acb2141f0f7b5
CRs-Fixed: 774533
2021-07-06 09:40:04 -07:00
Arun Kumar Khandavalli
31f0583c18 qcacld-3.0: update the new pld event for smmu fault
There is a time involved between the smmu fault initiated
and the eventual system panic. In this time there is a
possibility of the nbuf history being overwritten losing
the information on the nbuf which might has actually caused
the SMMU fault.

Set the ssmu state and dont track the nbuf's when the smmu
fault is detected.

Change-Id: Ia9f422861cbb7bde1b498d8a88967616be99bb6e
CRs-Fixed: 2960063
2021-07-06 09:40:03 -07:00
Madan Koyyalamudi
db4ed48957 Release 2.0.8.20T
Release 2.0.8.20T

Change-Id: I01825ecd3577b7e1d616a3afb4c7377a260fdc57
CRs-Fixed: 774533
2021-07-05 12:47:02 -07:00
Vevek Venkatesan
8b4d47860f qcacld-3.0: enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support
Enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support for moselle
targets.

Change-Id: I1ef8927c2af040cda67dab9347679f64a55493ac
CRs-Fixed: 2983561
2021-07-05 12:47:02 -07:00
Madan Koyyalamudi
1c3ea2f47b Release 2.0.8.20S
Release 2.0.8.20S

Change-Id: Icd1b2f7183f4badea47ead6dbbe669c5718d29ba
CRs-Fixed: 774533
2021-07-05 08:28:07 -07:00
Utkarsh Bhatnagar
67d79f2567 qcacld-3.0: Enable TDLS 11AX only if supported by FW
Don't fill the 11ax capabilities if FW doesn't support
TDLS 11AX capability.

Change-Id: I267ccaa439bb3cf17d27493172b4f324d112724b
CRs-Fixed: 2925250
2021-07-05 14:04:44 +05:30
Madan Koyyalamudi
e75b07b1b9 Release 2.0.8.20R
Release 2.0.8.20R

Change-Id: I875dac48d47ee956e6f61e08fd86d81c81002b80
CRs-Fixed: 774533
2021-07-02 21:00:59 -07:00
Abhishek Singh
b0d9a035b4 qcacld-3.0: Trigger SSR if pe session already exist for vdev
Trigger SSR if pe session already exist for vdev, i.e vdev is
not in init state during connect req.

Also Add SSR if roam command timeout.

Change-Id: I83be76215f5c4daca2429a2528f825baabed92e3
CRs-Fixed: 2982362
2021-07-02 21:00:59 -07:00
Madan Koyyalamudi
8abf35fc4f Release 2.0.8.20Q
Release 2.0.8.20Q

Change-Id: I3fdeaf40b66c48aed4f211022bb6a910bf33e5fd
CRs-Fixed: 774533
2021-07-02 18:57:04 -07:00
Jianmin Zhu
95988e54f7 qcacld-3.0: Fix connected AP wrong encryption method
After DUT STA connected 40M AP, if AP switch to 20M, DUT need update probe
rsp IE of current AP and send to upper layer, but ht info tlv length in IE
is changed by mistake for wrong ht info struct type is used, then android
can't parse ht info and following RSN IE, can't get encryption method
correctly.

Change-Id: I84eab86514601f1efb1fda792148e611c290925d
CRs-Fixed: 2977335
2021-07-02 18:57:03 -07:00
Madan Koyyalamudi
9380ca6002 Release 2.0.8.20P
Release 2.0.8.20P

Change-Id: I62e550033f8beed3c4bd1206ea5e7eef48d575ce
CRs-Fixed: 774533
2021-07-02 12:00:33 -07:00
Vevek Venkatesan
20a216bf20 qcacld-3.0: send IPA STA_CONNECT evt before set is_authenticated
Currently sending IPA STA_CONNECT evt after setting the flag
is_authenticated to true, which causes STA_CONNECT evt not sent
always, this is a propagation error as its implementation is
different than mainline, so moving it ahead.

Change-Id: I5073bae0a1a6048de2b6da44cda92c0a7259d98a
CRs-Fixed: 2983093
2021-07-02 19:54:50 +05:30
Madan Koyyalamudi
ac704e4f9c Release 2.0.8.20O
Release 2.0.8.20O

Change-Id: I657799639d5a73312d389b2a33f2cc12e39e260d
CRs-Fixed: 774533
2021-07-02 05:21:15 -07:00
Abhishek Singh
e73530cc01 qcacld-3.0: In Monitor mode use proper event for restart failure
In monitor mode in case of restart failure,
event WLAN_VDEV_SM_EV_START_REQ_FAIL is used to move the vdev SM
to init state. But this event will not be handled in
WLAN_VDEV_SS_START_RESTART_PROGRESS and thus the vdev stop/down
won't be sent for the vdev.

Use event WLAN_VDEV_SM_EV_RESTART_REQ_FAIL for restart failure
to send vdev stop/down.

Change-Id: I2db459136955b8dc2213c0251284a08a8f57aa57
CRs-Fixed: 2964875
2021-07-02 05:21:15 -07:00
Madan Koyyalamudi
a9728b4cd8 Release 2.0.8.20N
Release 2.0.8.20N

Change-Id: Ie7dc669023b43eeacbd16fab2c1e447435a77656
CRs-Fixed: 774533
2021-07-02 02:10:05 -07:00
Abhishek Singh
56172fde9c qcacld-3.0: Avoid connect try to next candidate after 20 sec
Avoid connect try to next candidate after 20 sec and thus
try to limit max connecttime to 30 sec to avoid active command
timeout.

Change-Id: I039b3d99eb77cf0148d104053c3bac86d03ad204
CRs-Fixed: 2982358
2021-07-02 02:10:05 -07:00
Madan Koyyalamudi
7d825fc5e8 Release 2.0.8.20M
Release 2.0.8.20M

Change-Id: Ia4520eb0a11b24ef80eb6ff48bd5d632f2dea672
CRs-Fixed: 774533
2021-07-02 00:31:31 -07:00
Abhishek Singh
437bf10f67 qcacld-3.0: Initiate WLAN_VDEV_SM_EV_START only in init state
Initiate WLAN_VDEV_SM_EV_START for connect only in INIT state
as if its not in init state the VDEV SM is not cleaned up, which
needs to be debugged.

Sending WLAN_VDEV_SM_EV_START can cause pe session leak if the
event is handled by VDEV SM and return success. This can eventually
lead to all the pe session in used state.

Change-Id: I8245a7985bb08b04008b4f833f9474947c1bf57b
CRs-Fixed: 2982070
2021-07-02 00:31:31 -07:00
Madan Koyyalamudi
bed6fd1be3 Release 2.0.8.20L
Release 2.0.8.20L

Change-Id: I3e14d3a64dbbde573532715bc0c169a360f533f2
CRs-Fixed: 774533
2021-07-01 15:07:17 -07:00
Yu Wang
c0950a2b39 qcacld-3.0: Add sanity check for RRM global channel list
Add sanity check for RRM global channel list to avoid
possible NULL-Pointer issue.

Change-Id: Icfbf5282304a549a0dc92889f83cb1a31dde15b2
CRs-Fixed: 2972194
2021-07-01 15:07:17 -07:00
Madan Koyyalamudi
0cb8da6eb5 Release 2.0.8.20K
Release 2.0.8.20K

Change-Id: Ice25e0f8ee042fb30e989f12c36c6a76837d4e65
CRs-Fixed: 774533
2021-07-01 04:51:10 -07:00
Surabhi Vishnoi
d1f58c14c1 qcacld-3.0: Fill the average rx rssi in rx data packets
Currently, rssi of rx data packet is not received as part of rx_tlv_hdr.
To mitigate this limitation, fill the average rx rssi received from
firmware in wmi smart monitor event which is stored in pkt_capture's
vdev_priv structure.

Change-Id: I3a1b7b766979816d6b17f05edc1c25d503edec1d
CRs-Fixed: 2958109
2021-07-01 04:51:09 -07:00
Surabhi Vishnoi
20fb5565d6 qcacld-3.0: Add function to fill rssi received from target in vdev_priv
Add function to populate the rx average rssi received from target in
pkt_capture vdev_priv structure. The rx average rssi is received in
wmi smart monitor event.

Change-Id: I9206669b418a2245bb8d53920040fddea77ce06c
CRs-Fixed: 2969242
2021-07-01 04:51:05 -07:00
Surabhi Vishnoi
c116510e34 qcacld-3.0: Register handler for wmi smart monitor event
Register handler for wmi smart monitor eventid in packet capture
mode in lithium. Currently, wmi smart monitor event provides
average rssi of last ten received data packets.

Change-Id: Ieeea5cbef328b04f139f54e7a42d52a3cf25824b
CRs-Fixed: 2969245
2021-07-01 04:51:01 -07:00
Madan Koyyalamudi
784eaa15bf Release 2.0.8.20J
Release 2.0.8.20J

Change-Id: I6916270150eabcf6fc8e05303b3670164cb4ff50
CRs-Fixed: 774533
2021-07-01 02:58:07 -07:00
Karthik Kantamneni
e99a667320 qcacld-3.0: Don't skip GRO flush for non-legacy clients
Currently GRO flush is being skipped if bus bandwidth level
is low this is resulting in rx packets to be in queue for more
time and affecting over all RTT value.

To avoid this for non legacy clients GRO flush is not being skipped
even at low throughput level.

Change-Id: I5ce64ee2bd5f332cf4db38116b1bbf400220269b
CRs-Fixed: 2978843
2021-07-01 02:58:07 -07:00
Yu Tian
8ff2467085 qcacld-3.0: use adaptive timeout value for rx thread flush
When vdev down flag is set, rx thread needs to flush the
pending frames in a fixed timeout value. Overall scheduler
timeout value is 10s, fixed timeout for each thread is 4s,
so if more than two threads timeout happens, scheduler timeout
may happen and lead to crash. Change to use adaptive timeout
for each thread to make overall threads wait time less than 10s.

Change-Id: If8acdaf1cac9d776e15d3020c8152101eae74a0c
CRs-Fixed: 2973947
2021-07-01 02:58:02 -07:00
Deeksha Gupta
90dd00b3c6 qcacld-3.0: Print all peer info for SAP TWT get_status
Currently, host prints only one peer info instead of
all peer info as part of oem_ss initiated broadcast
SAP TWT get_status command.

Add a support to print all peer info if oem_ss sends
broadcast SAP TWT get_status command.

Change-Id: I0a617f655b7a5486582cb47a4602b30514ffae88
CRs-Fixed: 2970487
2021-07-01 02:57:58 -07:00
Madan Koyyalamudi
b7f4fd5d25 Release 2.0.8.20I
Release 2.0.8.20I

Change-Id: I8dc0a36db5d038fa2c42ee8638e16d1de4a4aed4
CRs-Fixed: 774533
2021-06-30 05:01:57 -07:00
Balaji Pothunoori
7ade233f82 qcacld-3.0: tx aggr support based on firmware capability
Currently ini based tx aggr support disabled due to firmware
incompatibility.

This change is to enable ini based tx aggr support based
on firmware capability.

Change-Id: Id5d7197f18fafd926de889f9b69ca2be90497fd2
CRs-Fixed: 2859709
2021-06-30 05:01:56 -07:00
Balaji Pothunoori
f856d55f59 qcacld-3.0: revert Disable TX_AGGREGATION_SIZE ini for HSP
This reverts commit I9e49ad5218f913f116cf4472f768f572740f14df
since ini based tx aggregation is configured based on firmware
capability.

Change-Id: I54541cd282eda6606e75fa347989624a0e0fef01
CRs-Fixed: 2963280
2021-06-30 05:01:51 -07:00
Balaji Pothunoori
d14382e544 Revert "qcacld-3.0: Enable TX_AGGREGATION_SIZE_ENABLE for HST"
This reverts commit Ieca8464991a6a194d6f02b70fe4972aca288b541.

Change-Id: Iacdbafc5e7e07a3a3effc029edb4adf58a619ada
CRs-Fixed: 2963209
2021-06-30 05:01:46 -07:00
Balaji Pothunoori
6c16762820 Revert "qcacld-3.0: Fix No AMSDU/MPDU aggregation issue"
This reverts commit I0c86e74f6447f401d24660e1291abf969b1abbe6.

Change-Id: I31bea28044fbec4911f42a38be1b1b6679dd6dda
CRs-Fixed: 2963188
2021-06-30 05:01:42 -07:00
Madan Koyyalamudi
3b438929ca Release 2.0.8.20H
Release 2.0.8.20H

Change-Id: Ia78eeec1298a00e1e6dc4c2891a89e960a6b8574
CRs-Fixed: 774533
2021-06-29 22:27:08 -07:00
abhinav kumar
2ccdd34a24 qcacld-3.0: Print 5g & 6g candidate rssi threshold in kmsg
In case of WTC_BTM roam trigger reason, if FW reports rssi
threshold for 5G and 6G AP via wmi_roam_trigger_reason,
Host should print it in kmsg.

If wtc_candi_rssi_ext_present is set (1), It means fw
reports 5g and 6g candidate rssi (new firmware case).
If wtc_candi_rssi_ext_present is clear (0), It means fw
doesn’t report 5g and 6g candidate rssi (old firmware case).

Host use flag "wtc_candi_rssi_ext_present" to keep backward
compatibility.

Change-Id: Idbaac2e9d470525641c152b024b8786d262e600c
CRs-Fixed: 2965025
2021-06-29 22:27:08 -07:00
Madan Koyyalamudi
b497ae404a Release 2.0.8.20G
Release 2.0.8.20G

Change-Id: I5ae0b734cd19b835ff6e001013c5c2038bc4635a
CRs-Fixed: 774533
2021-06-29 14:59:01 -07:00
Yeshwanth Sriram Guntuka
56c4dcc971 qcacld-3.0: Do not do PN check in case of WEP security
In WEP connection, IV values used for consecutive packets
could be random and need not be monotonically increasing
or consecutive in case of fragments. This could result in
incorrect drop of fragments.

Fix is to not do PN check in case of WEP security.

Change-Id: I8bfe16f3bf68752f4279b3fae1cf485a3abc1af7
CRs-Fixed: 2977416
2021-06-29 14:59:01 -07:00
Madan Koyyalamudi
e16b4e23d2 Release 2.0.8.20F
Release 2.0.8.20F

Change-Id: I2cec869a42242ce7f4e76a96dd78d63c5e7d6096
CRs-Fixed: 774533
2021-06-29 10:11:37 -07:00
Wu Gao
d906d8bc70 qcacld-3.0: Enable wakelock for enhanced CFR capture
There is potential risk when starting CFR and resume happens at same
time. Wake lock is added to CFR component, and this change enables
wake lock for enhanced CFR.

Change-Id: I1ebe8c11fad66b66adcad0b551756abf2c010cde
CRs-Fixed: 2977699
2021-06-29 10:11:37 -07:00
Madan Koyyalamudi
3b26515c58 Release 2.0.8.20E
Release 2.0.8.20E

Change-Id: Icae6694b8e7919f09bf4e6596687bb830fd26940
CRs-Fixed: 774533
2021-06-29 05:59:02 -07:00
Ashish Kumar Dhanotiya
0f51f3ab1f qcacld-3.0: Create dump_in_progress sysfs file
Based on new requirement create a sysfs file dump_in_progress,
this file has read and write functionalities for a bool variable,
if the value in this file is set to 1 cnss_diag will trigger
DEBUG_DUMP cmd to wpa_supplicant_8_lib through wpa_ctrl socket.
After log copy completion cnss_diag will reset sysfs node to 0.

Change-Id: I93f612d3caf4ef6ad5db98bc531ab091e96c7817
CRs-Fixed: 2971373
2021-06-29 05:59:01 -07:00
Madan Koyyalamudi
d80ac20b68 Release 2.0.8.20D
Release 2.0.8.20D

Change-Id: I43e35d5f0f5fd3f53f582f1388718fcefde634db
CRs-Fixed: 774533
2021-06-28 18:56:10 -07:00