Commit Graph

23797 Commits

Author SHA1 Message Date
Srinivas Dasari
9a4a9a493e qcacld-3.0: Send psoc also in roam events to target_if
target_if expects psoc as part of roam events which is used for
event extraction. Send the same as it's missing currently.

Change-Id: I04729df90d8e64e07427fe47926a8a92a24aaf23
CRs-Fixed: 3027055
2021-09-03 05:50:36 -07:00
Madan Koyyalamudi
408c357390 Release 5.2.0.246S
Release 5.2.0.246S

Change-Id: I2e7d7a3213ae3368cbf006a871916a64475a6d57
CRs-Fixed: 774533
2021-09-03 03:24:47 -07:00
Amruta Kulkarni
c2d7ba4b01 qcacld-3.0: Add support to install key api's on wdevs
For MLO, add support to hdd install key api's
on wdevs without netdev. Add changes under config
flag "CFG80211_KEY_INSTALL_SUPPORT_ON_WDEV".

Change-Id: I67de2ba36dd86f0814c820756d5f49b765defda6
CRs-Fixed: 3017312
2021-09-03 03:24:47 -07:00
Madan Koyyalamudi
59e39f1a2b Release 5.2.0.246R
Release 5.2.0.246R

Change-Id: I72441b2e0571b96cc181d2346bc499d26a09f2d8
CRs-Fixed: 774533
2021-09-02 23:58:02 -07:00
Abhishek Singh
d1242791b5 qcacld-3.0: Remove STA specific enums from eConnectionState
Remove STA specific enums from eConnectionState. Also remove
its prints from STA dependent code.

Change-Id: I1a06d16a060bec90147dcf94925582877352d1a8
CRs-Fixed: 3028099
2021-09-02 23:58:02 -07:00
Madan Koyyalamudi
bb73b465bd Release 5.2.0.246Q
Release 5.2.0.246Q

Change-Id: I0df8a067cd119f7c67a6f0e2755d3d378172a32f
CRs-Fixed: 774533
2021-09-02 21:43:52 -07:00
Deeksha Gupta
3ecfc16c77 qcacld-3.0: Release the peer reference in twt_get_status
In ucfg_twt_get_all_peer_session_params peer reference is
acquired and its not released leading to the reference leak,
leading to vdev destroy timeout.

Release the peer reference to resolve the issue.

Change-Id: I9992376473c30365f15fcdb8e374c856bc169d6b
CRs-Fixed: 3027189
2021-09-02 21:43:52 -07:00
Madan Koyyalamudi
c31aad7307 Release 5.2.0.246P
Release 5.2.0.246P

Change-Id: I29ce3e8db39f49f1d7c8b642ea604c391002b2a2
CRs-Fixed: 774533
2021-09-02 14:31:50 -07:00
Qun Zhang
c4f20eca44 qcacld-3.0: Make sure sap stop_bss_event cannot be forcedly reset by PLD_FW_DOWN
In some stress test, like doing random on/off sap and random SSR, sometimes we
can hit below test situation:
1. trigger SSR first by calling hdd_crash_inject, then immediately off SAP, the
two actions almost happen at the same time.
2. the action of off SAP calls __wlan_hdd_del_virtual_intf to delete SAP interface
and is waiting for qdf_stop_bss_event completion event.
3. at the moment, sys error interrupt happened, CNSS layer would send PLD_FW_DOWN
event to host driver first. Due to PLD_FW_DOWN event call qdf_complete_wait_events()
to forcedly reset all completion wait event, this action may cause
__wlan_hdd_del_virtual_intf to do vdev destroy before vdev resp mlme state machine
is processed. Once vdev destroy is executed, it will set vdev obj_state to
WLAN_OBJ_STATE_LOGICALLY_DELETED, then vdev resp will not have chances to be flushed,
and then cause peer reference count leakage.

Fix solution: use qdf_wait_single_event instead of qdf_wait_for_event_completion to
avoid stop_bss_event forcedly reset before stop_bss_event is done or timeout.

Change-Id: I45b662fd17ec56bb8fc4453627bdcb41dedf79e0
CRs-Fixed: 2987511
2021-09-02 14:31:50 -07:00
Madan Koyyalamudi
2372e5c367 Release 5.2.0.246O
Release 5.2.0.246O

