Commit Graph

23225 Commits

Author SHA1 Message Date
Balaji Pothunoori
d56c5ea434 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-25 11:56:14 -07:00
Balaji Pothunoori
3dfe4180a2 Revert "qcacld-3.0: Enable TX_AGGREGATION_SIZE_ENABLE for HST"
This reverts commit Ieca8464991a6a194d6f02b70fe4972aca288b541.

Change-Id: Iacdbafc5e7e07a3a3effc029edb4adf58a619ada
CRs-Fixed: 2963209
2021-06-25 11:56:09 -07:00
Balaji Pothunoori
683de5d1f1 Revert "qcacld-3.0: Fix No AMSDU/MPDU aggregation issue"
This reverts commit I0c86e74f6447f401d24660e1291abf969b1abbe6.

Change-Id: I31bea28044fbec4911f42a38be1b1b6679dd6dda
CRs-Fixed: 2963188
2021-06-25 11:56:05 -07:00
abhinav kumar
e0fe068d35 qcacld-3.0: SAP not following STA channel
With below INI configuration, SAP is not following the STA
channel. It's forming STA + SAP MCC instead of Forced SCC.
1. gWlanMccToSccSwitchMode = 4
   (QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE)
2. gEnableSAPManadatoryChanList=1

When channel switch mode is
QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE and if STA
is on 5ghz and SAP also comes on 5ghz then driver considers
the HW mode as DBS capable and it allows SAP to form
MCC which is not favorable.

For non_DBS target, the fix is to allow SAP to
do force SCC if the channel switch mode is
MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE.

Change-Id: I4b945dc1831909caff72f8398c959f4450765f2b
CRs-Fixed: 2972273
2021-06-25 11:56:00 -07:00
Abhishek Singh
af34815a41 qcacld-3.0: Code cleanup for connection manager in HDD
Remove unused code related to ndef FEATURE_CM_ENABLE in HDD.

Change-Id: I2934e4a867458561c50170b0e786e63f20f1af4a
CRs-Fixed: 2977577
2021-06-25 11:55:56 -07:00
Madan Koyyalamudi
02492ff860 Release 5.2.0.238F
Release 5.2.0.238F

Change-Id: Ide07b8f5c1ee1f73206183e4c3640d18c6875828
CRs-Fixed: 774533
2021-06-25 09:40:17 -07:00
Surabhi Vishnoi
1954f6e25e qcacld-3.0: Register handler for wmi smart monitor event
Register handler for wmi smart monitor event 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-06-25 09:40:17 -07:00
Vevek Venkatesan
3ca1f5fff2 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-25 09:40:12 -07:00
Huashan Qu
1d647269cd qcacld-3.0: Enable connection manager LFR2 code path
Enable connection manager LFR2 code path, then all targets which are
using LFR2 will switch to connection manager code path.

Change-Id: I37f831596699d39e635d88ee88faf841f3a36063
CRs-Fixed: 2968850
2021-06-25 09:40:08 -07:00
Ashish Kumar Dhanotiya
a341934e9a 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-25 09:40:04 -07:00
Madan Koyyalamudi
7f7006698d Release 5.2.0.238E
Release 5.2.0.238E

Change-Id: I731ea27c12dd8770e114e6b508984b82f063814a
CRs-Fixed: 774533
2021-06-25 07:19:54 -07:00
Sachin Ahuja
5399f87f06 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-25 07:19:54 -07:00
Huashan Qu
c2aa4de42f qcacld-3.0: Only zero out reassoc_ft_ie under 11r and open mode
Currently, if it's 11r connection, zero out reassoc_ft_ie in
cm_preauth_success(), it will cause FT roaming failed due to
ft ie loss with reassoc request frame.

Fix is to only zero out reassoc_ft_ie when connection is 11r
and open mode.

Change-Id: I8c1d6ca743b528c4ab0211723a792b14abe5acab
CRs-Fixed: 2976385
2021-06-25 07:19:50 -07:00
Madan Koyyalamudi
cdaf61e7ef Release 5.2.0.238D
Release 5.2.0.238D

Change-Id: I0ebd7403d9f16c020c7917c9f83b056e9167faae
CRs-Fixed: 774533
2021-06-25 00:47:58 -07:00
Jianmin Zhu
fee0a0e3ed 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 00:47:57 -07:00
Madan Koyyalamudi
c5d5a48c9f Release 5.2.0.238C
Release 5.2.0.238C

Change-Id: Ia2c46c774bfed84d8f47f95299ff5bb3099958d2
CRs-Fixed: 774533
2021-06-24 22:25:08 -07:00
Gururaj Pandurangi
fd1985a84e 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-24 22:25:08 -07:00
Rakesh Pillai
e8621c7db8 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-24 22:25:02 -07:00
Huashan Qu
fbd16dd492 qcacld-3.0: Fix LFR2 roaming related memory leak issues
Fix LFR2 roaming related memory leak issues in function
lim_send_reassoc_req_with_ft_ies_mgmt_frame() and
wlan_cm_host_roam_start().

