Commit graph

22,284 commits

Author SHA1 Message Date
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
Ashish Kumar Dhanotiya
993758ccc4 qcacld-3.0: Reschedule country change work
Country change is a psoc operation and currently driver does
not try to reschedule country change work if it fails to start
this psoc operation and because of which it does not update the
scan channel list to the FW because of which host and FW are
not in sync.

To address this issue, reschedule country change work if it
gets and status of -EAGAIN when it tries to start the country
change psoc operation.

Change-Id: Ib93674b600a5d19fe3091d58e0689e806366659d
CRs-Fixed: 2968772
2021-06-25 07:39:41 -07:00
Ashish Kumar Dhanotiya
bacb646f40 qcacld-3.0: Avoid buffer overflow in llstats debugfs response
Currently driver does not subtract the already filled length
from the max available length when it copies the number of
radios to the llstats result buffer which may lead to buffer
overflow.

To address this issue subtract already filled length from the
max available length when driver copies the number of radios.

Change-Id: Ie3b93121df603bd65250f0b0a49bb049d353211d
CRs-Fixed: 2969637
2021-06-25 07:39:36 -07:00
Madan Koyyalamudi
cabb815f20 Release 2.0.8.19X
Release 2.0.8.19X

Change-Id: I36ca89ad7dca5ec40897341a234c40773d21b0a2
CRs-Fixed: 774533
2021-06-25 06:03:51 -07:00
abhinav kumar
3b30576bd5 qcacld-3.0: dual-band option is missing under AP Band in Hotspot
To show the "dual-band" option in "AP Band" in Hotspot, the host
should set the feature flag of CONCURRENT_BAND_SESSIONS in
hardware's capability and sends it to userspace.

The fix is to set the CONCURRENT_BAND_SESSIONS feature flag and
send it to userspace via the QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES
vendor command.

Change-Id: If29c35be4ea86c966624922f0209b1e5c272d405
CRs-Fixed: 2968554
2021-06-24 15:33:53 -07:00
Madan Koyyalamudi
68f7d17323 Release 2.0.8.19W
Release 2.0.8.19W

Change-Id: Ic0b8042c83b470b87920a539a5eab32197a4ca9a
CRs-Fixed: 774533
2021-06-24 13:54:03 -07:00
Vevek Venkatesan
fc9c6cc743 qcacld-3.0: defer sending STA_CONNECT to IPA after key install
Unlike wpa2, in wpa3 roaming scenario, roaming is not fully
offloaded to FW, EAPOL handshake and key install are done
from host, in current design during assoc completion handler,
it sends STA_CONNECT event to IPA and IPA gets hung waiting
for buffer replenish from FW and FW is waiting for current
thread to return, this causes deadlock, so defer sending
STA_CONNECT event to IPA after EAPOL handshake and key install
for all the secure connections, hence IPA HW is ready to
process the STA_CONNECT event, in this case.

Change-Id: I19961cdd303ccef13621c7a20867ba852342a526
CRs-Fixed: 2958313
2021-06-24 13:54:03 -07:00
Srinivas Dasari
efbe7ee16a qcacld-3.0: Wait for key install in SAE/OWE as well
EAPOL handshake is done by wpa_supplicant in initial connection
and WPA3 roaming as well. Driver is supposed to wait for EAPOL
handshake/key complete timeout after getting roam sync indication
from firmware. But this wait is skipped with the change
change-id : Ie4f06cfcb066ae245de024b62da586aade783aec.
Add the same check again.

Change-Id: I437c6be15d7c1a3775a177c2da6c581d417c2533
CRs-Fixed: 2963548
2021-06-24 13:53:58 -07:00
Madan Koyyalamudi
1353cf7ace Release 2.0.8.19V
Release 2.0.8.19V

Change-Id: Id4780afea7468e4672ad2954bd2de799c1ad900a
CRs-Fixed: 774533
2021-06-24 11:46:35 -07:00
Jianmin Zhu
1ffab14946 qcacld-3.0: Fix wrong rssi change threshold issue
RSSI change threshold is set as roam trigger reason by mistake

Change-Id: I6826d912d9bd6cbe454397074cee291a832e5f58
CRs-Fixed: 2975198
2021-06-24 11:46:35 -07:00
Madan Koyyalamudi
94c965e869 Release 2.0.8.19U
Release 2.0.8.19U