Change-Id: If314bf586f76c044dff5eff0cd9a5e7a8eafa16d
CRs-Fixed: 774533
2021-09-02 12:16:46 -07:00
Ashish Kumar Dhanotiya
7ef0cabb5d Revert "qcacld-3.0: Fill cac duration as well in wiphy channels"
This reverts commit "Change-Id: I847468f0c1839974ea1c6cd31260fb7ef4fbb897"

Revert this change as kernel is not reading cac duration from
wiphy channels, kernel reads the cac duration from reg rules.

Change-Id: I794bb3ddd67f551daf9b4c3b9320909224ac4d76
CRs-Fixed: 3020354
2021-09-02 12:16:46 -07:00
Utkarsh Bhatnagar
d1d592bca6 qcacld-3.0: Optimize Auth and Assoc logs
Add vdev id in auth TX and print assoc timeout in assoc TX.

Change-Id: I9bf369ae0960968a19a1f48f1492c004743fc3c0
CRs-Fixed: 3028123
2021-09-02 12:16:41 -07:00
Madan Koyyalamudi
9d6980fd79 Release 5.2.0.246N
Release 5.2.0.246N

Change-Id: Ibe8bbd292d36778c59b988e2ccad8fdbf209c76a
CRs-Fixed: 774533
2021-09-01 19:34:46 -07:00
Arun Kumar Khandavalli
e272ab538f qcacld-3.0: Create state control param after the driver register
As part of the new GKI model, multiple driver are loaded parallelly
resulting in a error message from the kernel regarding the multiple
registrations of the /dev/wlan.

Register the /dev/wlan file to the kernel once the device is
identified and driver registration is success.

Change-Id: Iaca40abb62be5f59f129604a9a6d74ada6a4ad3a
CRs-Fixed: 3027521
2021-09-01 19:34:46 -07:00
Madan Koyyalamudi
4de49713b8 Release 5.2.0.246M
Release 5.2.0.246M

Change-Id: Ic9c291bd5c7042f8aea2df0f8cc6df49ef98fc80
CRs-Fixed: 774533
2021-09-01 17:13:17 -07:00
Bapiraju Alla
07eeda1420 qcacld-3.0: Increase the mac vdev support for 80211be
Currently max vdevs are defined as 6 in osif. Increase it to 9
in case of 11be.

Change-Id: If64306cfc55690d7523ee910074064051a1b1d78
CRs-Fixed: 3027377
2021-09-01 17:13:16 -07:00
Madan Koyyalamudi
50ea912eed Release 5.2.0.246L
Release 5.2.0.246L

Change-Id: I46bfaf72275c8cc3949127a89653496473fbdb9d
CRs-Fixed: 774533
2021-09-01 14:02:32 -07:00
Liangwei Dong
04e62b143e qcacld-3.0: Unit test update for policy mgr pcl validation
Update unit test command for policy mgr pcl validation to
support new SBS PCL type.

Change-Id: Ib02ce6c69400d0f47307523d690e1d81a8c0ef83
CRs-Fixed: 2998526
2021-09-01 14:02:32 -07:00
Pragaspathi Thilagaraj
100c310363 qcacld-3.0: Set PS config per vdev
Currently the PS config received from kernel/userspace is set
to mac_ctx globally. This causes PS config set for one vdev to
override on the other vdev.

To avoid this, set the PS config per vdev.

Change-Id: I6a2e2a9d8fb67b94d9d5f1d4164077990bdaf4a5
CRs-Fixed: 3007060
2021-09-01 14:02:27 -07:00
Madan Koyyalamudi
9cce6d9b2d Release 5.2.0.246K
Release 5.2.0.246K

Change-Id: I8f84d910109d46219d14921ab223cb514e0a06c4
CRs-Fixed: 774533
2021-09-01 11:45:35 -07:00
Liangwei Dong
a2941c56d9 qcacld-3.0: dump pcl type name and ch list
Dump PCL type name and channel list.
Remove duplicated dump ch list.