Change-Id: I83271b57d0651d680324b67f0e6e6a3694c9ab8c
CRs-Fixed: 2976469
2021-06-24 22:24:55 -07:00
Madan Koyyalamudi
9704d5e43f Release 5.2.0.238B
Release 5.2.0.238B

Change-Id: I89464a0c6f68bcfa2cc017a1360ddd0fc03a1f63
CRs-Fixed: 774533
2021-06-24 16:32:03 -07:00
Alan Chen
27aeb4863e qcacld-3.0: Add debug log to print link vote id
Add debug log to print more details about the link vote id when
PCIe link suspend is not allowed.

Change-Id: I5069202436e0da37b8ae22f84e28ac06d35002b5
CRs-Fixed: 2964957
2021-06-24 16:32:02 -07:00
Madan Koyyalamudi
7ef4de60f7 Release 5.2.0.238A
Release 5.2.0.238A

Change-Id: Ic8d28f455b0ae342805a207944560f76837ce752
CRs-Fixed: 774533
2021-06-24 11:41:18 -07:00
Huashan Qu
f75e881d71 qcacld-3.0: Return success when firmware doesn't support 11k offload
Return success when firmware doesn't support 11k offload, or else
subsequent roaming related wmi commands have no chance to issue.

Change-Id: I69d55cca63f2b7ab4787295a2825159395cf2a11
CRs-Fixed: 2976163
2021-06-24 11:41:18 -07:00
Madan Koyyalamudi
80d45af790 Release 5.2.0.238
Release 5.2.0.238

Change-Id: I3c020a706f10007537971f3b5120d54167ce088f
CRs-Fixed: 774533
2021-06-24 09:31:00 -07:00
Srinivas Dasari
043081eff7 qcacld-3.0: Cleanup NDI session even if BSS start is in progress
NDI delete may get issue while NDI creation is still in progress.
NDI session doesn't get cleaned up as it's done based on
CSR_IS_CONN_NDI(&session->connectedProfile), which is valid only
after the NDI is created i.e. START_BSS success.
So cleanup should happen based on an intermediate check,
i.e. if WLAN_SER_CMD_VDEV_START_BSS is still in queue.
This was there earlier but got removed as part connection mgr
cleanup as the station connection is moved to CM path.
Add a check on WLAN_SER_CMD_VDEV_START_BSS and cleanup NDI.

Change-Id: If692cf0e594cbdcb89cd1d8a0ad591b5bae3de49
CRs-Fixed: 2969276
2021-06-24 09:31:00 -07:00
Madan Koyyalamudi
8b5fce1fa5 Release 5.2.0.237Z
Release 5.2.0.237Z

Change-Id: I4449341540903eacc016f8a134dad8ae528227df
CRs-Fixed: 774533
2021-06-24 07:21:39 -07:00
Jyoti Kumari
486100d756 qcacld-3.0: Don't use utils_dfs_mark_leaking_ch()
As part of regulatory cleanup, remove utils_dfs_mark_leaking_ch()

Use utils_dfs_mark_leaking_chan_for_freq() instead of
utils_dfs_mark_leaking_ch()

Change-Id: I796de0abb50fdbdf9d61768a190553e031a7989e
CRs-Fixed: 2972007
2021-06-24 07:21:39 -07:00
Madan Koyyalamudi
f47b0ebec6 Release 5.2.0.237Y
Release 5.2.0.237Y

Change-Id: Iaf4a6c87db025e71fb4ba5499cbb3604df717055
CRs-Fixed: 774533
2021-06-23 23:32:28 -07:00
Jinwei Chen
b01dccdb52 qcacld-3.0: suppot WHUNT for CMEM allocation
support WHUNT for CMEM allocation.

Change-Id: I2e28a39bdc5a910526707bc278e6e4a7b08d703f
CRs-Fixed: 2929515
2021-06-23 23:32:28 -07:00
Madan Koyyalamudi
181b3aefb2 Release 5.2.0.237X
Release 5.2.0.237X

Change-Id: Iedd35dd4c101fcc8bca62e06e68a4564ed0c4359
CRs-Fixed: 774533
2021-06-23 21:18:46 -07:00
Pragaspathi Thilagaraj
7e1ce1ef23 qcacld-3.0: Update exteneded capabilities after connection
The extended capabilities IE is sent during vdev create and
this doesn't have the merged extended capabilities from the
userspace. So some of the fields advertised in association
request are not advertised in the re-association request.

Fix the missing fields not set in the extended capabilities IE
by sending the set IE message to LIM after connection is
successful.

Change-Id: I322d057f602e0362f12b362e7818e84cbb056cf4
CRs-Fixed: 2971072
2021-06-23 21:18:46 -07:00
Madan Koyyalamudi
aa2a7173f8 Release 5.2.0.237W
Release 5.2.0.237W