Change-Id: I55f2a08d6f5c283c456c6bb44d9ed8be00edaad4
CRs-Fixed: 774533
2021-06-24 10:17:09 -07:00
Srinivas Dasari
0d86c3cb30 qcacld-3.0: Consider calculated buf size for NDI ADDBA window size
Currently, ADDBA window size is calculated based on
self HE capability and peer advertised window size in
lim_process_addba_req(). But HE capability of the peer
is also considered while sending ADDBA response.
In NDI case, peer HE capability is not available and results in a
non-HE window size(64). But there is no need to check peer HE
capability as it advertises the window size in ADDBA request.
Skip the he_cap check for NDI.

Change-Id: I2d1df6f3cba9eac009ba59fcf33db88c907171bb
CRs-Fixed: 2961524
2021-06-24 10:17:09 -07:00
Srinivas Dasari
a9518782cd qcacld-3.0: Send NDI create rsp to userspace after NDI state is set
Currently, driver creates the NDI upon userspace request and sends
NDI-create-response to userspace. But internal NDI state is set
after sending this response. This leads to a race condition when
userspace sends NDI delete while driver is still setting driver
internal state for NDI create.
So, send NDI create response to userspace only after completion
of driver internal processing.

Change-Id: Ic651fd4f6dfab17c48c4f65b6e5d49c4d08cbe16
CRs-Fixed: 2966549
2021-06-23 22:53:04 -07:00
Madan Koyyalamudi
a524b1731e Release 2.0.8.19T
Release 2.0.8.19T

Change-Id: I867e921f7f67593c5828f1dda1f91d0bc1556f11
CRs-Fixed: 774533
2021-06-23 14:18:24 -07:00
Vulupala Shashank Reddy
90cf964200 qcacld-3.0: Allow qos null frames in packet capture mode
Do not drop qos null frames in packet capture. so remove
check for qos null frames in packet capture mode.

Change-Id: Ie3a700cbc5a7e582ea7cfc39ebd62880265f8f7d
CRs-Fixed: 2973279
2021-06-23 14:18:24 -07:00
Vulupala Shashank Reddy
4c6665c5ef qcacld-3.0: Pkt capture config for qos null and trigger frames
Provide ucfg api to configure qos null and trigger frames.

Ucfg api will send configuration to FW. Below configuration values
are allowed.

PACKET_CAPTURE_CONFIG_TRIGGER_QOS_DISABLE: disable capture for
trigger and qos frames.
PACKET_CAPTURE_CONFIG_TRIGGER_ENABLE: enable capture for trigger
frames only.
PACKET_CAPTURE_CONFIG_QOS_ENABLE: enable capture for qos frames only.
PACKET_CAPTURE_CONFIG_TRIGGER_QOS_ENABLE: enable capture for both
trigger and qos frames.

The packet capture config old value will be over written by new value.
For example, first if we configure value as
PACKET_CAPTURE_CONFIG_TRIGGER_ENABLE and then if we send config as
PACKET_CAPTURE_CONFIG_QOS_ENABLE then config is enabled only for qos.

Change-Id: I02dcd4372c7194ec3e477694ad0e2c045fe6c942
CRs-Fixed: 2967824
2021-06-23 14:18:19 -07:00
Madan Koyyalamudi
3c89e02b56 Release 2.0.8.19S
Release 2.0.8.19S

Change-Id: Ib72cd82067ddc2a0adef1bdc78851697e3720571
CRs-Fixed: 774533
2021-06-23 09:59:29 -07:00
Abdul Muqtadeer Ahmed
2458ae3766 qcacld-3.0: Add a check for new feature capability
Advertize the DBS capability in the get feature vendor command
if device supports DBS.

Change-Id: Icd8e8de7e188e9c5a3041460e6316cdf2b8ebff1
CRs-Fixed: 2820800
2021-06-23 09:59:29 -07:00
Madan Koyyalamudi
643fa5cd01 Release 2.0.8.19R
Release 2.0.8.19R

Change-Id: Ie128bdbe9a068da856130cc65a0365bd1bfcf35b
CRs-Fixed: 774533
2021-06-23 03:19:43 -07:00
Utkarsh Bhatnagar
2118fe4c44 qcacld-3.0: Vendor cmd to set SW retry threshold value
The following vendor cmd can be used to set the
sw retry threshold per vdev for all AC:

Aggresive:     QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY
Non-Aggresive: QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY

Change-Id: I49d88ae1f3f6142d8a420fd92f6f40bf3aad03e6
CRs-Fixed: 2945913
2021-06-23 03:19:43 -07:00
Utkarsh Bhatnagar
0fde35d906 qcacld-3.0: Change timeout for TDLS mgmt frames
Reduce the timeout to wait for TDLS mgmt to
complete from 11 seconds to 3 seconds.