Change-Id: I78e95e6628bcf771a5880221ee5a5aa1dc709dae
CRs-Fixed: 2998522
2021-09-01 11:45:35 -07:00
Liangwei Dong
8a532f4033 qcacld-3.0: Enable DBS-SBS 2x2 table
Enable new dbs-sbs-2x2 PCL table for new DBS-SBS hw.

Change-Id: Ia30f07d96de981738527c4cbc043cf8958f6f9c2
CRs-Fixed: 2998506
2021-09-01 11:45:28 -07:00
Liangwei Dong
cd67d587b9 qcacld-3.0: populate channel list of new pcl type for DBS-SBS
To support DBS-SBS hw mode, populate SBS/SCC/MCC/DBS channel
list for new PCL types.

Change-Id: I5b6bae3daeae0be879d60dc5183574fe63f6a0c9
CRs-Fixed: 2998497
2021-09-01 11:45:22 -07:00
Pragaspathi Thilagaraj
cf2423e163 qcacld-3.0: Disable PER roam for phymode less than 11NA_HT20
The PER default low rate thresholds configured is 20Mbps. This
will cause PER roam scan always after the 25 secs PER monitor
window since the 11b rates are lower than 20Mbps.

So disable PER roam when the connection/roaming to peer is with
cckm/OFDM rates to avoid frequent roam scans.

Change-Id: Iaae469804547c0f0682b66de3609b5cda4b4b577
CRs-Fixed: 2984973
2021-09-01 11:45:15 -07:00
Madan Koyyalamudi
359282c65f Release 5.2.0.246J
Release 5.2.0.246J

Change-Id: Ic20a240681a04a4c3906e3f764b7c78a1076958f
CRs-Fixed: 774533
2021-09-01 09:03:03 -07:00
Chaoli Zhou
4de24dbbde qcacld-3.0: Fix HE MCS wrong for 2.4G 1x1 + 5G 2x2 case
In the 2.4G 1x1 + 5G 2x2 Hastings specific case,
host will receive below HE MCS info:
1. hw mode id[0], phy id[0]
he_supp_mcs_2G=0x0
he_supp_mcs_5G=0xfffefffa
2. hw_mode_id=1 phy_id=0
he_supp_mcs_2G=0x0
he_supp_mcs_5G=0xfffefffa
3. hw_mode_id=1 phy_id=1
he_supp_mcs_2G=0xfffe
he_supp_mcs_5G=0x0
But in the wma_update_target_ext_he_cap, it always
updates the last mcs=0xfffe info into he_cap,
which will be used in the HE capability of beacon
or probe response frame whatever it running on
2.4G or 5G and it is not right.
So add this fix to update the MCS separately according
to the current operating channel.

Change-Id: I277aa708ae7e13917cf2068f01b05d3864ad7618
CRs-Fixed: 2992253
2021-09-01 09:03:02 -07:00
Madan Koyyalamudi
a276469458 Release 5.2.0.246I
Release 5.2.0.246I

Change-Id: I640434c5c87797e43d15012141de6acd2f3d3506
CRs-Fixed: 774533
2021-09-01 02:41:16 -07:00
Utkarsh Bhatnagar
3b7a3b32d8 qcacld-3.0: Optimize STA disconnect handling In LIM
Optimize STA disconnect handling In LIM, by improving logging
and seperating logic from SAP's peer disconnect handling.

Change-Id: Iad2cc1ac0b5dc3e5ce7294e410d6d8040934ea0d
CRs-Fixed: 3026218
2021-09-01 02:41:16 -07:00
Madan Koyyalamudi
819009fc31 Release 5.2.0.246H
Release 5.2.0.246H

Change-Id: I02c0b4294709b6d45f31f3953aa2fa865347334a
CRs-Fixed: 774533
2021-08-31 22:23:38 -07:00
Aditya Kodukula
4d93a28a54 qcacld-3.0: Add a new ini item gEnableIcmpOffload
Add new ini item gEnableIcmpOffload to enable/disable
ICMP offload to firmware.

Change-Id: I107aeec4c75ae18fbe37d373e48339a5b76797aa
CRs-Fixed: 3025650
2021-08-31 22:23:37 -07:00
Madan Koyyalamudi
4c9843245e Release 5.2.0.246G
Release 5.2.0.246G