Change-Id: Ia116802603d7b04f0e668876230d7e7d08032fdd
CRs-Fixed: 774533
2021-06-23 18:47:10 -07:00
Pragaspathi Thilagaraj
05957e00cd 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-23 18:47:10 -07:00
Madan Koyyalamudi
089eb1826d Release 5.2.0.237V
Release 5.2.0.237V

Change-Id: Ie60bb7c726134e74c5544e30cd35d0010892c829
CRs-Fixed: 774533
2021-06-23 16:40:59 -07:00
Ashish Kumar Dhanotiya
42596fcc11 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-23 16:40:58 -07:00
Madan Koyyalamudi
19d57261c5 Release 5.2.0.237U
Release 5.2.0.237U

Change-Id: I519dc43b4f5b9c634215cf53aadb68355a90c928
CRs-Fixed: 774533
2021-06-23 14:08:51 -07:00
Yeshwanth Sriram Guntuka
e4322f1e96 qcacld-3.0: Add support for GCMP in rx de-fragmentation
GCMP header and MIC are not removed for received
fragments which will result in incorrect ethertype
and presence of LLC hdr in the data when the frames
are sent to network stack.

Fix is to add support for GCMP in rx de-fragmentation
path.

Change-Id: I83ed29a766e40e32f4b712342ebd40d08a2c65e0
CRs-Fixed: 2942099
2021-06-23 14:08:51 -07:00
Madan Koyyalamudi
927bb95cb5 Release 5.2.0.237T
Release 5.2.0.237T

Change-Id: I83acc28113b41a3d77d3995e53f082b839ec48c1
CRs-Fixed: 774533
2021-06-23 11:01:25 -07:00
abhinav kumar
94f1ef448d 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-23 11:01:25 -07:00
Madan Koyyalamudi
741fb16e2d Release 5.2.0.237S
Release 5.2.0.237S

Change-Id: Ic98714d5ac90f8c66b499844fe27414fe55d3354
CRs-Fixed: 774533
2021-06-23 08:30:13 -07:00
Srinivas Dasari
06b376bbee 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-23 08:30:13 -07:00
abhinav kumar
29bb6774c1 qcacld-3.0: Change roam state after connect complete
With commit I84c77644c6023322ac77e307b06be70ec0f58ed5, Host
allows dual sta roaming only if two STA's sessions for are
active (STA + STA) and concurrency is in DBS.

Currently, before the increment of the number of active
sessions in the policy manager, the host tries to enable
dual-band roaming. This results in dual sta roaming failure
with the reason number of active sessions equal to one.

The fix is to make sure the host should try to enable dual-band
roaming after incrementing the number of active sessions in the
policy manager.

Change-Id: I150926897cb773db979279edc54e5fb731d98e43
CRs-Fixed: 2971831
2021-06-23 08:30:07 -07:00
Ashish Kumar Dhanotiya
d11dc596a5 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-23 08:30:02 -07:00
Madan Koyyalamudi
db89706c88 Release 5.2.0.237R
Release 5.2.0.237R

Change-Id: Ied0d3ad4f111eb7571877d58354fab0c53fbfca6
CRs-Fixed: 774533
2021-06-23 06:01:14 -07:00
Lin Bai
cde0f328b3 qcacld-3.0: Ignore duplicated assoc req frame
When PMF enabled, SA Query will be triggered unexpectly if
duplicated assoc_req received after pre_auth node deleted
and before key installed.
Here drop such duplicated assoc_req frame.

Change-Id: I1c769892052fba5e8c7340b2f82e822add573dd4
CRs-Fixed: 2966447
2021-06-23 06:01:14 -07:00
Ashish Kumar Dhanotiya
7e45112171 qcacld-3.0: Free radio stats from hdd only
Currently radio stats gets freed from hdd and from wma event
handler as well. This can lead to race condition where if
hdd cb is invoked and immediately another request comes, it
tries to free all the previously allocated radio stats memory
and at the same time wma event handler is also trying to free
the same memory which may lead to double free if both the threads
passes the NULL check at the same time.

To avoid above issue, make a change to free the memory from hdd
only on the receiving of the response and completing the request
and do not free the radio stats memory from wma.

Change-Id: If393ab2d86bce7a833ab9eaf30c34fbe85cdea12
CRs-Fixed: 2972698
2021-06-23 06:01:06 -07:00
Madan Koyyalamudi
7167c65909 Release 5.2.0.237Q
Release 5.2.0.237Q

Change-Id: Ie43fad4916599e299202b0e5736d5525519fb5da
CRs-Fixed: 774533
2021-06-22 23:04:21 -07:00
Vulupala Shashank Reddy
01b4e695dd 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-22 23:04:21 -07:00
Vulupala Shashank Reddy
e2e99c1424 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-22 23:04:16 -07:00
Madan Koyyalamudi
2be21be8c4 Release 5.2.0.237P
Release 5.2.0.237P

Change-Id: Ic71c5875cfaacaa478bdde8df533795f381fd7aa
CRs-Fixed: 774533
2021-06-22 16:17:58 -07:00