Commit graph

22,313 commits

Author SHA1 Message Date
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
Abhishek Ambure
9f71d7cd59 qcacld-3.0: Reset cac state before precac sap start
Host creates a precac adapter and uses it for all the precac
request instances from userspace. To avoid cac state impact
of previous instance on current precac request, reset the
cac_state before starting a prepcac adapter.

Change-Id: I8bb7a2d10350eeeafaac9bea60947a52a1e8686e
CRs-Fixed: 2970505
2021-06-28 18:56:10 -07:00
Madan Koyyalamudi
00fc203721 Release 2.0.8.20C
Release 2.0.8.20C

Change-Id: I4c8fbbf9b8ee30c742612b7abab606ba83cead6e
CRs-Fixed: 774533
2021-06-28 13:01:02 -07:00
Gururaj Pandurangi
29d7f0ecec qcacld-3.0: Update ap power type for 6G roaming case
Update the ap power type when STA moves in/out of 6G
during roaming in beacon process API. Add new API
wlan_reg_get_6g_power_type to return ap power type
and country code match.

Currently, after roaming, the lim join req is null and
the null check in TPC calculation API returns without
calculating the TPC power again. This change should
fix the issue and recalculate TPC power after roaming.

Change-Id: Ibe9fa7ed0f0e1cdaf427e78279f3e675344d8abe
CRs-Fixed: 2968240
2021-06-28 13:01:01 -07:00
Gururaj Pandurangi
6fbd88c606 qcacld-3.0: Add skip_tpe check in beacon process API
Add skip_tpe check in beacon process API so that TPC power
calculation API is not invoked for 2G/5G roaming case if
skip tpe INI is set even though tpe power from beacon has
changed.

Change-Id: I4886634ac04e5dfdfce192d9099976fd436fc4c0
CRs-Fixed: 2966000
2021-06-28 13:00:57 -07:00
Madan Koyyalamudi
c55bd3d1c5 Release 2.0.8.20B
Release 2.0.8.20B

Change-Id: Ic39eb2c74c695711a9d8f9bde49adb3c886a2177
CRs-Fixed: 774533
2021-06-28 07:10:47 -07:00
Sachin Ahuja
8cc2c6028f qcacld-3.0: Reset the suspend flag on SSR
When cfg80211 suspend comes to the driver it configures the various
offloads to FW and set the hdd_wlan_suspended flag. If FW crashes after
this flag is set, the driver reinitializes but this flag is not
reset. As a result of this, the data packets are dropped which
leads to the connection failure.

To resolve this issue, reset the hdd_wlan_suspended flag during the
driver reinitalization.

CRs-Fixed: 2976125
Change-Id: I125a6a840f9cd7673fed921d1af112a6e1671bcb
2021-06-28 07:10:47 -07:00
Pragaspathi Thilagaraj
3ab75e8401 qcacld-3.0: Cache roam triggers when roaming is in progress
When roaming is in progress, if the roam control vendor command
is received to update the roam triggers, the command is rejected
but the trigger bitmap value is not cached at the driver.
This causes old roam trigger values to be updated in the next RSO
command.

Cache the roam trigger bitmap in mlme when roaming is in
progress.

Change-Id: Iae7d3babf5f3883df1939a31d40050db9b78af32
CRs-Fixed: 2971772
2021-06-28 07:10:41 -07:00
Madan Koyyalamudi
6a67d883fe Release 2.0.8.20A
Release 2.0.8.20A

Change-Id: I8ce5fb18ff486cdc3dcee44d8bd0e366d38f9832
CRs-Fixed: 774533
2021-06-28 05:21:47 -07:00
Vevek Venkatesan
30c15e2578 qcacld-3.0: reorder error checks in ipa_uc_ol_deinit
Reorder error checks in ipa_uc_ol_deinit, so it can
return immediately if IPA config is not enabled.

Change-Id: Ibf9f30650ce201eea562baf07b6dd9b83fd8dfff
CRs-Fixed: 2977474
2021-06-28 05:21:46 -07:00
Tiger Yu
35e242377f qcacld-3.0: Use the global lock instead of the ipa init_deinit_lock
Use the global lock instead of the init_deinit_lock in the ipa_obj to
avoid access the invalid memory with ipa_obj->init_deinit_lock since
the ipa_obj will be freed after driver shutdown.

Change-Id: I98a844456873f60213fae19c237bb08b76b4846c
CRs-Fixed: 2887487
2021-06-28 05:21:42 -07:00
Madan Koyyalamudi
92e457f8dd Release 2.0.8.20
Release 2.0.8.20

Change-Id: I15cd94a95902be4ea1ac5f20fbfc1a72b4086c54
CRs-Fixed: 774533
2021-06-28 01:25:18 -07:00
Abhishek Ambure
1ba600b163 qcacld-3.0: Update GFP flag in nl vendor event for CFR data
Host use GFP_KERNEL flag in cfg80211_vendor_event() to send CFR data
via NL event to userspace. Host gets CFR data from FW and processes
it in soft_irq context. To avoid host sleep in soft_irq context, call
cfg80211_vendor_event() with GFP_ATOMIC flag.

Change-Id: I9ab5451eb2650fe177638d0bb3974a9c933a1cf9
CRs-Fixed: 2978140
2021-06-28 01:25:18 -07:00
Madan Koyyalamudi
3ce82306e7 Release 2.0.8.19Z
Release 2.0.8.19Z

Change-Id: I657a94754c7ff2f895ee2b91a49597451d10bd7b
CRs-Fixed: 774533
2021-06-25 10:49:54 -07:00
Rakesh Pillai
0e0417abef qcacld-3.0: Enable SHADOW_WRITE_DELAY
When FEATURE_HAL_DELAYED_REG_WRITE enabled, also enabled
SHADOW_WRITE_DELAY to avoid back to back shadow reg write.

Change-Id: I8d48496814e063ebd441db3520e3a5406c5db13e
CRs-Fixed: 2967202
2021-06-25 10:49:54 -07:00
Jianmin Zhu
a210f89ecf qcacld-3.0: Enable UDP print in WoW case
If WoW wake up packet is not DHCP, but general UDP, also print it.

Change-Id: I1aa26a9396787ff2775402c6fcb8f697567744bc
CRs-Fixed: 2976286
2021-06-25 10:49:50 -07:00
Madan Koyyalamudi
6ba8b8aadf Release 2.0.8.19Y
Release 2.0.8.19Y

Change-Id: I6e1edaeffc2f264fa42c9daa92f7aefdc998e7c3
CRs-Fixed: 774533
2021-06-25 07:39:41 -07:00