Change-Id: I828ba97e8de3ff3165a9e2a418ad310f063b8577
CRs-Fixed: 774533
2021-08-31 20:04:33 -07:00
abhinav kumar
81f39a5be4 qcacld-3.0: Allow ADDROAMSCANFREQUENCIES command after SET
Whenever the host receives the SETROAMSCANFREQUENCIES command,
the host sets ROAMSCANCONTROL to 1 internally. This results
host ignore the ADDROAMSCANFREQUENCIES command if the specific
channel list is already configured.

As per new requirements, the host should not ignore any
ADDROAMSCANFREQUENCIES command which comes after
SETROAMSCANFREQUENCIES.

Change-Id: I9896ff21cdf97ebfcdcf5b198e981f5bd2f501c6
CRs-Fixed: 3022063
2021-08-31 20:04:32 -07:00
abhinav kumar
0b92ef68a9 qcacld-3.0: Remove ioctl cmd GETROAMSCANCHANNELS in driver
Remove ioctl cmd GETROAMSCANCHANNELS in the driver as this
is no longer required from Android S onwards.

Change-Id: I5b57a9a34cbe4b023334855751263fe435d0bdbf
CRs-Fixed: 3021665
2021-08-31 20:04:26 -07:00
abhinav kumar
56f4ef74eb qcacld-3.0: Remove ioctl cmd SETROAMSCANCHANNELS in driver
Remove ioctl cmd SETROAMSCANCHANNELS in the driver as this
is no longer required from Android S onwards.

Change-Id: I904b7a5407997b07c23a40f14d6c7328ec9de8ea
CRs-Fixed: 3021662
2021-08-31 20:04:20 -07:00
Madan Koyyalamudi
3b9da7ced4 Release 5.2.0.246F
Release 5.2.0.246F

Change-Id: I75bba36f45381765e80c4bb206b82d319052e029
CRs-Fixed: 774533
2021-08-31 17:03:16 -07:00
Jianmin Zhu
79aa7147a2 qcacld-3.0: Need check both HTCaps and HTInfo for channel width
Some AP indicates it support 40M in HTInfo, while not support 40M in
HTCaps, so need intersect HTInfo and HTCaps.

Change-Id: I496b62f50a2e1e19aeef7e77535d0479f31bba44
CRs-Fixed: 3025951
2021-08-31 17:03:15 -07:00
abhinav kumar
5a8305cdd5 qcacld-3.0: Send roam band value to userspace
OEM-SS sends ROAMBAND attribute via the vendor command
QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET to host to
get current roam band value in the host.

Fix is to process ROAMBAND attribute and send roam band
value to upper layer.

Change-Id: I56b208d00b40d4d3e6d3658d23fa1073f6fe1146
CRs-Fixed: 3009753
2021-08-31 17:03:09 -07:00
abhinav kumar
8d3a1d9e82 qcacld-3.0: Filter roam scan channel list as per roam band
Filter roam scan channel list or frequency list as per the
band received from upper layer via attribute
QCA_WLAN_VENDOR_ATTR_SETBAND_MASK and
QCA_WLAN_VENDOR_ATTR_ROAMBAND_MASK.

Change-Id: I4820bfc487949d8445f215a4779dd671925d001f
CRs-Fixed: 3009758
2021-08-31 17:03:03 -07:00
Madan Koyyalamudi
885f57115e Release 5.2.0.246E
Release 5.2.0.246E

Change-Id: I409c4f07e71616cfade056312234e38d4e3ff222
CRs-Fixed: 774533
2021-08-31 14:44:32 -07:00
abhinav kumar
5823512803 qcacld-3.0: Set PCL List as per roam band to fw for connected STA
Whenever host Receives vendor command for SETROAMBAND, Host should
set PCL list as per roam band to fw so that FW can use updated pcl
list for further roaming.

Change-Id: I2f48833801b75f25aaf37ea479867b19477ceecb
CRs-Fixed: 3009751
2021-08-31 14:44:31 -07:00
abhinav kumar
0697018d60 qcacld-3.0: Process the BAND_MASK attribute
Process the BAND_MASK attribute which comes to the
host via the QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET
vendor command. Save the value of this band mask into
the RSO configuration structure.