Also, Allow Tx data frame if no ack/nack is
received even after 2 seconds for last data
frame.

If last data frame is sent and no ack/nack
is received within 2 seconds, then drop the
new data frame.

Change-Id: If3294908cb1399c3b4c8931b80663671400bf610
CRs-Fixed: 2966308
2021-06-23 03:19:37 -07:00
Sai Pavan Akhil Remella
f8e00abfda qcacld-3.0: Fix connection issue in 11n-only mode when AP is in 11AC/AX
Currently when gDot11Mode=6 (11n only) is configured in ini and AP
is operating in 11n mode the STA is connecting in HT mode, but when
AP is operating in 11AC/11AX mode then STA is connecting in legacy
mode i.e 11b/g/a. This is due to check which compares phymode of
BSS is 11n or not but failed to check BSS phymode is 11ac/ax.
Due to this there is mismatch in phymode and mode is downgraded
to legacy.
These changes will perform the check and allow STA to connect in
11n.

Change-Id: I8196b44db5a12fbba39ffcf58202fa1863b1c4b4
CRs-Fixed: 2965287
2021-06-23 03:19:33 -07:00
Ashish Kumar Dhanotiya
93747ad99e qcacld-3.0: Reset channel switch in progress on deinit ap
Currently if channel switch is in progress and if deinit
ap comes, channel switch does not gets complete and driver
does not reset channel switch in progress in adapter. Now
if driver receives channel change cb in hdd from regulatory,
it tries to restart the sap according to updated channel list,
but it waits for channels switch in progress to be completed
by taking the netdev reference for SAP adapter and this wait is
of 2 seconds, in this time if del virtual interface comes for
SAP adapter comes in that case it will detect the net dev ref
leak as one net dev ref is taken by country change work.

To address above issue, complete the channel change on deinit
ap mode and also check if SAP is started in country change
work before starting to wait for channel switch in progress.

Change-Id: I349e217a94093b3751310d4f7378fb6585f77743
CRs-Fixed: 2969343
2021-06-22 21:45:44 -07:00
Madan Koyyalamudi
0a0c0dbfaa Release 2.0.8.19Q
Release 2.0.8.19Q

Change-Id: I3c549833bc2db002bf536bf0dc4c3e8e0173d521
CRs-Fixed: 774533
2021-06-22 21:08:43 -07:00
Kiran Kumar Lokere
1015549545 qcacld-3.0: Config support for STA bss color collision detection
Add INI configuration support to enable/disable BSS color collision
detection offload in STA mode.

Change-Id: I9d8f096813d74242566ccae5f92e872bcaca6295
CRs-Fixed: 2965133
2021-06-22 21:08:43 -07:00
Madan Koyyalamudi
06dae2f088 Release 2.0.8.19P
Release 2.0.8.19P

Change-Id: Ia06a6c114c39d4a1bc63a5b1d67af638cb4d5b02
CRs-Fixed: 774533
2021-06-21 20:52:33 -07:00
Alan Chen
5134cff143 qcacld-3.0: Add debug log for prevent suspend
Add debug log to find more details when PCIe link suspend is not allowed.

Change-Id: I0305f6aaabfcff630e863018a7e768531a9cb890
CRs-Fixed: 2963988
2021-06-21 20:52:33 -07:00
Madan Koyyalamudi
864bbe3ad3 Release 2.0.8.19O
Release 2.0.8.19O

Change-Id: I3ba741340b8eb56fab069835d733a53f53e7e673
CRs-Fixed: 774533
2021-06-21 17:04:56 -07:00
Sachin Ahuja
ccbf7d5494 qcacld-3.0: Check band caps before initializing wiphy band
Currently driver initializes the wiphy 6ghz band without
checking the band capability. If FW does not support 6Ghz
then wiphy register is failed as wiphy 6ghz band is initialized
by driver.

To fix this, initialize the wiphy 6ghz band only when host
driver and FW both supports 6Ghz band.

CRs-Fixed: 2968968
Change-Id: I28d660f515d16d0eb4245311b42c69308576ac62
2021-06-21 17:04:56 -07:00
Madan Koyyalamudi
f01e822cca Release 2.0.8.19N
Release 2.0.8.19N

Change-Id: Ide89738fef85ea406cc016baa64546e54e4a2aad
CRs-Fixed: 774533
2021-06-21 11:09:04 -07:00