Change-Id: I57ecc10912a38207ef478b38cf3add3c584dd2f4
CRs-Fixed: 3009749
2021-08-31 14:44:25 -07:00
Ashish Kumar Dhanotiya
cfa33dc393 qcacld-3.0: Cleanup sta connection info at close adapter
Currently driver cleanup sta connection info at stop
adapter because of which if query for sta connection info
comes after adapter restart, in that case driver is not able
to return this info.
For example according to new design of Android-S, framework
issues stop adapter after every disconnetion to update mac
address dynamically, after that it starts adapter again, now
if driver gets request for connection info, it is not able to
provide the connection info as it is already cleaned up on stop
adapter.

To address above issue, cleanup sta connection info at close
adapter instead of stop adapter.

Change-Id: I54247d4577dd7f8cf1c7d7bc657005a09d69d0df
CRs-Fixed: 3000842
2021-08-31 14:44:19 -07:00
Madan Koyyalamudi
1e644f0c17 Release 5.2.0.246D
Release 5.2.0.246D

Change-Id: Id109248dd32a88cebe76935743193bd3f4780c17
CRs-Fixed: 774533
2021-08-31 12:23:13 -07:00
Bing Sun
7f0fb64100 qcacld-3.0: Fix issue when getting rnr
When getting rnr IE information, instead of getting rnr pointer through
input parameter,  we can just return rnr pointer.

Change-Id: I7215451d34164d40d6404d0a426f1cc30a143e15
CRs-Fixed: 3025191
2021-08-31 12:23:13 -07:00
Liangwei Dong
c5da5facf2 qcacld-3.0: Revert "clear pmkid cache when ap off"
This change removes the "delete pmksa on BMISS" logic in commit
I5d8ec9e9d4f8a44178b113d370799fe2bc0373fb.
Will handle the issue in new commit by OUI checking of AP.

Change-Id: I871999f8c473afdc75b774210044fc059fcd07b0
CRs-Fixed: 3021068
2021-08-31 12:23:08 -07:00
Madan Koyyalamudi
b21e74a89c Release 5.2.0.246C
Release 5.2.0.246C

Change-Id: I7b4e8b9ef1ed6267456e27b79d8983d4444d25ca
CRs-Fixed: 774533
2021-08-31 10:08:59 -07:00
Sachin Ahuja
e3109de3c2 qcacld-3.0: Don't use MULTI_IF_NAME for driver dump dir
Currently the driver dump directory is getting created by appending
the chipset name but wifihal is trying to read the driverdump
file from debugdriver directory.

Don't append the chipset name in the driver dump dir.

CRs-Fixed: 2974459
Change-Id: I7b32a3d0f967d642828a5b5ad4579befe09de652
2021-08-31 10:08:59 -07:00
Vevek Venkatesan
4d80c88564 qcacld-3.0: fix race condition in HL IPA Rx buf SMMU map/unmap
While Rx buffers are getting umapped from net rx context and
if IPA pipes are enabled at same time from MC thread context,
this is leading to race condition and IPA SMMU map/unmap is
going out of sync, in adrestea targets.

To fix this introducing IPA SMMU map lock and sync map/unmap.

Change-Id: Ida4c321d94f9640135c67210c69edb355d827c86
CRs-Fixed: 3021027
2021-08-31 10:08:54 -07:00
Madan Koyyalamudi
cb0d2d9176 Release 5.2.0.246B
Release 5.2.0.246B

Change-Id: I20188dbfceb9555b703199c7f6275304f2c19e4c
CRs-Fixed: 774533
2021-08-31 07:54:34 -07:00
Liangwei Dong
e45a8446a5 qcacld-3.0: Add DBS-SBS PCL table
DBS-SBS table will support 2G+5/6G DBS mode
and 2/5G+5/6G SBS mode.

Change-Id: Ia8c2a69caed771fa66a148c98ce1234ebb76689d
CRs-Fixed: 2998488
2021-08-31 07:54:34 -07:00